JAX-WS Handlers
If you are using the JAX-WS frontend, JAX-WS supports the concept of logical and protocol
handlers.
Protocol handlers allow you to manipulate the message in its raw, often XML-based, form - i.e. a SAAJ SOAPMessage. Logical handlers allow you to manipulate the message after its already been bound from the protocol to the JAXB object that your service will receive.