Chapter 14. Message Handlers

Message handlers allow you to manipulate SOAP messages that are sent and received by JAX-RPC clients and Web service endpoints. They can be used with generated stubs, dynamic proxies, the DII, JAX-RPC service endpoints (JSEs), and EJB endpoints. If you've worked with servlet filters, message handlers will be familiar to you.

You may have noticed that none of the JAX-RPC client APIs (generated stubs, dynamic proxies, or DII) provide support for SOAP header blocks. In other words, if you use a generated stub or any other JAX-RPC client API to send a SOAP message, there's no obvious mechanism for adding header-block information. The same is also true of JAX-RPC Web service endpoints (JSEs and EJB endpoints). The primary ...

Get J2EE™ Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.