Exception handling in apache-SOAP
1 posts in topic
Flat View  Flat View

Posted By:   Mehdi_Elaoufir
Posted On:   Wednesday, October 10, 2001 02:56 AM

Is there a way of catching server exceptions in the client side.

Re: Exception handling in apache-SOAP

Posted By:   Idar_Hareide  
Posted On:   Tuesday, January 15, 2002 12:06 AM

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( ));

About | Sitemap | Contact