[ 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