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
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ class SoapServer extends \SoapServer
$envelop->setAttribute('soap:encodingStyle', 'http://schemas.xmlsoap.org/soap/encoding/'); $envelop->setAttribute('soap:encodingStyle', 'http://schemas.xmlsoap.org/soap/encoding/');
$envelop->setAttribute('xmlns:soapenc', '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:xsd', 'http://www.w3.org/2001/XMLSchema');
$envelop->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
/** @var \DOMElement $body */ /** @var \DOMElement $body */
$body = $envelop->childNodes->item(0); $body = $envelop->childNodes->item(0);