[phpsoa] SoapClient try/catch problem

2008-05-16 Thread Fabio_Floripa
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 f

[phpsoa] Re: SoapClient try/catch problem

2008-05-16 Thread Silvano Girardi Jr
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