Yes using a handler is the way to do it. I presume wheat your trying to do here is add something before the message is sent and process it before its received. So you dont need to replace the whole SOAP message you can get the soap message from the msgContext and add what ever you want to it. Same goes on the receiver. (The msgContaxt is available to the handler so you can modify the SOAP message there.)
Thanks, Keith. On 10/23/07, ghodgins <[EMAIL PROTECTED]> wrote: > > > Hi, I'm an Axis2 newbie and have a question about the best way to do > something. > > I've generated a synchronous WS client for a .NET WS that works perfectly. > > My problem is that I now need to to modify the SOAPBody before it is sent. > > I also need to modify the body of the incoming response before it is > processed. > > Is the best way to do this by using a handler? If so, what is the best way > to modify the SOAPBody? Or, how can I replace the existing SOAPBody with a > modified one? > > I've read the articles on custom modules: > http://ws.apache.org/axis2/1_3/modules.html > http://ws.apache.org/axis2/1_3/migration.html#custom_deployment > > But I have no idea how to best modify the SOAPBody before it is sent or > before axis2 naturally processes the WS response from the service. > > Thanks for any help! > > Grant > -- > View this message in context: > http://www.nabble.com/-Axis2--WS-Client---Modify-SOAPBody-before-transport-tf4673909.html#a13353351 > Sent from the Axis - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
