error in part 2, section 3.1.4

The namespace value of "myDataType" is inconsistent in the example (see bold text).
Proposal: change the second case to : xmlns:foo="http://example.com/ws/wsdl20/my-ws"
<types>

 <schema targetNamespace="http://example.com/ws/wsdl20/my-ws"

         xmlns:xs="http://www.w3.org/2001/XMLSchema"

         xmlns="http://www.w3.org/2001/XMLSchema"

         xmlns:ad="http://www.w3.org/2004/08/wsdl/feature/AD">

  <!-- Define the data type we'll use later -->

  <complexType name="myDataType">

   <sequence>



    <!-- These elements are our data -->

    <element name="isGoldClubMember" type="xs:boolean"

             ad:mustUnderstand="true" />



    <element name="promotionalCode"

             type="xs:string"

             minOccurs="0"/>



   </sequence>

  </complexType>

 </schema>

</types>

<interface name="customerService">

 <operation name="reserveCar">

  <input element="myNS:reserveCarRequest">

   <property uri="http://www.w3.org/2004/08/wsdl/feature/AD/data">

    <constraint xmlns:foo="http://example.com/">

     foo:myDataType

    </constraint>

   </property>

  </input>

 </operation>

</interface>
 

Best Regards,
Kevin Liu  

 

Received on Friday, 10 September 2004 01:41:53 UTC