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 ?