- 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-2G In directory hutz:/tmp/cvs-serv29817/test-suite/documents/good/LocationTemplate-2G Added Files: pathdata.xsd TestMetadata.xml SOAPservice.filename SOAPservice.wsdl 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-2G </Identifier> <Title>Good Document LocationTemplate-2G</Title> <Purpose>For testing interoperability</Purpose> <Description>Exercise whttp:location encoding under the SOAP binding</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-2G/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="EncodedParameterAmp" 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 the that parameters are encoded successfully, including & as a qps. Expect: http://example.org/EncodedParameter?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/&path=2007/02?&fragment=%23id </documentation> <operation ref="tns:constructReference" wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response/" whttp:location="EncodedParameterAmp?data={data}" whttp:queryParameterSeparator="&"/> </binding> <binding name="EncodedParameterSemicolon" 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 the that parameters are encoded successfully, including ; as a qps. Expect: http://example.org/EncodedParameter?data=encoded%20%22%23%25%2A%2F%3C%3E%3F%5B%5C%5D%5E%60%7B%7C%7D%C2%A3%20unencoded%20!$&'()+,-.:%3B=@_~;full-uri=http://www.example.org:9443/;path=2007/02?;fragment=%23id </documentation> <operation ref="tns:constructReference" wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response/" whttp:location="EncodedParameterSemicolon?data={data}" whttp:queryParameterSeparator=";"/> </binding> <binding name="RawParameter" 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 the that parameters can be inserted without encoding, in this case resulting in a fragment. Expect: http://example.org/RawParameter?full-uri=http://www.example.org:9443/&path=2007/02?&fragment=%23id&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="RawParameter{!fragment}"/> </binding> <binding name="EncodedPath" 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 the path segments can be encoded properly. Expect: http://example.org/EncodedPath/encoded%20%22%23%25%2A%2F%3C%3E%3F%5B%5C%5D%5E%60%7B%7C%7D%C2%A3%20unencoded%20!$%26'()+,-.:;=@_~/service?full-uri=http://www.example.org:9443/&path=2007/02?&fragment=%23id </documentation> <operation ref="tns:constructReference" wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response/" whttp:location="EncodedPath/{data}/service"/> </binding> <service name="ProbeDataService" interface="tns:ProbeData"> <documentation>Exercise each endpoint in order.</documentation> <endpoint name="EncodedParameterAmpEndpoing" binding="tns:EncodedParameterAmp" address="http://example.org/"/> <endpoint name="EncodedParameterSemicolonEndpoint" binding="tns:EncodedParameterSemicolon" address="http://example.org/"/> <endpoint name="RawParameterEndpoint" binding="tns:RawParameter" address="http://example.org/"/> <endpoint name="EncodedPathEndpoint" binding="tns:EncodedPath" 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:51 UTC