Hello, I have code:
[code]
$security_options = array("useUsernameToken" => TRUE );
$policy = new WSPolicy(array("security" => $security_options));
$security_obj = new WSSecurityToken(array(
"user" => "user",
"password" => "user"));
$client = new WSClient(array(
"wsdl"=>"url to wsdl",
"useMTOM" => TRUE,
"policy" => $policy,
//'trace' => true,
"securityToken" => $security_obj,));
$proxy = $client->getProxy();
$result = $proxy->login(array("sid"=>'SID'));
print_r($result);
$res = $client->getLastResponse();
//$res = $client->getLastResponseHeaders();
print_r($res);
[/code]
Method login returns true and in headers some value. I want to get this value from headers.
getLastResponse() give me only what returns login() but no headers information.
I tried getLastResponseHeaders() with trace option (there is no information in api documentation about this functions) but it returns nothing.