I\'m trying to create a web service but before I do I\'m trying to get a simple example that I found on the internet to work first but I keep getting the following error:
This error appears also if a soap XML response contains special Unicode characters.
In my case it was REPLACEMENT CHARACTER (U+FFFD
).
In details, inner function of the SoapClient xmlParseDocument
sets xmlParserCtxtPtr->wellFormed
property as false
after parsing. It throws soap fault with looks like we got no XML document
.
https://github.com/php/php-src/blob/master/ext/soap/php_packet_soap.c#L46