web-servicesjax-wssoaphandler

Using a JAX-WS client, how do you get the SOAP header from a response?


Using a JAX-WS client, how do you get the SOAP header from a response?

I'm guessing you can do it using the handleMessage method of a SOAPHandler, but I feel like I'm missing some more obvious, straight-forward way.


Solution

  • In the SOAPHandler you can get all the soap message(getting the header). This is the most straight-forward way. If you want I can get a code example for you.