In a request I instantiate an object with the class soapclient. It returns:
uncaught SoapFault exception: SOAP-ERROR: Parsing WSDL: Couldn't load from ' < the soap server url > '
If you look in nusoap.php, you can see that class is an extension of nusoap_client. Not trusting that all of the properties and methods were public or protected, and would therefore inherit to soapclient, I changed:
$client = new soapclient('<mysoapserverURL>');
$client = new nusoap_client('<mysoapserverURL>');
and it seems to work fine after that
NuSOAP originally used the class name soapclient. When PHP added SOAP, they also used the soapclient class name. NuSOAP changed to nusoap_client, but when there is no PHP SOAP installed also creates soapclient for backward compatibility. Your installation seems to have PHP SOAP, so when you used soapclient, you got PHP SOAP and not NuSOAP.
Log in to post a comment.