Re: WSDL 1.1 schema question

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 UTC