RE: Question on user exception handling on autogenerated clients

2004-12-15 Thread Michael Merz
: Question on user exception handling on autogenerated clients Hi, Michael. Handling service-specific exception is implemented in Axis. In the generated code, > java.lang.Object _resp = _call.invoke(new java.lang.Object[] >{new java.lang.Integer(in0)}); > > if (_res

Re: Question on user exception handling on autogenerated clients

2004-12-15 Thread TMG
Michael, The server services throw a RemoteException, that's what you "catch" in the client. If a handler, either before or after the service is called, throws an exception, it is usually an AxisFault. Tom Gordon Michael Merz wrote: Bcc: [EMAIL PROTECTED] I'm autogenerating my clients using the

Re: Question on user exception handling on autogenerated clients

2004-12-14 Thread Davanum Srinivas
pls check the test/wsdl/faults example. -- dims On Tue, 14 Dec 2004 10:12:20 -0800, Michael Merz <[EMAIL PROTECTED]> wrote: > Bcc: [EMAIL PROTECTED] > > I'm autogenerating my clients using the wsdl2java ant task. It's working > really well. > > One question regarding exception handling, though

Question on user exception handling on autogenerated clients

2004-12-14 Thread Michael Merz
Bcc: [EMAIL PROTECTED] I'm autogenerating my clients using the wsdl2java ant task. It's working really well. One question regarding exception handling, though: When the server throws a custom exception (subclass of java.lang.Exception), how does the autogenerated client propagate the results in t