Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Wsa headers

$
0
0
Hello everyone,

First of all, I have read the CXF documentation at http://cxf.apache.org/docs/ws-addressing.html
I am targeting a OneWay web service with the following JAX-WS annotation: @Addressing(enabled = true, required = true) with a CXF 2.7.7 client.

In the soap message send by CXF, I have the following wsa headers set automatically:

<Action xmlns="http://www.w3.org/2005/08/addressing">XXXX</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing">YYYYY</MessageID>
<To xmlns="http://www.w3.org/2005/08/addressing">ZZZZZ</To>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://www.w3.org/2005/08/addressing/none</Address>
</ReplyTo>

My question is how may I add the From wsa header in the Soap header section. According to the link above, I have tried:
1) requestContext.put("org.apache.cxf.ws.addressing.from", "<a URL>");
2) AddressingProperties maps = new AddressingPropertiesImpl();

None of these solution works :-(

Could you help me please to solve this issue ?

Best Regards.
________________________________
This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure, either whole or partial, is prohibited.
E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender.
Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.

Viewing all articles
Browse latest Browse all 5648

Trending Articles