- 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/good/Chameleon-1G In directory hutz:/tmp/cvs-serv6170/test-suite/documents/good/Chameleon-1G Added Files: getBalance.wsdl getBalance.xsd Log Message: Added Chameleon tests from Faryaaz Kassam. --- 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: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 to use elements from an included no-target namespace xsd (i.e. chameleon include) </wsdl:documentation> <wsdl:types> <xsd:schema targetNamespace="http://tempuri.org/getBalance/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:include schemaLocation="getBalance.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="tns:custInfo" /> <wsdl:output element="tns:accInfo" /> </wsdl:operation> </wsdl:interface> </wsdl:description> --- NEW FILE: getBalance.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: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="cinfoct" /> <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>
Received on Friday, 27 May 2005 18:04:46 UTC