Eedoh Eedoh - 5 months ago 141
PHP Question

How to get rid of "Uncaught SoapFault exception: [Client] looks like we got no XML document in..." error

I'm trying to develop business logic for a dynamic site using nusoap on server side (because I need wsdls, and PHP SOAP extension can't generate wsdls), and PHP SOAP extenstion on client side.

However, I can't get even login and getRole functions right. When i try to invoke client, I get following message

Uncaught SoapFault exception: [Client] looks like we got no XML document in [some paths]...


Wsdl does exist on server side, and client does read it (when I put wrong url for wsdl, I get an error).

Can anyone help??

Answer

It looks like your client receives some invalid XML - either the WSDL itself or the response returned by the server. Try to invoke the client with the trace option set to TRUE and check the actual XML send/received via the __getLastRequest() and __getLastResponse() methods.