About this task
Developers could use handlers to inject additional logics
into the message flow during Web services invocation, for a variety
of purposes such as capturing and logging information and adding security
or other information to a message.
Procedure
- The handlers registered into application level are supported
by both JAX-RPC and JAX-WS. But for JAX-WS, handlers could also be
plugged into runtime by annotation or code. The handlers registered
into runtime will be used by handler resolver who is provided by BTT
Web services runtime.
- The extension for WS handlers is always implemented together
with WS connector extension. So this chapter uses a sample to cover
the extension guide for both of these two components.
Results
In the sample, there is a guide about how to print the SOAP
messages transferred during the invocation. Actually, Infrastructure
developer could follow similar steps to manipulate the inbound and
outbound messages, such as adding SOAP header or encrypting messages.