axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Schmitt <comme...@hschmitt.de>
Subject MessageElement
Date Fri, 21 Dec 2001 14:40:21 GMT
Hi,

I work with Axis Alpha 2 and found a bug or feature in
org.apache.axis.message.MessageElement

   MessageElement(Element elem)
    {
        elementRep = elem;
        namespaceURI = elem.getNamespaceURI();
        name = elem.getTagName();
    }

elem.getTagName(); should be replaced with elem.getLocalName();
otherwise it is prefixed, and later on a prefix is additionaly added so
there is something like 
<ns1:ns2:myElem>.
In org.apache.axis.encoding.SerializationContext this change is already
done.
-- 
Ciao,
               Harald

Mime
View raw message