axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rasile, Rob" <rob.ras...@ethoca.com>
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 [mailto:gemini929@gmail.com] 
Sent: Monday, March 05, 2007 9:26 PM
To: axis-user@ws.apache.org
Subject: [Axis 1.4.x] Strategies for handling exceptions

 

Hello,

 

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
appreciated. 

 

Regards,

 

Joshua


Mime
View raw message