axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Merten Schumann <Merten.Schum...@asg.com>
Subject RE: Can the client catch application exception?
Date Mon, 16 Feb 2004 08:53:01 GMT
Hi,

I had the same problem and asked for help
   http://marc.theaimsgroup.com/?a=107659430800002&r=1&w=2
but got no answer yet ...

   ~Merten

> -----Original Message-----
> From: Gao gjyalpha [mailto:gjyalpha@hotmail.com]
> Sent: Saturday, February 14, 2004 8:01 AM
> To: axis-user@ws.apache.org
> Subject: Can the client catch application exception?
> 
> 
> Hi guys:
>     I have a MyClass class (extends Exception) which is throw 
> by a method 
> in
> my web service. I used wsdl2java to generate the proxy 
> classes from its
> wsdl. And there is <wsdl:fault...> element in the <wsdl:operation...>
> element for this method in the wsdl. When I invoke the method via the
> proxy,for example:
> 
> 
> try{
>     twss= new TestWebServiceServiceLocator();
>     tws = twss.getTestWebService();
> 
>     tws.myMethod()
> }catch(MyClass e) {}
> catch(RemoteException e){}
> 
> I do throw MyClass Exception from my web service method via "throw new
> MyClass()" and I don't catch it at the server side. But I 
> can't catch is at
> the client side. There is a AxisFault exception caught at the 
> client side.
> Does this mean that I can never catch MyClass at the client. The axis
> doedn't transfer it,does it?
> 
> So, how can I transfer my exception via axis? Thanks!
> 
>     Sincerely!!
> 
> Gerry Gao
> 
> _________________________________________________________________
> 享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com
 
> 

Mime
View raw message