Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Help me with this wsdl parser!
Help me with this wsdl parser! [message #112444] Fri, 17 June 2005 16:45 Go to next message
Eclipse UserFriend
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!!!!!
Re: Help me with this wsdl parser! [message #112588 is a reply to message #112444] Sun, 19 June 2005 01:40 Go to previous message
Eclipse UserFriend
Hi,

The WTP does not develop WSDL4J. It is a SourceForge project. Try the
project home page at http://sourceforge.net/projects/wsdl4j/.

Lawrence
Previous Topic:Axis Plugin
Next Topic:Error IWAB0489E: Error when deploying Web service to Axis runtime
Goto Forum:
  


Current Time: Fri Apr 18 05:35:17 EDT 2025

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

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

Back to the top