W3C home > Mailing lists > Public > public-ws-desc-eds@w3.org > November 2006

2002/ws/desc/test-suite/documents/good/LocationTemplate-1G SOAPservice.filename,NONE,1.1 TestMetadata.xml,NONE,1.1 SOAPservice.wsdl,NONE,1.1 dateSpace.xsd,NONE,1.1

From: Jonathan Marsh via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 20 Nov 2006 02:32:25 +0000
To: public-ws-desc-eds@w3.org
Message-Id: <E1GlyxN-0003QV-6e@lionel-hutz.w3.org>

Update of /sources/public/2002/ws/desc/test-suite/documents/good/LocationTemplate-1G
In directory hutz:/tmp/cvs-serv10943/test-suite/documents/good/LocationTemplate-1G

Added Files:
	SOAPservice.filename TestMetadata.xml SOAPservice.wsdl 
	dateSpace.xsd 
Log Message:
Added test LocationTemplate-1G.
Regenerated results.

--- 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-1G
	</Identifier>
	<Title>Good Document LocationTemplate-1G</Title>
	<Purpose>For testing interoperability</Purpose>
	<Description>Exercise wsoap:header.</Description>
	<Status>accepted</Status>
	<SpecRef></SpecRef>
	<Preconditions>none</Preconditions>
	<Inputs>
		<Input role="root">SOAPservice.wsdl</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-1G/SOAPservice.wsdl</filename>

--- NEW FILE: dateSpace.xsd ---
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified" targetNamespace="http://example.org/date-space/xsd"
  xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://example.org/date-space/xsd">

  <xs:element name="dateSpace" type="ds:dateSpaceType"/>

  <xs:complexType name="dateSpaceType">
    <xs:sequence>
      <xs:element name="year" type="xs:int"/>
      <xs:element name="month" type="xs:int"/>
      <xs:element name="day" type="xs:int"/>
      <xs:element name="time" type="xs:time" minOccurs="2" maxOccurs="2"/>
    </xs:sequence>
  </xs:complexType>

  <xs:element name="result" type="xs:anyURI"/>

</xs:schema>

--- 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:ds="http://example.org/date-space/xsd"
  xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
  
  <documentation><![CDATA[
    This test exercises http templating.
    
    The constructReference is provided a structure (dateSpace), 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:
      <dateSpace xmlns="http://example.org/date-space/xsd">
        <year>2006</year>
        <month>11</month>
        <day>18</day>
        <time>16:40:00</time>
        <time>20:00:42</time>
      </dateSpace>
    
    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/date-space/xsd" schemaLocation="dateSpace.xsd"/>
  </types>
  
  <interface name="ProbeSpace">
    <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.
      Expect: http://example.org?year=2006&amp;month=11&amp;day=18&amp;time=16:40:00&amp;time=20:00:42
      </documentation>
      <input element="ds:dateSpace"/>
      <output element="ds:result"/>
    </operation>
  </interface>
 
  <binding name="Paths" interface="tns:ProbeSpace"
    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 successfully inserted as path segments.
      Expect: http://example.org/datespace/2006/11/18/16:40:00-20:00:42.html
    </documentation>
    <operation ref="tns:constructReference" whttp:method='GET'
      whttp:location="datespace/{year}/{month}/{day}/{time}-{time}.html"/>
  </binding>

  <binding name="MixedPathsQueryParams" interface="tns:ProbeSpace"
    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 successfully inserted as path segments.
      Expect: http://example.org/datespace/2006/11.html?day=18;start=16:40:00;end=20:00:42
    </documentation>
    <operation ref="tns:constructReference" whttp:method='GET'
      whttp:location="datespace/{year}/{month}.html?day={day};start={time};end={time}"/>
  </binding>

  <binding name="AutoQueryParams" interface="tns:ProbeSpace"
    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 automatically appended as query parameters.
      Expect: http://example.org/datespace.html?year=2006;month=11;day=18;time=16:40:00;time=20:00:42
    </documentation>
    <operation ref="tns:constructReference" whttp:method='GET'
      whttp:location="datespace.html" whttp:queryParmsSeparator=";"/>
  </binding>
  
  <binding name="AutoRemainder" interface="tns:ProbeSpace"
    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 successfully inserted as path segments, with remaining ones becoming query parameters.
      Expect: http://example.org/datespace/2006/11.html?day=18&amp;time=16:40:00&amp;time=20:00:42
    </documentation>
    <operation ref="tns:constructReference" whttp:method='GET'
      whttp:location="datespace/{year}/{month}.html"/>
  </binding>

  <binding name="IgnoreUncited" interface="tns:ProbeSpace"
    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 suppressed.
      Expect: http://example.org/datespace/2006.html?start=16:40:00
    </documentation>
    <operation ref="tns:constructReference" whttp:method='GET'
      whttp:location="datespace/{year}.html?start={time}" whttp:ignoreUncited="true"/>
  </binding>

  <binding name="AdditionalQueryParams" interface="tns:ProbeSpace"
    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 suppressed.
      Expect: http://example.org/datespace/2006.html?timezone=utc&amp;month=11&amp;day=18&amp;time=16:40:00&amp;time=20:00:42
    </documentation>
    <operation ref="tns:constructReference" whttp:method='GET'
      whttp:location="datespace/{year}.html?timezone=utc"/>
  </binding>
  
  <service name="ProbeSpaceService" interface="tns:ProbeSpace">
    <documentation>Exercise each endpoint in order.</documentation>
    <endpoint name="PathsEndpoint" binding="tns:Paths" address="http://example.org/"/>
    <endpoint name="MixedPathsQueryParamsEndpoint" binding="tns:MixedPathsQueryParams" address="http://example.org/"/>
    <endpoint name="AutoQueryParamsEndpoint" binding="tns:AutoQueryParams" address="http://example.org/"/>
    <endpoint name="AutoRemainderEndpoint" binding="tns:AutoRemainder" address="http://example.org/"/>
    <endpoint name="IgnoreUncidedEndpoint" binding="tns:IgnoreUncited" address="http://example.org/"/>
    <endpoint name="AdditionalQueryParamsEndpoint" binding="tns:AdditionalQueryParams" address="http://example.org/"/>
  </service>
</description>
Received on Monday, 20 November 2006 02:32:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:24 UTC