I am having some problems with a SoapServer sending me some responses with some invalid XML 1.0 chars like U+001F throwing a SoapFault "looks like we got no XML document".
My current code is:
class SoapClientNG extends \SoapClient {
public function __doRequest($request, $location, $action, $version, $one_way = 0) {
$xml = parent::__doRequest($request, $location, $action, $version, $one_way);
$response = str_ireplace('', '', $xml);
return $response;
}
}
Is there a simple way to convert all non 1.0 chars to nothing or even a way to enable SoapClient to accepts xml 1.1?