2002/ws/desc/test-suite/documents/good/XsImport-1G reservation.wsdl,NONE,1.1

Update of /sources/public/2002/ws/desc/test-suite/documents/good/XsImport-1G
In directory hutz:/tmp/cvs-serv15028/documents/good/XsImport-1G

Added Files:
	reservation.wsdl 
Log Message:
Created test cases to illustrate use of <xs:import> with no schemaLocation
when refering to inline schemas that have been encountered via <wsdl:import>
and <wsdl:include>

--- NEW FILE: reservation.wsdl ---
<?xml version="1.0" encoding="utf-8" ?>
<description xmlns="http://www.w3.org/2004/08/wsdl"
	targetNamespace="http://greath.example.com/2004/services/retrieveDetails"
	xmlns:tns="http://greath.example.com/2004/services/retrieveDetails"
	xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
	xmlns:items="http://greath.example.com/2004/schemas/reservationItems"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.w3.org/2004/08/wsdl ../../../xmlcatalog/wsdl/wsdl20.xsd http://www.w3.org/2001/XMLSchema ../../../xmlcatalog/xsd/XMLSchema.xsd">

	<documentation>
		Test case XsImport-1G shows that the schemaLocation attribute is
		not required when importing a namespace that is defined in an
		inline schema contained in the same document. In this example,
		the second inline schema imports the namespace defined in the
		first inline schema, but does not specify a schemaLocation since
		the WSDL processor can locate it by virtue of it being included
		the WSDL document that is being processed.
	</documentation>

	<types>

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

			<xs:element name="confirmationNumber" type="string" />
			<xs:element name="checkInDate" type="date" />
			<xs:element name="checkOutDate" type="date" />
			<xs:element name="roomType" type="string" />
			<xs:element name="smoking" type="boolean" />

		</xs:schema>

		<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" />
						<xs:element ref="items:checkOutDate" />
						<xs:element ref="items:roomType" />
						<xs:element ref="items:smoking" />
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:schema>

	</types>

	<interface name="retrieveDetailsInterface">

		<operation name="retrieve"
			pattern="http://www.w3.org/2004/03/wsdl/in-out">
			<input messageLabel="In" element="#none" />
			<output messageLabel="Out"
				element="details:reservationDetails" />
		</operation>

	</interface>

</description>

Received on Wednesday, 6 April 2005 01:31:42 UTC