Use this task to help you capture information on exception handling activities for the gateway.
Before you begin
Why and when to perform this task
During normal processing of a Web service invocation, the target service might generate a fault message and pass it to the channel for forwarding to the originator. As far as the gateway is concerned there is no difference between processing a normal output message and processing a fault message.
When an exception occurs during processing of a request, the channel needs some way to decide what to do with the exception. A service is needed that provides a pluggable handler that can look at the message, the exception and other information to decide whether to throw the exception back to the originator, or to construct a fault message.
This service is not provided with the Web services gateway, but the gateway does contain an interface to encapsulate such a service. The ExceptionHandler interface allows channels to call an exception handling service, and report the exceptions to a third party for analysis.
The Home object for this service must implement the com.ibm.wsgw.beans.ExceptionHandlerHome interface and be located through the Java Naming and Directory Interface (JNDI) in the websphere/WSGW/ExceptionHandler directory.