Validate WSDL Ant Task [message #1064649] |
Thu, 20 June 2013 12:03  |
Jakob Braeuchi Messages: 69 Registered: July 2009 Location: Switzerland |
Member |
|
|
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 08:52] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02116 seconds