hi,
i have the following ant-script to validate a WSDL
<path id="validation.class.path">
<fileset dir="${eclipse.home}/plugins">
<include name="**/*.jar"/>
</fileset>
</path>
<taskdef name="wsdl.validate" classname="org.eclipse.wst.wsdl.validation.internal.ui.ant.WSDLValidate">
<classpath refid="validation.class.path" />
</taskdef>
<target name="validate.wsdl">
<property name="wsdl.file" value="${wsdl.name}" />
<echo message="Validate WSDL: ${wsdl.file}"/>
<wsdl.validate file="${wsdl.file}"/>
</target>
When invoking the wsdl.validate target i get this error:
[ant] ERROR 13:62:cvc-elt.1: Cannot find the declaration of element 'wsdl:definitions'.
When i validate the WSDL using Context Menu->Validate it works.
Thanks for your help
jakob
see also http://www.eclipse.org/forums/index.php/t/489440/
[Updated on: Mon, 24 June 2013 04:52] by Moderator