axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "keith chapman" <>
Subject Re: [Axis2] WS Client - Modify SOAPBody before transport
Date Tue, 23 Oct 2007 02:10:36 GMT
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.)


On 10/23/07, ghodgins <> 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:
> 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:
> Sent from the Axis - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.

View raw message