The following snippet should get you going:
$client = new SoapClient("http://yourdaptivserver.daptiv.com/service/businessServices/default.asmx?WSDL",
array("trace" => 1) );
$strHeaderComponent_BasicSecurityToken = "<BasicSecurityToken xmlns=\"http://www.eproject.com/webservice/BusinessServices\"><Username>youruserid</Username><Password>yourpassword</Password><Created>".gmstrftime("%Y-%m-%dT%I:%M:%SZ")."</Created></BasicSecurityToken>";
$objVar_BasicSecurityToken_Inside = new SoapVar($strHeaderComponent_BasicSecurityToken, XSD_ANYXML, null, null, null);
$objHeader_BasicSecurityToken = new SoapHeader("xmlns=http://www.eproject.com/webservice/BusinessServices",
"BasicSecurityToken",
$objVar_BasicSecurityToken_Inside);
And a typical call looks like this (the first array() is replaced with parameters if necessary just like other PHP SOAP calls - some experimentation is required with wireshark to get this right):
$result = $client->__soapCall("GetResourceManagers", array(), array(), $objHeader_BasicSecurityToken);
Do a print_r on $result to decode it and go from there. Save the $objHeader_BasicSecurityToken and use it for each call.
- Dave