From d1f5c1f6740121751754644c1123d97717fe5035 Mon Sep 17 00:00:00 2001 From: Gianluigi 'cocciagialla' Mammarella Date: Wed, 26 Jun 2019 19:03:56 +0200 Subject: [PATCH] Remove from response the nillable elements. Fix namespace declaration in the xml response --- src/BeSimple/SoapServer/SoapServer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BeSimple/SoapServer/SoapServer.php b/src/BeSimple/SoapServer/SoapServer.php index 88a595e..75935b8 100644 --- a/src/BeSimple/SoapServer/SoapServer.php +++ b/src/BeSimple/SoapServer/SoapServer.php @@ -111,6 +111,7 @@ class SoapServer extends \SoapServer $envelop->setAttribute('soap:encodingStyle', 'http://schemas.xmlsoap.org/soap/encoding/'); $envelop->setAttribute('xmlns:soapenc', 'http://schemas.xmlsoap.org/soap/encoding/'); $envelop->setAttribute('xmlns:xsd', 'http://www.w3.org/2001/XMLSchema'); + $envelop->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); /** @var \DOMElement $body */ $body = $envelop->childNodes->item(0);