Hi all!
I'm doing some "exercises" on Axis, and i tried to use custom exception to throw a wsdl:fault.
My service is a simple class that calculates the sum of two intgers and, if the first integer is 0, throws a MathException (defined as the developers suggested in the axis user's guide)


Now, when i try to catch on the client side this exception, I noticed that the client catches always a RemoteException (note that my Exception subclasses only java.lang.Exception).
I sniffed the wire, and noticed that Axis service throws always a Soap Fault, while in the WSDL the MathException is correctly wrote as wsdl:fault and its complex type definition appears in it.


What's wrong?

Regards
Andrea Fabris

Reply via email to