axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Updated: (AXIS-1421) confusion between local name and qualified name
Date Mon, 18 Oct 2004 08:41:51 GMT
The following issue has been updated:

    Updater: Ashutosh Shahi (
       Date: Mon, 18 Oct 2004 1:41 AM
Attaching the test case to demonstrate the problem. Because of wrong constructor for MessageElement
being used in CreateElementNS() method of SOAPDocumentImpl class, the LocalName gets the entire
name (local name + prefix) and Prefix gets null.
             Attachment changed to
For a full history of the issue, see:

View the issue:

Here is an overview of the issue:
        Key: AXIS-1421
    Summary: confusion between local name and qualified name
       Type: Bug

     Status: Open
   Priority: Major

    Project: Axis
             1.2 Beta

   Assignee: Davanum Srinivas
   Reporter: nishant kumar

    Created: Tue, 29 Jun 2004 1:19 AM
    Updated: Mon, 18 Oct 2004 1:41 AM

in the public Element createElementNS(String namespaceURI, String qualifiedName) method of

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);
  me = new MessageElement(localPart, prefix, namespaceURI);

even the if part of this method should be using the localPart only

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message