diff --git a/src/BeSimple/SoapServer/SoapServer.php b/src/BeSimple/SoapServer/SoapServer.php index 75935b8..83c7b24 100644 --- a/src/BeSimple/SoapServer/SoapServer.php +++ b/src/BeSimple/SoapServer/SoapServer.php @@ -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');