[jboss-user] [JBossWS] - Re: redirect SOAP message request

richard.opalka@jboss.com do-not-reply at jboss.com
Wed Nov 28 04:09:14 EST 2007


Hi,

   you could implement your own client JAXWS handler (extending org.jboss.ws.core.jaxws.handler.GenericSOAPHandler). Put your
handler on the beginning of the handler chain and set up addressing
properties there:

   protected boolean handleOutbound(MessageContext msgContext)
  |    {
  | 
  | CommonMessageContext commonMsgContext = (CommonMessageContext)msgContext;
  | SOAPAddressingProperties addrProps = (SOAPAddressingProperties)
  | 
  | // construct new addressing properties
  | commonMsgContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, addrPropsPointingToProxy);
  | 
  |    }

Richard

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108331#4108331

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108331



More information about the jboss-user mailing list