[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to