bee1t
bee1t

Reputation: 21

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

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

Upvotes: 1

Views: 12569

Answers (1)

Sven
Sven

Reputation: 70863

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.

Upvotes: 3

Related Questions