- From: Arthur Ryman via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 27 May 2005 18:04:41 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/test-suite/documents/bad/Chameleon-1B In directory hutz:/tmp/cvs-serv6170/test-suite/documents/bad/Chameleon-1B Added Files: customerInfo.xsd accountInfo.xsd getBalance.wsdl 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 not to use chameleon includes. The inline schema includes the no-target xsd accountInfo.xsd, which imports the xsd customerInfo.xsd. The wsdl then tries to use an element defined in the xsd customerInfo.xsd. </wsdl:documentation> <wsdl:types> <xsd:schema targetNamespace="http://tempuri.org/getBalance/account/"> <xsd:include schemaLocation="accountInfo.xsd" /> </xsd:schema> </wsdl:types> <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