On Tuesday 27 January 2009 12:03:52 pm Oliver Gottwald wrote:
> Hi,
>
> Does anyone know how to set the wsa:To value?
>
> I would appreciate any input.
>
> Oliver
Here's some code from one of our tests:
Map<String, Object> requestContext =
((BindingProvider)greeter).getRequestContext();
AddressingProperties maps = new AddressingPropertiesImpl();
maps.setReplyTo(EndpointReferenceUtils.getEndpointReference(NOWHERE));
maps.setFaultTo(EndpointReferenceUtils.getEndpointReference(DECOUPLED));
requestContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES,
maps);
The maps thing should allow complete control of what is sent out.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog