Remove SOAP-ENC
This commit is contained in:
parent
679b44ba13
commit
54e9e0ed05
|
@ -122,9 +122,12 @@ class SoapServer extends \SoapServer
|
||||||
$responseRoot->setAttribute('xmlns', $ns1);
|
$responseRoot->setAttribute('xmlns', $ns1);
|
||||||
|
|
||||||
$envelop->removeAttributeNS('http://schemas.xmlsoap.org/soap/envelope/', 'SOAP-ENV');
|
$envelop->removeAttributeNS('http://schemas.xmlsoap.org/soap/envelope/', 'SOAP-ENV');
|
||||||
|
$envelop->removeAttributeNS('http://schemas.xmlsoap.org/soap/encoding/', 'SOAP-ENC');
|
||||||
|
|
||||||
$response = $dom->saveXML();
|
$response = $dom->saveXML();
|
||||||
|
|
||||||
|
$response = preg_replace('/xsi:type="ns1:\w*"/', '', $response);
|
||||||
|
|
||||||
// Remove headers added by SoapServer::handle() method
|
// Remove headers added by SoapServer::handle() method
|
||||||
header_remove('Content-Length');
|
header_remove('Content-Length');
|
||||||
header_remove('Content-Type');
|
header_remove('Content-Type');
|
||||||
|
|
Loading…
Reference in New Issue