From 54e9e0ed058f2785e514cc53034d062dfe5c547c Mon Sep 17 00:00:00 2001 From: Gianluigi 'cocciagialla' Mammarella Date: Thu, 27 Jun 2019 13:40:00 +0200 Subject: [PATCH] Remove SOAP-ENC --- src/BeSimple/SoapServer/SoapServer.php | 3 +++ 1 file changed, 3 insertions(+) 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');