W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2002

WSDL and possible UPA violation

From: Kohsuke KAWAGUCHI <kohsukekawaguchi@yahoo.com>
Date: Fri, 01 Feb 2002 18:39:24 -0500
To: xmlschema-dev@w3.org
Message-Id: <20020201183532.CA75.KOHSUKEKAWAGUCHI@yahoo.com>

I found the following part in the WSDL schema, a normative part of W3C
Note (http://www.w3.org/TR/wsdl)

---------------------------
  <complexType name="operationType">
   <complexContent>
    <extension base="wsdl:documented">
      <choice>
         <group ref="wsdl:one-way-operation"/>
         <group ref="wsdl:request-response-operation"/>
         ....
      </choice>
      ....
    </extension>
   </complexContent>
  </complexType>
  
  
   <group name="one-way-operation">
      <sequence>
         <element ref="wsdl:input"/>
      </sequence>
   </group>
   <group name="request-response-operation">
      <sequence>
         <element ref="wsdl:input"/>
         <element ref="wsdl:output"/>
         <element ref="wsdl:fault" minOccurs="0" maxOccurs="unbounded"/>
      </sequence>
   </group>
---------------------------


I believe this is a violation of UPA, just like the following schema is
a violation of UPA:

<choice>
  <element ref="foo"/>
  <sequence>
    <element ref="foo"/>
    <element ref="bar"/>
  </sequence>
</choice>



Am I right? Or am I wrong?


regards,
--
Kohsuke KAWAGUCHI                          +1 607 257 0037
Sun Microsystems                   kohsuke.kawaguchi@sun.com
Received on Friday, 1 February 2002 18:39:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT