I need add a namespace in Soap response. I am using php and SoapServer. My response start like this:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="urn:query:request:v2.0">
And I need it to start like this:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="urn:query:request:v2.0" xmlns:ns2="urn:query:type:v2.0">
My code in PHP is like this and I don't know how to continue:
class Service
{
// FUNCTIONS
}
$options= array('uri'=>'urn:query:request:v2.0',
'cache_wsdl' => WSDL_CACHE_NONE);
$server=new SoapServer("Service.wsdl",$options);
$server->setClass('Service');
$server->addFunction(SOAP_FUNCTIONS_ALL);
$server->handle();
Thanks