You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "ant elder (JIRA)" <de...@tuscany.apache.org> on 2008/10/20 12:20:44 UTC
[jira] Updated: (TUSCANY-1901) xsd:attribute use="required" not
working
[ https://issues.apache.org/jira/browse/TUSCANY-1901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ant elder updated TUSCANY-1901:
-------------------------------
Fix Version/s: (was: Cpp-M4)
Cpp-Next
> xsd:attribute use="required" not working
> ----------------------------------------
>
> Key: TUSCANY-1901
> URL: https://issues.apache.org/jira/browse/TUSCANY-1901
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SDO
> Affects Versions: Cpp-Next
> Environment: All platforms
> Reporter: Brady Johnson
> Fix For: Cpp-Next
>
>
> While creating unit tests for the TuscanySCA WSDL parser, I noticed that the xsd:attribute use="required" does
> not work correctly. Consider the following TuscanySCA Native wsdl_11.xsd schema snippet for the WSDL
> message/part element:
> <xs:complexType name="tPart">
> <xs:complexContent>
> <xs:extension base="wsdl:tExtensibleAttributesDocumented">
> <xs:attribute name="name" type="xs:NCName" use="required"/> <!-- look here -->
> <xs:attribute name="element" type="xs:QName" use="optional"/>
> <xs:attribute name="type" type="xs:QName" use="optional"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> And the corresponding wsdl snippet loaded using TuscanySDO:
> <message name="request">
> <!-- this is the correct form
> <part name="zipcode" type="xsd:string"/>
> -->
> <part type="xsd:string"/> <!-- this should cause a failure, since the name attribute is missing -->
> </message>
> The XML loads with no errors. An exception should be thrown.
> To reproduce this, comment out the following test case from TuscanySCA Native runtime/core/test/main.cpp:
> TEST ( wsdlErrorsTest.testMissingMessagePartName() );
> --------------------
> Brady Johnson
> Lead Software Developer - HydraSCA
> Rogue Wave Software - brady.johnson@roguewave.com
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.