2002/ws/desc/test-suite/documents/bad/Chameleon-2B customerInfo.xsd,NONE,1.1 getBalance.wsdl,NONE,1.1 accountInfo.xsd,NONE,1.1

Update of /sources/public/2002/ws/desc/test-suite/documents/bad/Chameleon-2B
In directory hutz:/tmp/cvs-serv6170/test-suite/documents/bad/Chameleon-2B

Added Files:
	customerInfo.xsd getBalance.wsdl accountInfo.xsd 
Log Message:
Added Chameleon tests from Faryaaz Kassam.

--- NEW FILE: accountInfo.xsd ---
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.w3.org/2001/XMLSchema ../../../xmlcatalog/xsd/XMLSchema.xsd">

	<xsd:import namespace="http://tempuri.org/getBalance/customer/"
		schemaLocation="customerInfo.xsd" />

	<xsd:complexType name="accinfct">
		<xsd:sequence maxOccurs="unbounded" minOccurs="0">
			<xsd:element name="accName">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:enumeration value="Cheque" />
						<xsd:enumeration value="Credit" />
						<xsd:enumeration value="Savings" />
						<xsd:enumeration value="Loan" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="accNumber">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:pattern value="[0-9]{12}" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="accBalance">
				<xsd:simpleType>
					<xsd:restriction base="xsd:decimal">
						<xsd:fractionDigits value="2" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="accInfo" type="accinfct" />
</xsd:schema>

--- NEW FILE: getBalance.wsdl ---
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:description xmlns:tns="http://tempuri.org/getBalance/"
	xmlns:wsdl="http://www.w3.org/2005/05/wsdl"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://tempuri.org/getBalance/"
	xmlns:customer="http://tempuri.org/getBalance/customer/"
	xmlns:account="http://tempuri.org/getBalance/account/"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.w3.org/2005/05/wsdl ../../../xmlcatalog/wsdl/wsdl20.xsd http://www.w3.org/2001/XMLSchema ../../../xmlcatalog/xsd/XMLSchema.xsd">

	<wsdl:documentation>
		This test shows how a wsdl import statement should not be used.
		A wsdl import statement is meant to import WSDL documents only.
		It cannot be used to import no-target namespace xsd as below.
	</wsdl:documentation>

	<wsdl:import namespace="" location="accountInfo.xsd" />

	<wsdl:interface name="getBalanceInf">
		<wsdl:operation name="getBalance"
			pattern="http://www.w3.org/2005/05/wsdl/in-out">
			<wsdl:input element="customer:custInfo" />
			<wsdl:output element="account:accInfo" />
		</wsdl:operation>
	</wsdl:interface>
</wsdl:description>

--- NEW FILE: customerInfo.xsd ---
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://tempuri.org/getBalance/customer/"
	xmlns:tns="http://tempuri.org/getBalance/customer/"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.w3.org/2001/XMLSchema ../../../xmlcatalog/xsd/XMLSchema.xsd">

	<xsd:complexType name="cinfoct">
		<xsd:sequence>
			<xsd:element name="customerSurname" type="xsd:string" />
			<xsd:element name="customerForname" type="xsd:string" />
			<xsd:element name="branchCode">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:pattern
							value="[0-9]{2}[\-][0-9]{2}[\-][0-9]{2}" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="custInfo" type="tns:cinfoct" />
</xsd:schema>

Received on Friday, 27 May 2005 18:04:48 UTC