You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Hoda, Nadeem [USA]" <ho...@bah.com> on 2007/11/06 19:19:14 UTC

Exception Handling

 
I am looking at exceptions/faults, and I noticed that the fault handling
sample returns a SOAP exception with attached data in addition to the
code/error that is normally returned. 
 
Is there a way to return custom SOAP exceptions that can be caught at
the client side as an Exception inherited class? i.e., 
 
Server-side code and Wsdl contain: MyCustomBusinessException extends
Exception
 
Client contains:
 
try {
    ......
    svc.callMyService();
 
} catch (MyCustomBusinessException mcbe) {
 
} catch (Exception e) {

}
 
Thanks, 
 
Nadeem