How to get rid of "Uncaught SoapFault exception: [Client] looks like we got no XML document in..." error
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.
I just had a similar problem; turns out my service was echo
ing out some debug data. I removed all of the echo
lines and it worked fine.
I have the same problem, and I solved with this:
The server SOAP file in php has encode utf8 with BOM, causing apache send back the BOM mark (3 bytes) before the xml response.
Encode your php file soap server with utf8 WITH OUT BOM mark.
Ignacio Gutierrez Torrero