- From: Arthur Ryman <aryman@dev.w3.org>
- Date: Thu, 03 Feb 2005 14:36:54 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/test-suite
In directory hutz:/tmp/cvs-serv24378
Modified Files:
index.html
Added Files:
build.xml catalog.xml
Log Message:
Added test cases, schemas, and Ant script.
--- NEW FILE: catalog.xml ---
<!DOCTYPE catalog
PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="public">
<dtd publicId="-//W3C//DTD XMLSCHEMA 200102//EN"
uri="xmlcatalog/xsd/XMLSchema.dtd" />
<dtd publicId="datatypes" uri="xmlcatalog/xsd/datatypes.dtd" />
<uri name="http://www.w3.org/@@@@/@@/wsdl"
uri="xmlcatalog/wsdl/wsdl20.xsd" />
<uri name="http://www.w3.org/2001/XMLSchema"
uri="xmlcatalog/xsd/XMLSchema.xsd" />
</catalog>
Index: index.html
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/index.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** index.html 21 May 2004 21:20:13 -0000 1.1
--- index.html 3 Feb 2005 14:36:52 -0000 1.2
***************
*** 1,5 ****
<html>
! <body>
! place holder for test tools in particular the test coverage generator
! </body>
! </html>
--- 1,35 ----
<html>
! <head>
! <title>examples</title>
! </head>
! <body>
! <h1>examples</h1>
! <address>Arthur Ryman</address>
! <address>2004-09-01</address>
! <p>
! This project shows how to validate example WSDL 2.0 documents using ant.
! The Primer will contain valid examples and may also include some invalid ones.
! We want to make sure that the valid examples are really valid, and that
! the invalid ones are invalid.
! Put valid examples in /examples/valid.
! Put invalid examples in /examples/invalid.
! </p>
! <p>
! The xmlcatalog directory contains the schemas for WSDL 2.0 (in /examples/xmlcatalog/wsdl)
! and XSD 1.0 (in /examples/xmlcatalog/xsd).
! </p>
! <p>
! Refer to the /examples/build.xml ant script.
! To validate the valid examples, run the 'valid' target.
! The 'valid' target will stop if it encounters an error since all these
! documents are supposed to be valid.
! To validate the invalid examples, run the 'invalid target.
! The 'invalid' target will report errors and keep going.
! Check the console output to make sure these are really invalid.
! </p>
! <p>
! The ant xmlvalidate task requires the xerces parser to validate xsd.
! Modify the xercesImpl property to point to where you installed xerces on your machine.
! </p>
! </body>
! </html>
\ No newline at end of file
--- NEW FILE: build.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<project name="WSDL20" default="main" basedir=".">
<property name="xercesImpl.jar" location="E:\xerces-2_6_2\xercesImpl.jar"/>
<property name="schemaLocation" value="http://www.w3.org/@@@@/@@/wsdl xmlcatalog/wsdl/wsdl20.xsd http://www.w3.org/2001/XMLSchema xmlcatalog/xsd/XMLSchema.xsd"/>
<xmlcatalog id="schemas">
<dtd publicId="-//W3C//DTD XMLSCHEMA 200102//EN" location="xmlcatalog/xsd/XMLSchema.dtd"/>
<dtd publicId="datatypes" location="xmlcatalog/xsd/datatypes.dtd"/>
<entity publicId="http://www.w3.org/@@@@/@@/wsdl" location="xmlcatalog/wsdl/wsdl20.xsd"/>
<entity publicId="http://www.w3.org/2001/XMLSchema" location="xmlcatalog/xsd/XMLSchema.xsd"/>
</xmlcatalog>
<xmlcatalog id="external">
<catalogpath>
<fileset file="catalog.xml"/>
</catalogpath>
</xmlcatalog>
<target name="main" depends="valid, invalid" description="Validates all documents."/>
<target name="valid" description="Validates valid WSDL and XSD documents.">
<xmlvalidate failonerror="yes" lenient="no" warn="yes" classname="org.apache.xerces.parsers.SAXParser" classpath="${xercesImpl.jar}">
<fileset dir="." includes="valid/**/*.wsdl, valid/**/*.xsd" />
<xmlcatalog refid="external" />
<attribute name="http://xml.org/sax/features/namespaces" value="true" />
<attribute name="http://xml.org/sax/features/validation" value="true" />
<attribute name="http://apache.org/xml/features/validation/schema" value="true" />
</xmlvalidate>
</target>
<target name="invalid" description="Validates invalid WSDL and XSD documents.">
<xmlvalidate failonerror="no" lenient="no" warn="yes" classname="org.apache.xerces.parsers.SAXParser" classpath="${xercesImpl.jar}">
<fileset dir="." includes="invalid/**/*.wsdl, invalid/**/*.xsd" />
<xmlcatalog refid="schemas"/>
<attribute name="http://xml.org/sax/features/namespaces" value="true" />
<attribute name="http://xml.org/sax/features/validation" value="true" />
<attribute name="http://apache.org/xml/features/validation/schema" value="true" />
<attribute name="http://apache.org/xml/properties/schema/external-schemaLocation" value="${schemaLocation}"/>
</xmlvalidate>
</target>
<target name="wsdl" description="Validates WSDL schemas.">
<xmlvalidate failonerror="yes" lenient="no" warn="yes" classname="org.apache.xerces.parsers.SAXParser" classpath="${xercesImpl.jar}">
<fileset dir="." includes="xmlcatalog/wsdl/*.xsd" />
<xmlcatalog refid="schemas"/>
<attribute name="http://xml.org/sax/features/namespaces" value="true" />
<attribute name="http://xml.org/sax/features/validation" value="true" />
<attribute name="http://apache.org/xml/features/validation/schema" value="true" />
</xmlvalidate>
</target>
<target name="xsd" description="Validates XSD schema.">
<xmlvalidate failonerror="yes" lenient="no" warn="yes" classname="org.apache.xerces.parsers.SAXParser" classpath="${xercesImpl.jar}">
<fileset dir="." includes="xmlcatalog/xsd/*.xsd" />
<xmlcatalog refid="schemas"/>
<attribute name="http://xml.org/sax/features/namespaces" value="true" />
<attribute name="http://xml.org/sax/features/validation" value="true" />
<attribute name="http://apache.org/xml/features/validation/schema" value="true" />
</xmlvalidate>
</target>
</project>
Received on Thursday, 3 February 2005 14:36:55 UTC