Re: Test Suite Update

I've created 2 good and 3 bad test cases that test WSDL and XML schema 
imports in WSDL 2.0 documents. Please let me know if I've made 
unintentional mistakes in the WSDL documents. 

Are there any naming conventions for test cases?


The good tests show examples of:
1) importing an XML schema document the proper way
<wsdl:types>
  <xs:import schemaLocation="name.xsd" 
             namespace="http://example.org/name" />
</wsdl:types>

2) importing an XML schema document in both WSDL documents A and B  and 
importing WSDL document B into WSDL document A.


The bad tests show examples of:
1) an incorrect XML schema import (for use in the WSDL document) in the 
types section:
<wsdl:types>
  <xs:schema>
    <xs:import schemaLocation="name.xsd" 
               namespace="http://example.org/name" />
  </xs:schema>
</wsdl:types>

2) an incorrect XML schema import that uses the wsdl:import element to 
import a schema document
<wsdl:import namespace="http://example.org/name" location="name.xsd"/>

3) an incorrect XML schema import that expects the schema file to be 
imported by importing the XSDImportValid.wsdl WSDL document that imports 
the schema
<wsdl:description...>
  <wsdl:include location="XSDImportValid.wsdl"/>
 
  <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>


Here are the patches.

Apply the following patch to test-suite/documents/good


Apply the following patch to test-suite/documents/bad



Lawrence Mandel

Software Developer
IBM Rational Software - XML Web Services Tooling
Phone: 905 - 413 - 3814   Fax: 905 - 413 - 4920
lmandel@ca.ibm.com



Arthur Ryman <ryman@ca.ibm.com> 
02/03/2005 05:04 PM

To
www-ws-desc@w3.org
cc
John Kaputin <KAPUTIN@uk.ibm.com>, lmandel@ca.ibm.com
Subject
Test Suite Update







I have seeded the Test Suite. It contains the Primer example and document 
from Appendix C. See [2] for instructions on how to contribute. I total we 
have 2 good test and 1 bad test. 

I have a couple of requests. 

1. Please start contributing test cases. I know of a few projects that are 
working on implementations and the test suite will really help them. 

2. The test suite includes an Ant script that validates the documents 
against the WSDL schemas. In the process of getting this to work I had to 
edit the schemas to a) correct ommisions, b) replace the complex DTD 
entity mechanism for defining the namespaces with a literal value. I used 
2004/08 as the effective date. I request that we abandon the DTD entity 
approach and simply do a batch rename when the final namespace is 
assigned. The "corrected" schemas are at [3], [4], [5]. I'd like to make 
these the official ones, replacing the currently committed versions. 

[1] http://dev.w3.org/cvsweb/2002/ws/desc/test-suite/ 
[2] http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html 

[3] 
http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/xmlcatalog/wsdl/wsdl20.xsd 

[4] 
http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/xmlcatalog/wsdl/wsdl20-rpc.xsd 

[5]http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/xmlcatalog/wsdl/wsdl20-soap.xsd 


Arthur Ryman,
Rational Desktop Tools Development

phone: +1-905-413-3077, TL 969-3077
assistant: +1-905-413-2411, TL 969-2411
fax: +1-905-413-4920, TL 969-4920
mobile: +1-416-939-5063, text: 4169395063@fido.ca
intranet: http://labweb.torolab.ibm.com/DRY6/

Received on Saturday, 5 February 2005 06:02:39 UTC