Please Help: PHP Fatal error: looks like we got no XML document

bee1t picture bee1t · May 13, 2013 · Viewed 12.5k times · Source

I'm getting crazy with this error I've tried all issues in forums nothing works I'm getting disappointed. Help Please with this

PHP Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML document

Please guys,I would really appreciate the help

Answer

Sven picture Sven · May 17, 2013

This error occurs when the response from the soap server cannot be parsed as XML.

Reasons for this:

  1. The HTTP body of the response has the wrong Content-Type.
  2. The content is no XML at all, because the PHP script triggered a fatal error, or an uncatched exception, or simply die()d.
  3. The content contains PHP error output like notices, warnings etc.

How to see what it is?

Use a different soap client, like soapUI. This one will display what you got as response, even if it isn't parsable XML.