axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Updated: (AXIS-1421) confusion between local name and qualified name
Date Fri, 28 Sep 2007 12:54:08 GMT

     [ https://issues.apache.org/jira/browse/AXIS-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Davanum Srinivas updated AXIS-1421:
-----------------------------------

    Assignee:     (was: Davanum Srinivas)

> confusion between local name and qualified name
> -----------------------------------------------
>
>                 Key: AXIS-1421
>                 URL: https://issues.apache.org/jira/browse/AXIS-1421
>             Project: Axis
>          Issue Type: Bug
>          Components: SAAJ
>    Affects Versions: 1.2 Beta
>            Reporter: nishant kumar
>         Attachments: patch_1421.txt, Test.java
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message