SoapFault question/clarification

From: Date: Mon, 11 Sep 2006 06:46:26 +0000
Subject: SoapFault question/clarification
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25100@lists.php.net to get a copy of this message
Hello, I'm getting an error message when I make my soap call. I'm checking for it with the following code: $response = $soapClient->call("$method",$params,$options); if(PEAR::isError($response)) {
     echo "<b> Code: </b> " . $response->getCode() . "<br />";
     echo "<b> Message: </b>" . $response->getMessage() . "<br />";
} This results in: * Code: * soap:Client * Message: *The following operation is not available: Service - AccountService, Operation - getAccounts. My issue is with the Code: response. I want to get the E1036 string, The print_r of the $response shows the following: soap_fault Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => soap:Client [message] => The following operation is not available: Service - AccountService, Operation - getAccounts. [userinfo] => stdClass Object
       (
           [ApiFault] => stdClass Object
               (
                   [code] => E1036
                   [message] => The following operation is not available: Service - AccountService, Operation - getAccounts.
               )
       )
So, I guess the question is, what method do I need to call to get the APiFault[code]

« previous php.pear.general (#25100) next »