axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Miguel Selman" <>
Subject No deserialization context in a handler
Date Tue, 02 Dec 2003 15:48:01 GMT
Folks, I'm getting a java.lang.Exception: No deserialization context to use
in MessageElement.getValueAsType()! What I'm doing is replace the value of
the first parameter (in this case the only one) in a handler. For debugging
purposes I'm using the following code which throws that exception:

Message inMsg = msgContext.getRequestMessage();
Vector BodyElements = inMsg.getSOAPEnvelope().getBodyElements();
org.w3c.dom.Element element = ((SOAPBodyElement)
org.w3c.dom.NodeList nodelist = element.getChildNodes();
SOAPEnvelope se = inMsg.getSOAPEnvelope();
SOAPBodyElement sbe = new SOAPBodyElement(element);

As you can tell, I'm just clearing the SoapBody and then appending a unique
child which happens to be the same dom element extracted from the original
soap envelope. However, when I add a second body element, by commenting
"se.clearBody()" it works just fine without the modified parameter though
(which is the main goal of this handler).


Jose M Selman

View raw message