looks like we got no XML document
- nice message, but why is it so? 🤔
#505
-
What is it about?We retrieve data via a SOAP api, a list of many offers. When decoding the request response in the Unfortunately, it is not possible to retrieve each offer individually in order to bypass the incorrect one. What can we do?Debugging is currently the order of the day, narrowing down the period from when the error occurs and which offers could match it. Then retrieve the offer explicitly via Postman or debugging in the code, copy the response for decoding into the IDE or examine it with text editors to find the needle in the haystack that makes decoding impossible. Is there another way?It would be helpful to have an error output that provides us with information about where the error is in the data or even what exactly is causing the error. Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Hello, The exception is coming from PHP's SoapClient and means it is unable to parse the provided XML response.
$doc = new DOMDocument();
$doc->loadXML('<test>world</test>');
echo($doc->documentElement->nodeValue);
|
Beta Was this translation helpful? Give feedback.
Hello,
The exception is coming from PHP's SoapClient and means it is unable to parse the provided XML response.

is an invalid character in XML. The best way to overcome this error is to add a HTTP plugin/Middleware that makes sure the XML is parsable by for example cleaning up this and any other unsupported character you encounter before they get decoded by the SoapClient.https://3v4l.org/PkH7j