Two more tests

Please find two tests engaging the MTOM feature (optional and mandatory 
use of the feature).
    Youenn
### Eclipse Workspace Patch 1.0
#P test-suite
Index: test-suite.xml
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/test-suite.xml,v
retrieving revision 1.12
diff -u -r1.12 test-suite.xml
--- test-suite.xml	6 Jul 2006 17:56:09 -0000	1.12
+++ test-suite.xml	6 Jul 2006 19:52:05 -0000
@@ -267,6 +267,34 @@
 		<folder>SparqlQuery-1G</folder>
 		<file>sparql-protocol-query.wsdl</file>
 	</test-case>
+	<test-case id="documents/good/Storage-1G">
+		<folder>Storage-1G</folder>
+		<file>storage.wsdl</file>
+	</test-case>
+	<test-case id="documents/good/Storage-2G">
+		<folder>Storage-2G</folder>
+		<file>storage.wsdl</file>
+	</test-case>
+	<test-case id="documents/good/Storage-3G">
+		<folder>Storage-3G</folder>
+		<file>storage.wsdl</file>
+	</test-case>
+	<test-case id="documents/good/Storage-4G">
+		<folder>Storage-4G</folder>
+		<file>storage.wsdl</file>
+	</test-case>
+	<test-case id="documents/good/Storage-5G">
+		<folder>Storage-5G</folder>
+		<file>storage.wsdl</file>
+	</test-case>
+	<test-case id="documents/good/Storage-6G">
+		<folder>Storage-6G</folder>
+		<file>storage.wsdl</file>
+	</test-case>
+	<test-case id="documents/good/Storage-7G">
+		<folder>Storage-7G</folder>
+		<file>storage.wsdl</file>
+	</test-case>
 	<test-case id="documents/good/TicketAgent-1G">
 		<folder>TicketAgent-1G</folder>
 		<file>TicketAgent.wsdl</file>
@@ -290,4 +318,4 @@
 		<file>reservationItems.wsdl</file>
 	</test-case>
 	
