You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Edell Nolan (JIRA)" <ji...@apache.org> on 2007/06/11 18:11:26 UTC

[jira] Created: (WSCOMMONS-208) Namespace uri is not output for Attributes in xmlschema version 1.2.

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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Resolved: (WSCOMMONS-208) Namespace uri is not output for Attributes in xmlschema version 1.2.

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ajith Harshana Ranabahu resolved WSCOMMONS-208.
-----------------------------------------------

    Resolution: Fixed
      Assignee: Ajith Harshana Ranabahu

This issue was fixed but it was not properly tested. Added some extra code to test this functionality

> 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
>            Assignee: Ajith Harshana Ranabahu
>
> 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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org