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

Solution Verified - Updated -

Issue

  • 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.

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content