Remove from response the nillable elements. Fix namespace declaration in the xml response

This commit is contained in:
Gianluigi 'cocciagialla' Mammarella 2019-06-26 19:03:56 +02:00
parent fea1093bed
commit d1f5c1f674

View File

@ -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);