Folks,
I知 struggling to append my sessionid in the SoapHeader, I知 close, but something is missing.
My SoapHeader needs to look like this in the request:
However, when I run my code I知 only able to generate the header like this:PHP Code:<soapenv:Header>
<sil:sessionHeader>
<sil:sessionid>?</sil:sessionid>
</sil:sessionHeader>
</soapenv:Header>
And here is my php code:PHP Code:<SOAP-ENV:Header>
<ns2:sessionHeader>
<item>
<key>sessionid</key>
<value>sdfsdf345345sdfsdf345345345B9</value>
</item>
</ns2:sessionHeader>
</SOAP-ENV:Header>
Any ideas what I知 doing wrong or whats missing?PHP Code:$header = new SoapHeader('http://xxx.xxxxx.com/xxx?wsdl', "sessionHeader", array("sessionid"=>$this->sessionid), false);
$this->soap_client->__setSoapHeaders(array($header));



Reply With Quote
Bookmarks