php - Are these 2 soap headers the same? -
i've been told soap header must :
<soap:envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ws="http://ws.dgpys.deloitte.com"> <soap:header> <axis2:servicegroupid xmlns:axis2="http://ws.apache.org/namespaces/axis2"> urn:uuid:fa7eb13c84d91bc34b1373986557015 </axis2:servicegroupid> </soap:header> <soap:body> ... </soap:body>
my soap header :
<?xml version=\"1.0\" encoding=\"utf-8\"?> <soap-env:envelope xmlns:soap-env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns1=\"http://ws.dgpys.deloitte.com\"> <soap-env:header> <ns1:servicegroupid> urn:uuid:fa7eb13c84d91bc34b1373986557015 </ns1:servicegroupid> </soap-env:header> <soap-env:body> ... </soap-env:body>
mine doesn't work. searched solution couldn't find anything. how can fix this? or topics should learn?
no, http://schemas.xmlsoap.org/soap/envelope/
soap 1.1 , requested http://www.w3.org/2003/05/soap-envelope/
, soap 1.2 namespace.
don't confused soap
/soap-env
or axis
/ns1
, namespace prefixes.
also first message seems missing declaration of axis2
namespace prefix, suppose xmlns:ws="http://ws.dgpys.deloitte.com"
meant read xmlns:axis2="http://ws.dgpys.deloitte.com"
.
if provider asks send soap 1.2, use soap 1.2 namespace , message format. why relevant code should present in question, need instantiate soapclient
this:
$client = new soapclient("some.wsdl", array('soap_version' => soap_1_2));
Comments
Post a Comment