You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Nash (JIRA)" <de...@tuscany.apache.org> on 2011/08/21 12:53:27 UTC
[jira] [Updated] (TUSCANY-1900) xsd:element maxOccurs attribute not
working correctly
[ https://issues.apache.org/jira/browse/TUSCANY-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Nash updated TUSCANY-1900:
--------------------------------
Component/s: (was: C++ SDO)
C++ SCA
Fix Version/s: C++-SCA-Next
Changed the component because the problem description refers to SCA, not SDO
> xsd:element maxOccurs attribute not working correctly
> -----------------------------------------------------
>
> Key: TUSCANY-1900
> URL: https://issues.apache.org/jira/browse/TUSCANY-1900
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SCA
> Affects Versions: C++-SCA-Next
> Environment: All platforms
> Reporter: Brady Johnson
> Fix For: C++-SCA-Next
>
>
> While creating unit tests for the TuscanySCA WSDL parser, I noticed that the maxOccurs
> attribute for the xsd:element is not working correctly. This can be reproduced looking at
> the TuscanySCA WSDL schema: wsdl_11.xsd snippet for the binding/operatin/input element:
> <xs:complexType name="tBindingOperation">
> <xs:complexContent>
> <xs:extension base="wsdl:tExtensibleDocumented">
> <xs:sequence>
> <xs:element name="input" type="wsdl:tBindingOperationMessage" minOccurs="0"/> <!-- LOOK HERE -->
> <xs:element name="output" type="wsdl:tBindingOperationMessage" minOccurs="0"/>
> <xs:element name="fault" type="wsdl:tBindingOperationFault" minOccurs="0" maxOccurs="unbounded"/>
> </xs:sequence>
> <xs:attribute name="name" type="xs:NCName" use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> If maxOccurs is not present it should default to 1. I tried adding maxOccurs="1" and loaded a WSDL with
> the following (Notice there are 2 <input/> elements in the operation):
> <binding name="binding" type="tns:portType">
> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
> <operation name="test">
> <soap:operation soapAction="http://www.tuscany.com/test/duplicate_services"/>
> <input>
> <soap:body use="literal"/>
> </input>
> <input>
> <soap:body use="literal"/>
> </input>
> <output>
> <soap:body use="literal"/>
> </output>
> </operation>
> </binding>
> This XML loads with no errors. An exception should be thrown.
> To reproduce this, comment out the following test in runtime/core/test/main.cpp
> TEST ( wsdlErrorsTest.testDuplicateWSDLInputOutputBinding() );
> --------------------
> Brady Johnson
> Lead Software Developer - HydraSCA
> Rogue Wave Software - brady.johnson@roguewave.com
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira