You could write a custom handler which extends BasicHandler and override the onFault method.  That’s what I did and it seems to work.

 

Hope that helps,

Eric Westfall

 


From: Brian Davis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 04, 2005 5:39 PM
To: [EMAIL PROTECTED]
Subject: Running code outside of actual SOAP transaction?

 

I am using Java2WSDL and WSDL2Java to create a service from a simple Java interface. I would like to trap any exceptions/faults that occur during the SOAP exchanges and then execute some code depending on whether there are any faults or not. I’m not sure where I need to put this code, none of the generated classes seem appropriate.

 

Thanks a ton!

 

Brian Davis

Software Developer

JMM Ventures

 

Reply via email to