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 <[EMAIL PROTECTED]>
wrote:
>
> 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?
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"phpsoa" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---