I'm getting an error from a SOAP server built on Java when I use PHP's SOAP library because the name of the envelope is prefixed with SOAP-ENV. The web service requires s:
What I'm sending:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>...</SOAP-ENV:Header>
<SOAP-ENV:Body>...</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
What the web service requires:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>...</s:Header>
<s:Body>...</s:Body>
</s:Envelope>
I've been through php.net'S SOAP library documentation already. Nothing there seems to touch on this part.
And yes, it does matter to this web service whether it's prefixed with SOAP-ENV: or s:
Here's what is generating the current style of XML:
$client = new SoapClient($url, array(
'soap_version' => SOAP_1_1,
'trace' => 1,
'use' => SOAP_LITERAL)
);
$result = $client->$method($dataObject);
Any help would be greatly appreciated.