Google Groups Home
Help | Sign in
SoapClient try/catch problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Fabio_Floripa  
View profile
 More options 13 May, 19:14
From: Fabio_Floripa <fabio_da_cu...@hotmail.com>
Date: Tue, 13 May 2008 11:14:14 -0700 (PDT)
Local: Tues 13 May 2008 19:14
Subject: SoapClient try/catch problem
Hey All

Im having some problem on my client side
at the client code i'm doing something like this

try {
    return $this->updateSoapReturn( $this->getService()->
$str_method( $this->fixSlashes($arr_param) )->{$str_method .
'Return'}  );

} catch ( Exception $e ) {

   $e->getmessage();
   return false;

}

Well, my problem is that my WebService when trow the exceptio he use
an code
that i should get using
$e->getCode();

correct??

but that doesnt work.

i put and print_r($e) this is the print

message:protected] => You need a valid Id to load the info.
    [string:private] =>
    [code:protected] => 0
    [file:protected] => /home/fabio/html/SOA_Lib/services/
IPXService.php
    [line:protected] => 205
    [trace:private] => Array
        (
            [0] => Array
                (
                    [function] => __call
                    [class] => SoapClient
                    [type] => ->
                    [args] => Array

Please, some one have any idea?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Silvano Girardi Jr  
View profile
 More options 16 May, 21:05
From: "Silvano Girardi Jr" <silvan...@gmail.com>
Date: Fri, 16 May 2008 17:05:16 -0300
Local: Fri 16 May 2008 21:05
Subject: Re: [phpsoa] SoapClient try/catch problem

Hey Fabio,
this is not a SCA problem. Its in the PHP's SOAP extension (I guess).
For some reason (which I am trying to figure out and once I do I will put
here) the faultcode is not translated into the Exception code.

In order to make this work you have to call $e->faultcode instead of
$e->getCode().

Silvano

On Tue, May 13, 2008 at 3:14 PM, Fabio_Floripa <fabio_da_cu...@hotmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google