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 Jose Miguel Selman <js...@bee.cl> on 2003/11/28 22:11:16 UTC
Setting modifications done to the request in a handler.
I need to modify the invocation parameter (a String) with which a service is
invoked. I'm doing the necessary modifications succesfully in a handler. How
can I set the modifications I made back in the request SOAP Message? I'm
doing the following...
Message inMsg = msgContext.getRequestMessage();
Vector BodyElements = inMsg.getSOAPEnvelope().getBodyElements();
org.w3c.dom.Element element = ((SOAPBodyElement)
BodyElements.elementAt(0)).getAsDOM();
String incomingXML = unmarshallText(nodelist.item(1));
// perform the logic
// Here is where I need to set the values to the inMsg object.
msgContext.setRequestMessage(inMsg);
Thanks,
Jose M Selman