- From: Arthur Ryman via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 23 Mar 2005 03:35:27 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/test-suite/documents/good/CreditCardFaults-1G In directory hutz:/tmp/cvs-serv29788/documents/good/CreditCardFaults-1G Added Files: credit-card-faults.wsdl use-credit-card-faults.wsdl credit-card-faults.xsd Log Message: Create test case CreditCardFaults-1G for primer section on <import>. --- NEW FILE: use-credit-card-faults.wsdl --- <?xml version="1.0"?> <description targetNamespace="http://greath.example.com/2004/wsdl/resSvc" xmlns:ghns="http://greath.example.com/2004/schemas/resSvc" xmlns:cc="http://finance.example.com/CreditCards/wsdl" xmlns="http://www.w3.org/2004/08/wsdl" 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> Description: The definition of the reservation Web service of GreatH hotel. Author: Joe Somebody Date: 05/17/2004 </documentation> <import namespace="http://finance.example.com/CreditCards/wsdl" location="credit-card-faults.wsdl"/> <types> <xs:import namespace="http://greath.example.com/2004/schemas/resSvc" schemaLocation="http://greath.example.com/2004/schemas/resSvc.xsd" /> </types> <interface name="reservation" extends="cc:creditCardFaults"> <fault name="invalidDataFault" element="ghns:invalidDataError" /> <operation name="checkAvailability" pattern="http://www.w3.org/2004/03/wsdl/in-out"> <input messageLabel="In" element="ghns:checkAvailability" /> <output messageLabel="Out" element="ghns:checkAvailabilityResponse" /> <outfault ref="invalidDataFault" messageLabel="Out" /> </operation> <operation name="makeReservation" pattern="http://www.w3.org/2004/03/wsdl/in-out"> <input messageLabel="In" element="ghns:makeReservation" /> <output messageLabel="Out" element="ghns:makeReservationResponse" /> <outfault ref="invalidDataFault" messageLabel="Out" /> <outfault ref="cc:cancelledCreditCard" messageLabel="Out" /> <outfault ref="cc:expiredCreditCard" messageLabel="Out" /> <outfault ref="cc:invalidCreditCardNumber" messageLabel="Out" /> <outfault ref="cc:invalidExpirationDate" messageLabel="Out" /> </operation> </interface> </description> --- NEW FILE: credit-card-faults.wsdl --- <?xml version="1.0" encoding="utf-8" ?> <description xmlns="http://www.w3.org/2004/08/wsdl" targetNamespace="http://finance.example.com/CreditCards/wsdl" xmlns:tns="http://finance.example.com/CreditCards/wsdl" xmlns:cc="http://finance.example.com/CreditCards/xsd" 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> This document describes standard faults for use by Web services that process credit cards. </documentation> <types> <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://finance.example.com/CreditCardFaults/xsd" schemaLocation="credit-card-faults.xsd" /> </types> <interface name="creditCardFaults"> <fault name="cancelledCreditCard" element="cc:CancelledCreditCard"> <documentation>Thrown when the credit card has been cancelled.</documentation> </fault> <fault name="expiredCreditCard" element="cc:ExpiredCreditCard"> <documentation>Thrown when the credit card has expired.</documentation> </fault> <fault name="invalidCreditCardNumber" element="cc:InvalidCreditCardNumber"> <documentation>Thrown when the credit card number is invalid. This fault will occur if the wrong credit card type is specified.</documentation> </fault> <fault name="invalidExpirationDate" element="cc:InvalidExpirationDate"> <documentation>Thrown when the expiration date is invalid.</documentation> </fault> </interface> </description> --- NEW FILE: credit-card-faults.xsd --- <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://finance.example.com/CreditCards/xsd" xmlns:tns="http://finance.example.com/CreditCards/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/XMLSchema ../../../xmlcatalog/xsd/XMLSchema.xsd"> <element name="CreditCardNumber" type="string"></element> <element name="CreditCardType"> <simpleType> <restriction base="string"> <enumeration value="AMEX" /> <enumeration value="MASTERCARD" /> <enumeration value="VISA" /> </restriction> </simpleType> </element> <element name="ExpirationDate" type="date"></element> <element name="InvalidCreditCardNumber"> <complexType> <sequence> <element ref="tns:CreditCardType"></element> <element ref="tns:CreditCardNumber"></element> </sequence> </complexType> </element> <element name="InvalidExpirationDate"> <complexType> <sequence> <element ref="tns:CreditCardNumber"></element> <element ref="tns:ExpirationDate"></element> </sequence> </complexType> </element> <element name="ExpiredCreditCard"> <complexType> <sequence> <element ref="tns:CreditCardNumber"></element> </sequence> </complexType> </element> <element name="CancelledCreditCard"> <complexType> <sequence> <element ref="tns:CreditCardNumber"></element> </sequence> </complexType> </element> </schema>
Received on Wednesday, 23 March 2005 03:35:28 UTC