Hello,
I'm trying to get together a script to tell me if a call of failure then skip the next call if not continue. I have been searching the web all day to try to figure this out and I can't seem to get it right. I tried soapfault, is_empty and numerous others but nothing seems to do the trick.
//log in as the end user
$endUserLogin = array(
'client-type'=>'thirdclient',
'username' => $user->userid,
'app-session-id'=>'08d491c1-9e65-4a24-6813-94b0d51702cc'
);
$euvalues = $client2->login($endUserLogin);
Then I did a var_dump of the $euvalues variable and got this on a failed request:
User ID: winconfrm
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="urn:cisco:epas:soap">
<SOAP-ENV:Body>
<ns1:login client-type="thirdclient">
<ns1:username>winconfrm</ns1:username>
<ns1:app-session-id>08d491c1-9e65-4a24-6813-94b0d51702cc</ns1:app-session-id>
</ns1:login>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
object(stdClass)#86 (2) {
["failure"]=>
object(stdClass)#87 (1) {
["reason"]=>
string(23) "Wrong username/password"
}
["cup-version"]=>
string(15) "10.5.1.10000(9)"
}
Notice: Undefined property: stdClass::$success in C:\inetpub\wwwroot\JabberDir\ListUserV3.php on line 103
Notice: Trying to get property of non-object in C:\inetpub\wwwroot\JabberDir\ListUserV3.php on line 103
End User Session ID:
Can anyone tell me how I pull that word "failure" or success out and make this work?
Thanks in advance.
Laura