Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Validate WSDL Ant Task(13:62:cvc-elt.1: Cannot find the declaration of element wsdl:definitions)
Validate WSDL Ant Task [message #1064649] Thu, 20 June 2013 08:03 Go to next message
Jakob Braeuchi is currently offline 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 04:52]

Report message to a moderator

Re: Validate WSDL Ant Task [message #1065270 is a reply to message #1064649] Tue, 25 June 2013 04:06 Go to previous message
Jakob Braeuchi is currently offline Jakob Braeuchi
Messages: 69
Registered: July 2009
Location: Switzerland
Member
hi,

i can successfully call the WSDL-Validation from a Java-Class

...
URI uri = wsdlpath.toFile().toURI();
WSDLValidator validator = WSDLValidator.getInstance();
IValidationReport report = validator.validate(uri.toString());
...


So there seems to be something wrong with the ANT-Task !

jakob
Previous Topic:Debug issues in Indigo/Glassfish 3.1.1 environment
Next Topic:Keeping in sync : StructuredTextEditor and GrapicalEditor in MultipageEditorPart
Goto Forum:
  


Current Time: Wed Apr 23 02:44:39 EDT 2014

Powered by FUDForum. Page generated in 0.10906 seconds