How can we set in a JAX-WS client the ws-addressing "RelatesTo" ?

Solution Verified - Updated -


  • We are working on a JAX-WS Service that should use ws-addressing to relate logically two requests. We start using the jboss-eap-7.1.0.GA-quickstarts/jaxws-addressing and added a second service and a second call on the client.
    Our issue is: how do we get the wsa:MessageID from response1 to be set as wsa:RelatesTo at request2? The server should be able to receive the RelatesTo parameter in order to find data set on request 1. We tried several forms from the EAP and apache cxf docs but no result. We added a client-side SOAPHandler in order to get the message xml on the client and to control if the headers are set.


  • Red Hat Enterprise Application Platform (EAP)
    • 7.x
  • JBossWS-CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In