-</test-suite>
\ No newline at end of file
+</test-suite>
Index: documents/good/Storage-6G/TestMetadata.xml
===================================================================
RCS file: documents/good/Storage-6G/TestMetadata.xml
diff -N documents/good/Storage-6G/TestMetadata.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ documents/good/Storage-6G/TestMetadata.xml	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,31 @@
+<?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/Storage-6G
+	</Identifier>
+	<Title>Good Document Storage-6G</Title>
+	<Purpose>stub</Purpose>
+	<Description>
+		This WSDL shows the optional mtom feature.
+	</Description>
+	<Status>new</Status>
+	<SpecRef></SpecRef>
+	<Preconditions>none</Preconditions>
+	<Inputs>storage.wsdl</Inputs>
+	<ExpectedResults>
+		<Successful>true</Successful>
+	</ExpectedResults>
+	<Version>1.0</Version>
+	<Contributor>
+		<Name>Youenn Fablet</Name>
+		<Affiliation>Canon</Affiliation>
+		<EMail>youenn.fablet@crf.canon.fr</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>
Index: documents/good/Storage-6G/storage.wsdl
===================================================================
RCS file: documents/good/Storage-6G/storage.wsdl
diff -N documents/good/Storage-6G/storage.wsdl
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ documents/good/Storage-6G/storage.wsdl	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<description xmlns="http://www.w3.org/2006/01/wsdl"
+	targetNamespace="http://example.org/soapStorage"
+	xmlns:tns="http://example.org/soapStorage"
+	xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap">
+
+	<types>
+		<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+			targetNamespace="http://example.org/soapStorage">
+
+			<xs:element name="basicContent" type="xs:base64Binary"/>
+			<xs:element name="advancedContent" type="xs:base64Binary"/>
+			<xs:element name="basicAcknowledgement" type="xs:boolean" />
+			<xs:element name="advancedAcknowledgement" type="tns:tAcknowledgement" />
+			<xs:complexType name="tAcknowledgement">
+				<xs:sequence>
+					<xs:element name="date" type="xs:date" />
+					<xs:element name="status" type="xs:string" />
+					<xs:element name="size" type="xs:int" />
+				</xs:sequence>
+			</xs:complexType>
+		</xs:schema>
+	</types>
+
+	<interface name="baseInterface">
+		<operation name="basicstore"
+			pattern="http://www.w3.org/2006/01/wsdl/in-out">
+			<input element="tns:basicContent" />
+			<output element="tns:basicAcknowledgement" />
+		</operation>
+	</interface>
+
+	<interface name="extendedInterface" extends="tns:baseInterface">
+		<operation name="advancedstore"
+			pattern="http://www.w3.org/2006/01/wsdl/in-out">
+			<input element="tns:advancedContent" />
+			<output element="tns:advancedAcknowledgement" />
+		</operation>
+	</interface>
+
+	<binding name="storageBinding"
+		type="http://www.w3.org/2006/01/wsdl/soap"
+		wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP">
+		<feature ref="http://www.w3.org/2004/08/soap/features/http-optimization"/>
+	</binding>
+
+	<service name="storageService"
+		interface="tns:extendedInterface">
+
+		<endpoint name="storageEndpoint"
+			binding="tns:storageBinding"
+			address="http://example.org/storageService" />
+
+	</service>
+
+</description>
+
Index: documents/good/Storage-7G/storage.wsdl
===================================================================
RCS file: documents/good/Storage-7G/storage.wsdl
diff -N documents/good/Storage-7G/storage.wsdl
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ documents/good/Storage-7G/storage.wsdl	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<description xmlns="http://www.w3.org/2006/01/wsdl"
+	targetNamespace="http://example.org/soapStorage"
+	xmlns:tns="http://example.org/soapStorage"
+	xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap">
+
+	<types>
+		<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+			targetNamespace="http://example.org/soapStorage">
+
+			<xs:element name="basicContent" type="xs:base64Binary"/>
+			<xs:element name="advancedContent" type="xs:base64Binary"/>
+			<xs:element name="basicAcknowledgement" type="xs:boolean" />
+			<xs:element name="advancedAcknowledgement" type="tns:tAcknowledgement" />
+			<xs:complexType name="tAcknowledgement">
+				<xs:sequence>
+					<xs:element name="date" type="xs:date" />
+					<xs:element name="status" type="xs:string" />
+					<xs:element name="size" type="xs:int" />
+				</xs:sequence>
+			</xs:complexType>
+		</xs:schema>
+	</types>
+
+	<interface name="baseInterface">
+		<operation name="basicstore"
+			pattern="http://www.w3.org/2006/01/wsdl/in-out">
+			<input element="tns:basicContent" />
+			<output element="tns:basicAcknowledgement" />
+		</operation>
+	</interface>
+
+	<interface name="extendedInterface" extends="tns:baseInterface">
+		<operation name="advancedstore"
+			pattern="http://www.w3.org/2006/01/wsdl/in-out">
+			<input element="tns:advancedContent" />
+			<output element="tns:advancedAcknowledgement" />
+		</operation>
+	</interface>
+
+	<binding name="storageBinding"
+		interface="tns:extendedInterface"
+		type="http://www.w3.org/2006/01/wsdl/soap"
+		wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP">
+		<feature ref="http://www.w3.org/2004/08/soap/features/http-optimization"/>
+		<operation wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response"
+			ref="tns:advancedstore" >
+			<feature ref="http://www.w3.org/2004/08/soap/features/http-optimization" 
+				required="true"/>
+		</operation>
+	</binding>
+
+	<service name="storageService"
+		interface="tns:extendedInterface">
+
+		<endpoint name="storageEndpoint"
+			binding="tns:storageBinding"
+			address="http://example.org/storageService" />
+
+	</service>
+
+</description>
+
Index: documents/good/Storage-7G/TestMetadata.xml
===================================================================
RCS file: documents/good/Storage-7G/TestMetadata.xml
diff -N documents/good/Storage-7G/TestMetadata.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ documents/good/Storage-7G/TestMetadata.xml	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,31 @@
+<?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/Storage-7G
+	</Identifier>
+	<Title>Good Document Storage-7G</Title>
+	<Purpose>stub</Purpose>
+	<Description>
+		This WSDL shows the use of optional and required mtom feature.
+	</Description>
+	<Status>new</Status>
+	<SpecRef></SpecRef>
+	<Preconditions>none</Preconditions>
+	<Inputs>storage.wsdl</Inputs>
+	<ExpectedResults>
+		<Successful>true</Successful>
+	</ExpectedResults>
+	<Version>1.0</Version>
+	<Contributor>
+		<Name>Youenn Fablet</Name>
+		<Affiliation>Canon</Affiliation>
+		<EMail>youenn.fablet@crf.canon.fr</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>

Received on Thursday, 6 July 2006 19:54:20 UTC