W3C home > Mailing lists > Public > www-ws-desc@w3.org > March 2003

Re: WSDL 1.1 schema question

From: Arthur Ryman <ryman@ca.ibm.com>
Date: Fri, 21 Mar 2003 11:20:18 -0500
To: "Edward Wertz" <ed@mindreef.com>
Cc: www-ws-desc@w3.org, www-ws-desc-request@w3.org
Message-ID: <OFF63D80B3.0DBCB02F-ON85256CF0.00593863@torolab.ibm.com>

Edward,

Schema validation is not enough. For example, one WSDL document may import
others and refer to components defined there. Schema validation applies to
single documents AFAIK so therefore all of the semantic rules of WSDL 1.1
can't be expressed in XSD.

The order of immediate child elements of <definitions> of a given kind,
e.g. <message>, does not matter, but the sequence of kinds is specified:

   <complexType name="definitionsType">
      <complexContent>
         <extension base="wsdl:documented">
            <sequence>
               <element ref="wsdl:import" minOccurs="0" maxOccurs
="unbounded"/>
               <element ref="wsdl:types" minOccurs="0"/>
               <element ref="wsdl:message" minOccurs="0" maxOccurs
="unbounded"/>
               <element ref="wsdl:portType" minOccurs="0" maxOccurs
="unbounded"/>
               <element ref="wsdl:binding" minOccurs="0" maxOccurs
="unbounded"/>
               <element ref="wsdl:service" minOccurs="0" maxOccurs
="unbounded"/>
               <any namespace="##other" minOccurs="0" maxOccurs
="unbounded">
                  <annotation>
                     <documentation>to support extensibility elements
</documentation>
                  </annotation>
               </any>
            </sequence>
            <attribute name="targetNamespace" type="uriReference" use
="optional"/>
            <attribute name="name" type="NMTOKEN" use="optional"/>
         </extension>
      </complexContent>
  </complexType>


Arthur Ryman


|---------+---------------------------->
|         |           "Edward Wertz"   |
|         |           <ed@mindreef.com>|
|         |           Sent by:         |
|         |           www-ws-desc-reque|
|         |           st@w3.org        |
|         |                            |
|         |                            |
|         |           03/18/2003 05:50 |
|         |           PM               |
|         |                            |
|---------+---------------------------->
  >---------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                                             |
  |       To:       <www-ws-desc@w3.org>                                                                                                        |
  |       cc:                                                                                                                                   |
  |       Subject:  WSDL 1.1 schema question                                                                                                    |
  |                                                                                                                                             |
  |                                                                                                                                             |
  >---------------------------------------------------------------------------------------------------------------------------------------------|



I was reading through the WSDL 1.1 schema at
http://schemas.xmlsoap.org/wsdl/ and have a couple questions.

In the "anyTopLevelOptionalElement" group there is documentation indicating
that the types should not appear more than once and extensibility elements
are allowed in any place.  The structure of the schema, however, implies
that extensibility elements must appear before any of the
"anyTopLevelOptionalElement" elements, and the schema does not restrict the
types node from occurring more than once.

Is the structure outlined by the schema the official structure of WSDL 1.1
documents?  Is schema validation enough to ensure a well-formed WSDL
document?
Does the order of any of the immediate child elements to a Definitions node
matter?

Edward
Received on Friday, 21 March 2003 11:27:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:58:23 GMT