⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bookingtype.xsd

📁 This a collection of sample processes that provide examples ranging from how to use a particular BP
💻 XSD
字号:
<?xml version="1.0" encoding="UTF-8"?>
<schema
	targetNamespace="http://schemas.active-endpoints.com/sample/bookingType/2006/07/bookingType.xsd"
	xmlns:tns="http://schemas.active-endpoints.com/sample/bookingType/2006/07/bookingType.xsd"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns="http://www.w3.org/2001/XMLSchema"
	attributeFormDefault="unqualified" elementFormDefault="qualified">

	<complexType name="CustomerData">
		<sequence>
			<element name="CustomerFullName" type="xsd:string" />
			<element name="CustomerAddress" type="xsd:string" />
			<element name="CustomerPhoneNumber" type="tns:PhoneNumber" />
		</sequence>
	</complexType>

	<simpleType name="PhoneNumber">
		<restriction base="xsd:normalizedString">
			<pattern value="\d*" />
		</restriction>
	</simpleType>
	<simpleType name="HotelClass">
		<annotation>
			<documentation>
				Hotel rating for 1 (star) to 5 (star)
			</documentation>
		</annotation>
		<restriction base="xsd:positiveInteger">
			<minInclusive value="1" />
			<maxInclusive value="5" />
		</restriction>
	</simpleType>
	<simpleType name="CreditCardNumber">
		<restriction base="xsd:normalizedString">
			<pattern value="\d*" />
		</restriction>
	</simpleType>
	<simpleType name="CreditCardExpiry">
		<restriction base="xsd:gYearMonth" />
	</simpleType>

	<complexType name="BookingRequest">
		<sequence>
			<element name="HotelLocation" type="xsd:string" />
			<element name="HotelClass" type="tns:HotelClass" />
			<element name="CheckinDate" type="xsd:date" />
			<element name="CheckoutDate" type="xsd:date" />
			<element name="CardNumber" type="tns:CreditCardNumber" />
			<element name="CardExpiry" type="tns:CreditCardExpiry" />
			<element name="OfferPrice" type="xsd:positiveInteger" />
		</sequence>
	</complexType>

	<simpleType name="BookingStatusData">
		<restriction base="xsd:string">
			<enumeration value="Accepted" />
			<enumeration value="Rejected" />
		</restriction>
	</simpleType>
	<complexType name="BookingConfirmationData">
		<sequence>
			<element name="HotelName" type="xsd:string" />
			<element name="HotelAddress" type="xsd:string" />
			<element name="HotelPhoneNumber" type="tns:PhoneNumber" />
			<element name="ConfirmationNumber" type="xsd:string" />
			<element name="TotalPrice" type="xsd:positiveInteger" />
		</sequence>
	</complexType>
	<element name="requestBookingFormatFault" type="xsd:string" />
	<element name="requestBookingLocationNotFoundFault"
		type="xsd:string" />
	<element name="bookingStatusData" type="tns:BookingStatusData"></element>

	<element name="bookingConfirmationData"
		type="tns:BookingConfirmationData">
	</element>
	<element name="customerData" type="tns:CustomerData"></element>
	<element name="bookingRequestData" type="tns:BookingRequest"></element>

	<element name="bookingRequest">
		<complexType>
			<sequence>
				<element ref="tns:customerData"></element>
				<element ref="tns:bookingRequestData"></element>
			</sequence>
		</complexType>
	</element>

	<element name="bookingResponse">
		<complexType>
			<sequence>
				<element ref="tns:bookingStatusData"></element>
				<element ref="tns:bookingConfirmationData" minOccurs="0"></element>
			</sequence>
		</complexType>
	</element>

</schema>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -