-
1. Re: redirect SOAP message request
ropalka Nov 28, 2007 4:09 AM (in response to davidkally)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 -
2. Re: redirect SOAP message request
davidkally Nov 28, 2007 8:23 AM (in response to davidkally)Hi Richard,
Thanks for the reply.
what you seggests is very helpful, but as i understood i need to change the Client Application in order to add myhandler class to the handler chain, is it right? if it is so, this does not satisfy my requirments which is i do not have to chane anything in the client Application...!
is there anyother way of doing this... ??
thanks for the help -
3. Re: redirect SOAP message request
ropalka Nov 28, 2007 8:49 AM (in response to davidkally)Hi,
yes, you're right, you would need to change the client configuration. I understood you can't change client code only, but anything else is good for you. Sorry for this misunderstanding.
If you can't change client application at all then I have no suggestions for you ;-(
Richard -
4. Re: redirect SOAP message request
davidkally Nov 28, 2007 9:44 AM (in response to davidkally)Hi Richard again,
I just need if you can give me please an Example of how i can
// construct new addressing properties
because i will try to intercept all the request go through the SOAP stack and add what you seggest to the messageContext before it go to the wire.
...!
cheers -
5. Re: redirect SOAP message request
ropalka Nov 28, 2007 10:14 AM (in response to davidkally)Hi,
it's pretty simple:import org.jboss.ws.extensions.addressing.AddressingClientUtil; ... AddressingProperties addressingProps = AddressingClientUtil .createAnonymousProps(addressingAction, endpointAddress);
Richard -
6. Re: redirect SOAP message request
davidkally Nov 28, 2007 11:00 AM (in response to davidkally)Thanks Richard, that is really helpful
Cheers