Remove SOAP-ENC

This commit is contained in:
Gianluigi 'cocciagialla' Mammarella 2019-06-27 13:40:00 +02:00
parent 679b44ba13
commit 54e9e0ed05
1 changed files with 3 additions and 0 deletions

View File

@ -122,9 +122,12 @@ class SoapServer extends \SoapServer
$responseRoot->setAttribute('xmlns', $ns1);
$envelop->removeAttributeNS('http://schemas.xmlsoap.org/soap/envelope/', 'SOAP-ENV');
$envelop->removeAttributeNS('http://schemas.xmlsoap.org/soap/encoding/', 'SOAP-ENC');
$response = $dom->saveXML();
$response = preg_replace('/xsi:type="ns1:\w*"/', '', $response);
// Remove headers added by SoapServer::handle() method
header_remove('Content-Length');
header_remove('Content-Type');