SOAP服务器尝试返回损坏的xml,我收到错误: 损坏的xml如下所示: p>
代码是: p>
我尝试添加看起来我们没有XML 文档 code> p>
< loyaltyReturn xsi:type =“xsd:string”>& ; lt;?xml version =“1.0”?& gt;
& lt;
code> pre>
ob_start();
$ response = $ this-> soap-> handle();
echo $ response;
$ out = ob_get_contents();
ob_end_clean(); \ n
echo $ out;
exit;
code> pre>
echo html_entity_decode($ response); code>但仍无法正常工作, 哪里可能有编码问题? p>
div>
SOAP server try to return corrupted xml, and I'm getting error: looks like we got no XML document
Corrupted xml looks like:
<loyaltyReturn xsi:type="xsd:string"><?xml version="1.0"?>
<
Code is:
ob_start();
$response = $this->soap->handle();
echo $response;
$out = ob_get_contents();
ob_end_clean();
echo $out;
exit;
I try add echo html_entity_decode($response);
but still not work, where can be problem with encoding ?