axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rasile, Rob" <>
Subject RE: [Axis 1.4.x] Strategies for handling exceptions
Date Tue, 06 Mar 2007 03:53:27 GMT
One way is to create your own custom fault module (with a fault handler)
and add it to the in-fault/out-fault flow execution chain (which are
comprised of phases).  Within your custom fault handler you can
intercept the axis fault (which by that time is in the message context)
and replace it with something more to your liking (which is what I do).
If you look at the axis2.xml you'll see these flows and the
corresponding phases defined - as well as where you can add your own
phases/handlers.  If you'd like an example on how to do this let me know
and I'll post something tomorrow.   



From: Joshua White [] 
Sent: Monday, March 05, 2007 9:26 PM
Subject: [Axis 1.4.x] Strategies for handling exceptions




I am looking for some examples on how to best handle checked and
unchecked exceptions.  Is there a "best" way to map to soap faults to
return an intelligent message to your client?  I have not seen many much
documentation or examples about this.  Any help you would be





View raw message