W3C home > Mailing lists > Public > www-ws-desc@w3.org > September 2005

Problem with test cases using schema import

From: John Kaputin (gmail) <jakaputin@gmail.com>
Date: Tue, 20 Sep 2005 15:05:52 +0100
Message-ID: <4c2ae8f805092007054c4d2b79@mail.gmail.com>
To: www-ws-desc@w3.org, John Kaputin <KAPUTIN@uk.ibm.com>
Could one of the Working Group editors take a look at these WSDL test cases?

http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-1G/reservation.wsdl
http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-2G/reservationDetails.wsdl
http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-3G/reservationDetails.wsdl

These 3 test cases use <xs:import> without the schemaLocation attribute, but 
in all 3 the imported namespace is missing an 's' off the end (i.e. 
.../reservationItems) and the prefix 'items' should be declared.

e.g. 

the importing schema reservation.wsdl is currently:

		<xs:schema
			targetNamespace="http://greath.example.com/2004/schemas/reservationDetails">

			<xs:import
				namespace="http://greath.example.com/2004/schemas/reservationItem" />

			<xs:element name="reservationDetails">
				<xs:complexType>
					<xs:sequence>
						<xs:element ref="items:confirmationNumber" />
						<xs:element ref="items:checkInDate" />
                                                ....


I think it should be:

 <xs:schema
 targetNamespace="http://greath.example.com/2004/schemas/reservationDetails"
 xmlns:items="http://greath.example.com/2004/schemas/reservationItems">

 <xs:import
 namespace="http://greath.example.com/2004/schemas/reservationItems" />

 <xs:element name="reservationDetails">
 <xs:complexType>
 <xs:sequence>
 <xs:element ref="items:confirmationNumber" />
 <xs:element ref="items:checkInDate" />
....
Received on Tuesday, 20 September 2005 14:06:07 GMT

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