Re: WSDL test suite build files

Steve,

I moved to Ant 1.7 alpha as you suggested. The <schemavalidate> task 
worked nicely. I migrated the WSDL 2.0 Test Suite to remove the 
schemaLocation attributes. Thx.

Woden team - the test documents are much cleaner now. They don't refer to 
the schemas stored in the xmlcatalog directory any more.

Arthur Ryman,
IBM Software Group, Rational Division

blog: http://ryman.eclipsedevelopersjournal.com/
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



Arthur Ryman/Toronto/IBM
01/19/2006 08:54 PM

To
Steve Loughran <steve.loughran.soapbuilders@gmail.com>
cc

Subject
Re: WSDL test suite build files





Steve,

Thx for the tips. I'll try Ant 1.7.

Arthur Ryman,
IBM Software Group, Rational Division

blog: http://ryman.eclipsedevelopersjournal.com/
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



Steve Loughran <steve.loughran.soapbuilders@gmail.com> 
01/15/2006 04:19 PM

To
Arthur Ryman/Toronto/IBM@IBMCA
cc

Subject
WSDL test suite build files






Hello,

I've just been looking at the build file for the WSDL2.0 test suite,
the one with your name at the top

(a) hard coding a path on an e: drive to the location of Xerces is
probably a bad thing. Ant always ships with Xerces anyway.

(b) if you build up Ant1.7 from CVS head (or grab a snapshot from
november at http://people.apache.org/~stevel/dist/ ) you will find a
task called <schemavalidate> that does XSD validation with location
setup that works properly with Xerces, even for bulk validations of
**/*.xsd, which ant1.6 can't do (because xerces forgets the settings
every parse). That is: you cannot rely on a bulk <xmlvalidate> with
Xerces on Ant1.6.

(c) even if you stick with ant1.6, you can use <presetdef> to define
the template you want, instead of repeating the same xmlvalidate call
so often,.

There is an example here
http://cvs.sourceforge.net/viewcvs.py/deployment/deployment/build.xml?rev=1.73&view=markup


including some declarations of validation templates

    <presetdef name="validate-xsd">
      <schemavalidate>
        <schema namespace="http://www.w3.org/2001/XMLSchema"
                file="${soap.dir}/XMLSchema.xsd"/>
        <schema namespace="http://www.w3.org/XML/1998/namespace"
                file="${soap.dir}/xml.xsd"/>
        <dtd publicId="http://www.w3.org/2001/datatypes.dtd"
             location="${soap.dir}/datatypes.dtd"/>
      </schemavalidate>
    </presetdef>

    <presetdef name="validate-soap">
      <validate-xsd>
        <schema namespace="http://www.w3.org/2003/05/soap-envelope"
                file="${soap12.xsd}"/>
        <schema namespace="http://schemas.xmlsoap.org/wsdl/"
                file="${soap.dir}/wsdl.xsd"/>
        <schema namespace="http://schemas.xmlsoap.org/wsdl/soap/"
                file="${soap.dir}/wsdlsoap.xsd"/>
      </validate-xsd>
    </presetdef>


-steve

(ant and axis development team)

Received on Sunday, 19 February 2006 23:40:40 UTC