require_once 'SOAP/Client.php';
$wsdl_url =
'http://hosxp.net:1024/wsdl/IIHOSxP';
$WSDL = new SOAP_WSDL
($wsdl_url,array('trace' => 1)); $client = $WSDL->getProxy();
$user = 'hosxp';
$pwd = 'hosxp';
$AuthHeader = array('UserName' => $user,'Password' => $pwd);
$SoapHeader = new SOAP_Header
('{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}TAuthHeader', false, array('TAuthHeader' => $AuthHeader));
$client->AddHeader($SoapHeader);
$xr = $client->echoString("Hi from php","");