- From: Jonathan Marsh via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 08 Feb 2007 22:53:35 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/test-suite/documents/good/LocationTemplate-3G In directory hutz:/tmp/cvs-serv29817/test-suite/documents/good/LocationTemplate-3G Added Files: TestMetadata.xml SOAPservice.wsdl SOAPservice.filename pathdata.xsd Log Message: Added LocationTemplate-2G and 3G, updated expected values on LocationTemplate-1G per CR117 resolution. --- NEW FILE: TestMetadata.xml --- <?xml version="1.0"?> <TestMetadata xmlns="http://www.w3.org/2006/02/wsdl/TestMetadata"> <Identifier> http://dev.w3.org/cvsweb/2002/ws/desc/test-suite/documents/good/LocationTemplate-3G </Identifier> <Title>Good Document LocationTemplate-3G</Title> <Purpose>For testing interoperability</Purpose> <Description>Exercise whttp:location encoding under the SOAP binding, including those testcases that can't be unambiguously mapped back into XML.</Description> <Status>accepted</Status> <SpecRef></SpecRef> <Preconditions>none</Preconditions> <Inputs> <Input role="root">SOAPservice.wsdl</Input> <Input role="required-extension">http://www.w3.org/2006/01/wsdl/soap</Input> </Inputs> <ExpectedResults> <Successful>true</Successful> </ExpectedResults> <Version>1.0</Version> <Contributor> <Name>Jonathan Marsh</Name> <Affiliation>WSO2</Affiliation> <EMail>jonathan@wso2.com</EMail> </Contributor> <Rights>http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231</Rights> <Grouping>/documents/good</Grouping> <SeeAlso><Reference>http://www.w3.org/TR/wsdl20</Reference></SeeAlso> </TestMetadata> --- NEW FILE: SOAPservice.filename --- <filename>LocationTemplate-3G/SOAPservice.wsdl</filename> --- NEW FILE: SOAPservice.wsdl --- <description xmlns="http://www.w3.org/2006/01/wsdl" targetNamespace="http://example.org/message-test" xmlns:tns="http://example.org/message-test" xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap" xmlns:wsdlx="http://www.w3.org/2006/01/wsdl-extensions" xmlns:whttp="http://www.w3.org/2006/01/wsdl/http" xmlns:path="http://example.org/path-data/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <documentation><![CDATA[ This test exercises %-encoding during http templating. The constructReference is provided a structure (pathdata), and returns a URI corresponding to the structure, in particular, the URI constructed from the template. For test purposes, invoke the operation with the following structure: <pathdata xmlns="http://example.org/path-data/xsd"> <full-uri>http://www.example.org:9443/</full-uri> <path>2007/02?</path> <fragment>#id</fragment> <data>encoded "#%*/<>?[\]^`{|}£ unencoded !$&'()+,-.:;=@_~</data> </pathdata> When running a test pass against this WSDL, each endpoint should be invoked in order, and each operation within the interface bound by that binding should be invoked in the order it appears in the interface, extended interfaces first. ]]></documentation> <types> <xs:import namespace="http://example.org/path-data/xsd" schemaLocation="pathdata.xsd"/> </types> <interface name="ProbeData"> <documentation>This minimal interface defines a single operation which can be bound in a variety of ways.</documentation> <operation name="constructReference" pattern="http://www.w3.org/2006/01/wsdl/in-out" style="http://www.w3.org/2006/01/wsdl/style/iri"> <documentation>Simple probe service - pass in a query structure, get a uri constructed from that structure back.</documentation> <input element="path:pathdata"/> <output element="path:result"/> </operation> </interface> <binding name="RawPath" interface="tns:ProbeData" type="http://www.w3.org/2006/01/wsdl/soap" wsoap:version="1.2" wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/"> <documentation> This binding tests raw path segments can be inserted. Expect: http://example.org/RawPath/2007/02?data=encoded%20%22%23%25%2A%2F%3C%3E%3F%5B%5C%5D%5E%60%7B%7C%7D%C2%A3%20unencoded%20!$%26'()+,-.:;=@_~?full-uri=http://www.example.org:9443/&fragment=%23id </documentation> <operation ref="tns:constructReference" wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response/" whttp:location="RawPath/{!path}data={data}"/> </binding> <binding name="FullPath" interface="tns:ProbeData" type="http://www.w3.org/2006/01/wsdl/soap" wsoap:version="1.2" wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/"> <documentation> This binding tests that raw path segments including the whole URI can be inserted. Expect: http://www.example.org:9443/2007/02?data=encoded%20%22%23%25%2A%2F%3C%3E%3F%5B%5C%5D%5E%60%7B%7C%7D%C2%A3%20unencoded%20!$%26'()+,-.:;=@_~#id </documentation> <operation ref="tns:constructReference" wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response/" whttp:location="{!full-uri}{!path}{!fragment}"/> </binding> <service name="ProbeDataService" interface="tns:ProbeData"> <documentation>Exercise each endpoint in order.</documentation> <endpoint name="RawPathEndpoint" binding="tns:RawPath" address="http://example.org/"/> <endpoint name="FullPathEndpoint" binding="tns:FullPath" address="http://example.org/"/> </service> </description> --- NEW FILE: pathdata.xsd --- <?xml version="1.0" encoding="UTF-8"?> <xs:schema elementFormDefault="qualified" targetNamespace="http://example.org/path-data/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:path="http://example.org/path-data/xsd"> <xs:element name="pathdata" type="path:pathDataType"/> <xs:complexType name="pathDataType"> <xs:sequence> <xs:element name="full-uri" type="xs:anyURI" maxOccurs="0"/> <xs:element name="path" type="xs:anyURI" maxOccurs="0"/> <xs:element name="data" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:element name="result" type="xs:anyURI"/> </xs:schema>
Received on Thursday, 8 February 2007 22:53:43 UTC