Integration Server 10.3 | Web Services Developer’s Guide | About Handlers and Handler Services | What Are Handlers and Handler Services?
 
What Are Handlers and Handler Services?
In addition to the data contained in the SOAP body, a SOAP message might contain data in the SOAP headers. The best way to access the SOAP headers is to use handlers. A handler, sometimes called a header handler, provides access to the entire SOAP message.
Handlers can be used to perform various types of processing, including processing SOAP headers, adding SOAP headers, removing SOAP headers, passing data from the header to the endpoint service or vice versa. Provider and consumer web service descriptors can use handlers.
In Integration Server, a handler is a set of up to three handler services. The handler can contain one of each of the following handler services:
*Request handler service
*Response handler service
*Fault handler service
Integration Server executes each type of handler service at a different point in the web service invocation path.
Any IS service can be used as a handler service. However, handler services must use a specific service signature. Integration Server defines the service handler signature in the pub.handler.soap:handlerSpec specification. Integration Server also provides several services that you can use when creating handler services. These services are located in the pub.soap.handler folder in the WmPublic package.
When you register a handler, you name the handler, identify the services that function as the request, response or fault handler services, and indicate whether the handler is for use with provider web service descriptors or consumer web service descriptors.
You can assign multiple handlers to a web service descriptor. The collection of handlers assigned to a web service descriptor is called a handler chain. For a consumer web service descriptor, Integration Server executes the handler chain for output SOAP requests and inbound SOAP responses. For a provider web service descriptor, Integration Server executes the handler chain for inbound SOAP requests and outbound SOAP responses. The order of handlers in the handler chain may be important, depending on what processing the handlers are performing.
When executing the handler chain, Integration Server executes request handler services by working through the handler chain from top to bottom. However, Integration Server executes response handler services and fault handler services from bottom to top.