axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott McCoy" <...@cpan.org>
Subject Re: Question on how to generate faults
Date Sat, 20 May 2006 07:25:49 GMT
In Axis 1, use org.apache.axis.AxisFault.

If you just want to wrap an exception, the easiest way is to:

catch (Exception exception) {
    throw AxisFault.makeFault(exception);
}

Cheers,
   Scott S. McCoy

On 5/19/06, Venkat Gyambavantha <vgyambav@tibco.com> wrote:
>
>  Hi,
>
>
>
> I used wsdl2java to generate server skeleton code. One of my operation can
> generate fault. The code generated by wsdl2java has a method that throws the
> faultmessage (subclass of RemoteException). How to throw this exception?
>
>
>
> Thanks
>
>
>

Mime
View raw message