Exception handling in Apache-SOAP - Is there a way of catching server exceptions in the client side?

Idar Hareide

If you go to the site http://www.onjava.com/pub/a/onjava/excerpt/java_xml_2_ch2/index.html, you can find examples on how to catch server exceptions. Here's an example:

response = call.invoke(url, "");
if (!response.generatedFault( )) {
  System.out.println("Successful execution");
} else {
  Fault fault = response.getFault( );
  System.out.println("Error encountered: " + fault.getFaultString( ));
}
 
-- Idar
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact