You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jayachandra Sekhara Rao Sunkara (JIRA)" <ji...@apache.org> on 2005/08/02 09:47:36 UTC

[jira] Created: (AXIS2-116) element namespaces mistaken in the generated artifacts.

element namespaces mistaken in the generated artifacts.
-------------------------------------------------------

         Key: AXIS2-116
         URL: http://issues.apache.org/jira/browse/AXIS2-116
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug
  Components: databinding  
    Reporter: Jayachandra Sekhara Rao Sunkara
 Attachments: Axis2Bug116.zip

In the artifacts that wsdl2java generated out of the SimpleTest.wsdl (attached below inside the zip), a look at the EchoStringDocumentImpl.java shows that the element "echoString" is properly identified to be of the targetnamespace specified in the wsdl i..e "http://SimpleTest.org/xsd" but the element "inputString" that is contained inside this "echoString" element was inappropriately mapped to empty namespace "". This should also be mapped to the targetNamespace of the wsdl. Because of this, NPEs are arising while running an end to end testing of the stub based invocation.

I'm attaching a zip of all the files that got generated and also am including inside a readme.txt that points to the exact problem I'm talking about.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-116) element namespaces mistaken in the generated artifacts.

Posted by "Jayachandra Sekhara Rao Sunkara (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-116?page=comments#action_12318133 ] 

Jayachandra Sekhara Rao Sunkara commented on AXIS2-116:
-------------------------------------------------------

Aaaaaaaagh!!!
Subtle, yet mind tortured issue. Wasn't it?
Thanks Glen for the explanation.


> element namespaces mistaken in the generated artifacts.
> -------------------------------------------------------
>
>          Key: AXIS2-116
>          URL: http://issues.apache.org/jira/browse/AXIS2-116
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: databinding
>     Reporter: Jayachandra Sekhara Rao Sunkara
>     Assignee: Ajith Harshana Ranabahu
>      Fix For: 0.91
>  Attachments: Axis2Bug116.zip
>
> In the artifacts that wsdl2java generated out of the SimpleTest.wsdl (attached below inside the zip), a look at the EchoStringDocumentImpl.java shows that the element "echoString" is properly identified to be of the targetnamespace specified in the wsdl i..e "http://SimpleTest.org/xsd" but the element "inputString" that is contained inside this "echoString" element was inappropriately mapped to empty namespace "". This should also be mapped to the targetNamespace of the wsdl. Because of this, NPEs are arising while running an end to end testing of the stub based invocation.
> I'm attaching a zip of all the files that got generated and also am including inside a readme.txt that points to the exact problem I'm talking about.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS2-116) element namespaces mistaken in the generated artifacts.

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-116?page=all ]

Eran Chinthaka updated AXIS2-116:
---------------------------------

    Fix Version: 0.91

> element namespaces mistaken in the generated artifacts.
> -------------------------------------------------------
>
>          Key: AXIS2-116
>          URL: http://issues.apache.org/jira/browse/AXIS2-116
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: databinding
>     Reporter: Jayachandra Sekhara Rao Sunkara
>     Assignee: Ajith Harshana Ranabahu
>      Fix For: 0.91
>  Attachments: Axis2Bug116.zip
>
> In the artifacts that wsdl2java generated out of the SimpleTest.wsdl (attached below inside the zip), a look at the EchoStringDocumentImpl.java shows that the element "echoString" is properly identified to be of the targetnamespace specified in the wsdl i..e "http://SimpleTest.org/xsd" but the element "inputString" that is contained inside this "echoString" element was inappropriately mapped to empty namespace "". This should also be mapped to the targetNamespace of the wsdl. Because of this, NPEs are arising while running an end to end testing of the stub based invocation.
> I'm attaching a zip of all the files that got generated and also am including inside a readme.txt that points to the exact problem I'm talking about.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-116) element namespaces mistaken in the generated artifacts.

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-116?page=comments#action_12317496 ] 

Ajith Harshana Ranabahu commented on AXIS2-116:
-----------------------------------------------

The problem seems to be with XMLBeans. I have to run a few tests to verify this but since the schema compilation is completely handled by XMLBeans, it seems to be in the XMLBeans side :(

> element namespaces mistaken in the generated artifacts.
> -------------------------------------------------------
>
>          Key: AXIS2-116
>          URL: http://issues.apache.org/jira/browse/AXIS2-116
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: databinding
>     Reporter: Jayachandra Sekhara Rao Sunkara
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: Axis2Bug116.zip
>
> In the artifacts that wsdl2java generated out of the SimpleTest.wsdl (attached below inside the zip), a look at the EchoStringDocumentImpl.java shows that the element "echoString" is properly identified to be of the targetnamespace specified in the wsdl i..e "http://SimpleTest.org/xsd" but the element "inputString" that is contained inside this "echoString" element was inappropriately mapped to empty namespace "". This should also be mapped to the targetNamespace of the wsdl. Because of this, NPEs are arising while running an end to end testing of the stub based invocation.
> I'm attaching a zip of all the files that got generated and also am including inside a readme.txt that points to the exact problem I'm talking about.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS2-116) element namespaces mistaken in the generated artifacts.

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-116?page=all ]
     
Ajith Harshana Ranabahu resolved AXIS2-116:
-------------------------------------------

    Resolution: Fixed

This is not an issue in the code but a problem (rather an omission) in the WSDL types section. here is the original comment from Glen Daniels

XmlBeans is correct here.  The default for "elementFormDefault" is "unqualified", which means that local elements are in the empty namespace.  If the <schema> element had an attribute
elementFormDefault="qualified", or if the inputString element looked like <element name="inputString" form="qualified">, you would then see the inputString element have the "http://SimpleTest.org/xsd" namespace.

> element namespaces mistaken in the generated artifacts.
> -------------------------------------------------------
>
>          Key: AXIS2-116
>          URL: http://issues.apache.org/jira/browse/AXIS2-116
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: databinding
>     Reporter: Jayachandra Sekhara Rao Sunkara
>     Assignee: Ajith Harshana Ranabahu
>      Fix For: 0.91
>  Attachments: Axis2Bug116.zip
>
> In the artifacts that wsdl2java generated out of the SimpleTest.wsdl (attached below inside the zip), a look at the EchoStringDocumentImpl.java shows that the element "echoString" is properly identified to be of the targetnamespace specified in the wsdl i..e "http://SimpleTest.org/xsd" but the element "inputString" that is contained inside this "echoString" element was inappropriately mapped to empty namespace "". This should also be mapped to the targetNamespace of the wsdl. Because of this, NPEs are arising while running an end to end testing of the stub based invocation.
> I'm attaching a zip of all the files that got generated and also am including inside a readme.txt that points to the exact problem I'm talking about.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS2-116) element namespaces mistaken in the generated artifacts.

Posted by "Jayachandra Sekhara Rao Sunkara (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-116?page=all ]

Jayachandra Sekhara Rao Sunkara updated AXIS2-116:
--------------------------------------------------

    Attachment: Axis2Bug116.zip

Attaching the files to reproduce the bug

> element namespaces mistaken in the generated artifacts.
> -------------------------------------------------------
>
>          Key: AXIS2-116
>          URL: http://issues.apache.org/jira/browse/AXIS2-116
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: databinding
>     Reporter: Jayachandra Sekhara Rao Sunkara
>  Attachments: Axis2Bug116.zip
>
> In the artifacts that wsdl2java generated out of the SimpleTest.wsdl (attached below inside the zip), a look at the EchoStringDocumentImpl.java shows that the element "echoString" is properly identified to be of the targetnamespace specified in the wsdl i..e "http://SimpleTest.org/xsd" but the element "inputString" that is contained inside this "echoString" element was inappropriately mapped to empty namespace "". This should also be mapped to the targetNamespace of the wsdl. Because of this, NPEs are arising while running an end to end testing of the stub based invocation.
> I'm attaching a zip of all the files that got generated and also am including inside a readme.txt that points to the exact problem I'm talking about.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (AXIS2-116) element namespaces mistaken in the generated artifacts.

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-116?page=all ]

Eran Chinthaka reassigned AXIS2-116:
------------------------------------

    Assign To: Ajith Harshana Ranabahu

> element namespaces mistaken in the generated artifacts.
> -------------------------------------------------------
>
>          Key: AXIS2-116
>          URL: http://issues.apache.org/jira/browse/AXIS2-116
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: databinding
>     Reporter: Jayachandra Sekhara Rao Sunkara
>     Assignee: Ajith Harshana Ranabahu
>  Attachments: Axis2Bug116.zip
>
> In the artifacts that wsdl2java generated out of the SimpleTest.wsdl (attached below inside the zip), a look at the EchoStringDocumentImpl.java shows that the element "echoString" is properly identified to be of the targetnamespace specified in the wsdl i..e "http://SimpleTest.org/xsd" but the element "inputString" that is contained inside this "echoString" element was inappropriately mapped to empty namespace "". This should also be mapped to the targetNamespace of the wsdl. Because of this, NPEs are arising while running an end to end testing of the stub based invocation.
> I'm attaching a zip of all the files that got generated and also am including inside a readme.txt that points to the exact problem I'm talking about.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira