- From: Arthur Ryman <aryman@dev.w3.org>
- Date: Mon, 07 Feb 2005 16:31:59 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/test-suite/documents/good/Import-2G In directory hutz:/tmp/cvs-serv19039/documents/good/Import-2G Added Files: name.xsd XSDImport.wsdl XSDImport2.wsdl Log Message: Applied patch from Lawrence Mandel to add test cases. See http://lists.w3.org/Archives/Public/www-ws-desc/2005Feb/0017.html --- NEW FILE: XSDImport.wsdl --- <?xml version="1.0" encoding="UTF-8"?> <wsdl:description targetNamespace="http://example.org/XSDImport" xmlns:name="http://example.org/name" xmlns:wsdl="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"> <wsdl:documentation> This test shows a valid use of an XML schema import. </wsdl:documentation> <wsdl:types> <xs:import schemaLocation="name.xsd" namespace="http://example.org/name" /> </wsdl:types> <wsdl:interface name="Names"> <wsdl:operation name="getNameFromSIN" pattern="http://www.w3.org/2004/08/wsdl/in-out"> <wsdl:input element="name:SIN"/> <wsdl:output element="name:Name"/> </wsdl:operation> </wsdl:interface> </wsdl:description> --- NEW FILE: name.xsd --- <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.org/name" xmlns:tns="http://example.org/name" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/XMLSchema ../../../xmlcatalog/xsd/XMLSchema.xsd"> <!-- This document is used as a sample XML schema document. --> <element name="Name"> <complexType> <sequence> <element name="FirstName" type="string"></element> <element name="LastName" type="string"></element> </sequence> </complexType> </element> <element name="SIN" type="string"/> </schema> --- NEW FILE: XSDImport2.wsdl --- <?xml version="1.0" encoding="UTF-8"?> <wsdl:description targetNamespace="http://example.org/XSDImport" xmlns:name="http://example.org/name" xmlns:wsdl="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"> <wsdl:documentation> This test shows that the XML schema import is valid when it is imported in both this document and the document this imports. </wsdl:documentation> <wsdl:include location="XSDImport.wsdl"/> <wsdl:types> <xs:import schemaLocation="name.xsd" namespace="http://example.org/name" /> </wsdl:types> <wsdl:interface name="Names"> <wsdl:operation name="getNameFromSIN" pattern="http://www.w3.org/2004/08/wsdl/in-out"> <wsdl:input element="name:SIN"/> <wsdl:output element="name:Name"/> </wsdl:operation> </wsdl:interface> </wsdl:description>
Received on Monday, 7 February 2005 16:32:29 UTC