You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Gerson Galang <ge...@gmail.com> on 2006/11/06 06:03:03 UTC

modifying the soap body in the handler

Hi all,

Are there any extra steps that needs to be done before a Handler-modified
SOAP message gets sent to the Web Service? My problem is - my service is
getting the original message, instead of the modified one.

Here's what I found by googling for a similar problem to mine.

http://www.opensubscriber.com/message/wss4j-dev@ws.apache.org/3657317.html

It says above that a modified message needs to be processed by the c14n
first before it gets handed over to Axis. Is there an equivalent method to
c14n that I can use since I'm not using WSS4J?

Doing a toString on the SOAPBody also gives a different output from doing an
org.apache.axis.utils.XMLUtils.ElementToString on the SOAPBody in the
Service method I'm trying to invoke. Can you tell me why this is happening?
Shouldn't SOAPBody.toString and XMLUtils.ElementToString output the same
information?

Thanks,
Gerson