Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.2 Beta
-
None
-
None
Description
in the public Element createElementNS(String namespaceURI, String qualifiedName) method of SOAPDocumentImpl
you have the following in the else part.
me = new MessageElement(namespaceURI, qualifiedName);
if you have a look at the constructor code in MessageElement then you will find that it is for localPart, and not for qualifiedName.
the else part should be something like this.
String prefix = null;
String localPart = qualifiedName;
final int index = qualifiedName.indexOf(":");
if(index != -1)
{
prefix = qualifiedName.substring(0,index);
localPart = qualifiedName.substring(index + 1);
}
if (prefix == null)
{
me = new MessageElement(namespaceURI, qualifiedName);
}
else
{
me = new MessageElement(localPart, prefix, namespaceURI);
}
even the if part of this method should be using the localPart only