offline WSDLValidator.validate() [message #1059342] |
Fri, 17 May 2013 15:05 |
Raster R Messages: 77 Registered: July 2009 |
Member |
|
|
Hi,
Am trying to execute the following code.
It works quite well when I am connected to the internet.
When offline its trying to locate the http://schemas.xmlsoap.org/wsdl/ for finding <definitions/> element in the wsdl.
Error then is this: Cannot find the declaration of element 'definitions'.
How can I make this code work when offline?
R
WSDLValidator wsdlVlidator= new WSDLValidator();
IValidationReport report = wsdlVlidator.validate(pathToWsdl);
IValidationMessage[] validationMessages = report.getValidationMessages();
for (IValidationMessage iValidationMessage : validationMessages)
{
System.out.println(iValidationMessage.getLine()+","+iValidationMessage.getColumn()+"-"+iValidationMessage.getSeverity()+"["+iValidationMessage.getMessage()+"]");
}
|
|
|
Powered by
FUDForum. Page generated in 0.02965 seconds