SOAP: looks like we got no XML document

前端 未结 10 1402
日久生厌
日久生厌 2021-01-11 11:41

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:

10条回答
  •  轮回少年
    2021-01-11 11:56

    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

提交回复
热议问题