How do i set this php Soap Header ?? For the life of me I can\'t figure it out.
See this comment:
http://www.php.net/manual/en/soapclient.setsoapheaders.php#93460
So it would be like:
$headerbody = array('UsernameKey'=>array('Username'=>$UserID,
'Password'=>$Pwd));
$header = new SoapHeader($ns, 'RequestorCredentials', $headerbody);
//set the Headers of Soap Client.
$soap_client->__setSoapHeaders($header);