Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 12:03 Go to next message
Jakob Braeuchi is currently offline Jakob BraeuchiFriend
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

Re: Validate WSDL Ant Task [message #1065270 is a reply to message #1064649] Tue, 25 June 2013 08:06 Go to previous message
Jakob Braeuchi is currently offline Jakob BraeuchiFriend
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: Thu Apr 25 06:46:44 GMT 2024

Powered by FUDForum. Page generated in 0.02570 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top