Axis2 Exceptions

Exceptions in web services are returned back to the client as an AxisFault exception with the message string from the original exception retained whenever possible. For instance, client code might look like this:
// Processing
...
} catch (final AxisFault a) {
  System.out.println(a.getMessage());
}
The structure and contents of the fault SOAP message will vary depending on whether the request is a SOAP 1.1 or SOAP 1.2 request.

Also, you need to ensure that, depending on the context of the web service client, the web service provides a meaningful exception message. Otherwise, it may not be possible for the handler of the AxisFault exception to react appropriately. However, sometimes failures occur unexpectedly and it will be necessary to resolve them in conjunction with the application server logs and/or the log4j output from Cúram and/or Axis2.