Dan,

I think what you have given me may possibly solve my problem.
Unfortunately I was unable to plug in the example block from your code.
Will your example code work with the current set up that I have? If so can you give me some insight on what to do.

below is my run method from my client:

  private void run() {
       TelefloraWebService service = new TelefloraWebService();
       TelefloraWebServiceSoap port = service.getTelefloraWebServiceSoap();
Map outProps = new HashMap();
       Client client = org.apache.cxf.frontend.ClientProxy.getClient(port);
       client.getInInterceptors().add(new MyLoggingInInterceptor());
Endpoint cxfEndpoint = client.getEndpoint();

       outProps.put(WSHandlerConstants.ACTION, wss4jAction);
       outProps.put(WSHandlerConstants.USER, "");
outProps.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT); outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS, ClientPasswordCallback.class.getName()); WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor(outProps); cxfEndpoint.getOutInterceptors().add(wssOut); Envelope testEnv = new Envelope();
       port.sendTransactions(testEnv);
   }

Oliver



Daniel Kulp wrote:
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.



Reply via email to