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 "Jung, Eric (Contractor)" <ej...@russellmellon.com> on 2002/09/05 18:30:46 UTC
RE: Handlers and SOAP message re-writing
I would think you need to add the node to the RESPONSE message, not the
request message.
-Eric
-----Original Message-----
From: Allegar Robert [mailto:allegar_robert@bah.com]
Sent: Thursday, September 05, 2002 1:14 PM
To: axis-user@xml.apache.org
Subject: Handlers and SOAP message re-writing
Is the SOAP message considered read-only when it's being handled by the
handlers? I'm trying to use a value in the header I receive to look up a
value to place in the body. I've extracted out the essence of this in the
following lines of code:
Message requestMessage = context.getRequestMessage();
SOAPEnvelope envelope = requestMessage.getSOAPEnvelope();
SOAPElement element = envelope.addChildElement("testElement");
element.addTextNode("testElementNode");
This code exists in a handler. Unfortunately, the SOAP message that's
leaving the handler does not contain the new element I've just added -- it
almost appears the message is read-only, though no faults or exceptions are
thrown.
The thing that troubles me is that this code works as it should under
Weblogic 7.0's webservice impl. Am I doing something wrong, calling the
wrong APIs or is this a bug?
Regards,
Rob