examples

Arthur Ryman
2004-09-01

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.

The xmlcatalog directory contains the schemas for WSDL 2.0 (in /examples/xmlcatalog/wsdl) and XSD 1.0 (in /examples/xmlcatalog/xsd).

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.

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.