Link to home
Start Free TrialLog in
Avatar of TwentyFourSeven
TwentyFourSeven

asked on

Class 'SoapClient' not found

Hi,

I hope someone can help me as I am incredibly confused !

I had some SOAP code that was working great earlier today .... no problems at all.

Now I come back to do some more work and I'm getting the following error :

"PHP Fatal error:  Class 'SoapClient' not found in  xxxx on line yy".

I cannot understand why this is suddenly happening.  No changes have occured on the server as it is a box under my control, so nobody has messed with any config.

I created a simple test (see snipped below) and that fails too with the same error !

As you can see from the phpinfo screenshot, SOAP is STILL enabled !! No change there.

HELP !!!!!!!!!!!!
<?php
$client = new SoapClient("http://******/****/lookup.asmx?wsdl");
?>

Open in new window

SOAP-HELP.png
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

This is advice, and not meant to be a flip answer.  Stop using SOAP once and for all and choose a REST design for your APIs.  One of my colleagues says bluntly that SOAP is the devil.  I stop just short of that, but I can tell you that the number of man hours wasted by the unnecessarily elaborate and complex design of SOAP is astonishing.

Good luck with it - you have my sympathies, ~Ray
ASKER CERTIFIED SOLUTION
Avatar of Beverley Portlock
Beverley Portlock
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial