[ 
http://issues.apache.org/jira/browse/TUSCANY-587?page=comments#action_12425755 
] 
            
Geoff Winn commented on TUSCANY-587:
------------------------------------

There is more to this than I first thought. The problem is exhibited by the 
following schema

<?xml version="1.0" encoding="UTF-8" ?> 

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
           xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
           targetNamespace="http://schemas.xmlsoap.org/wsdl/";
           elementFormDefault="qualified" >
   
  <xs:group name="Wrapper">
    <xs:choice>
      <xs:element name="import" type="xs:string" />
      <xs:element name="types" type="xs:string" />                     
      <xs:element name="message" type="xs:string" />
    </xs:choice>
  </xs:group>

  <xs:complexType name="tDefinitions" >
    <xs:complexContent>
        <xs:sequence>
          <xs:group ref="wsdl:Wrapper" minOccurs="0" maxOccurs="unbounded" />
        </xs:sequence>
        <xs:attribute name="targetNamespace" type="xs:anyURI" use="optional" />
        <xs:attribute name="name" type="xs:NCName" use="optional" />
    </xs:complexContent>
  </xs:complexType>

</xs:schema>

The imprtant line is the group ref. The group consists of a choice of three 
elements and the group ref allows unbounded repeats. After reading this xsd, 
SDO ought to generate a type containing three properties, import, types and 
message, all of which are many valued. In fact they are all single valued, so 
SDO has failed to process the attributes on the group ref.

> WSDL XSD is read incorrectly.
> -----------------------------
>
>                 Key: TUSCANY-587
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-587
>             Project: Tuscany
>          Issue Type: Bug
>          Components: C++ SDO
>    Affects Versions: Cpp-current
>         Environment: All platforms
>            Reporter: Geoff Winn
>
> When SDO for C++ reads the WSDL XSD 
> (http://scemas.xmlsoap.org/wsdl/2003-02-11.xsd) some properties that are in 
> fact many valued are identified in the internal model as single valued.

-- 
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to