Help me with this wsdl parser! [message #112444] |
Fri, 17 June 2005 16:45  |
Eclipse User |
|
|
|
Originally posted by: andreas140983.libero.it
I would create a wsdl parser. I use the wsdl4j library and for now I have
only write this few line of code:
import javax.wsdl.Definition;
import javax.wsdl.WSDLException;
import javax.wsdl.factory.WSDLFactory;
import javax.wsdl.xml.WSDLReader;
public class WSDLParser {
static String wsdlURI =
"http://www.xmethods.net/sd/2001/DemoTemperatureService.wsdl";
public static void main(String[] Args) throws WSDLException{
WSDLFactory wsdlFactory = WSDLFactory.newInstance();
WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
try{
Definition definition = wsdlReader.readWSDL(wsdlURI);
}
catch(WSDLException e){System.out.println(e.getMessage());}
}
}
When I run this code to see if there is any error the response of the
console is this:
Retrieving document at
'http://www.xmethods.net/sd/2001/DemoTemperatureService.wsdl'.
WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document
at 'http://www.xmethods.net/sd/2001/DemoTemperatureService.wsdl'.:
Javax/xml/namespace/QName
How I can resolve this error? Anyone can help me?
Excuse me for my bad english but I'm an italian boy!
Hi!!!!!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03228 seconds