Namespace uri is not output for Attributes in xmlschema version 1.2.
---------------------------------------------------------------------
Key: WSCOMMONS-208
URL: https://issues.apache.org/jira/browse/WSCOMMONS-208
Project: WS-Commons
Issue Type: Bug
Components: XmlSchema
Reporter: Edell Nolan
Hi,
XmlSchema version 1.2 fails to output the namespace uri for qualified attribute
names.
have the following wsdl file.
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://schemas.apache.org/demos/type_test"
xmlns:s="http://schemas.apache.org/demos/type_test/types"
xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://schemas.apache.org/demos/type_test"
name="type_test">
<types>
<xsd:schema targetNamespace="http://schemas.apache.org/demos/type_test/types">
<xsd:complexType name="SimpleStruct">
<xsd:sequence>
<xsd:element name="varFloat" type="xsd:float"/>
</xsd:sequence>
<xsd:attribute name="varAttrString" type="xsd:string"/>
</xsd:complexType>
</xsd:schema>
</types>
<message name="test_SimpleStruct">
<part name="x" element="s:SimpleStruct_x"/>
<part name="y" element="s:SimpleStruct_y"/>
</message>
<message name="test_SimpleStruct_response">
<part name="return" element="s:SimpleStruct_return"/>
<part name="y" element="s:SimpleStruct_y"/>
<part name="z" element="s:SimpleStruct_z"/>
</message>
<portType name="TypeTestPortType">
<operation name="test_SimpleStruct">
<input name="test_SimpleStruct" message="tns:test_SimpleStruct"/>
<output name="test_SimpleStruct_response"
message="tns:test_SimpleStruct_response"/>
</operation>
</portType>
</definitions>
When trying to parse the schema - information is missing when using Xmlschema
1.2
If I call the following.
ComplexType.getAttributes();
Iterate through them.
Know the Attribute has its use set to none.
I then try to do Attribute.getQName();
When using Xmlschema 1.1 I get
name = "varAttrString" namespace=http://schemas.apache.org/demos/type_test/types
When using Xmlschema 1.2 I get
name="varAttrString" namespace=""
Is this a known bug ?
thanks, Edell.
--
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]