aspose file tools*
The moose likes Web Services and the fly likes WSDL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL" Watch "WSDL" New topic
Author

WSDL

divya madala
Ranch Hand

Joined: Jan 10, 2001
Posts: 61
I followed the steps exactly like in the below link
http://wsdl2javawizard.sourceforge.net/
I gave the URL, user id and password for where the service's WSDL can be found.
Getting timeout Exception in Eclipse, but don't see any files.
Anybody who had the similar problem.........
Thanks,
Divya


:roll:
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
If you type the URL into a web browser, does it serve the WSDL correctly? If it does, then are you behind a proxy?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
divya madala
Ranch Hand

Joined: Jan 10, 2001
Posts: 61
Yes I am behind a proxy.
So, that means I cannot use this from behind firewall?
Any suggestions please!!!
Thanks,
Shanti
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Well, you can try telling your Eclipse which proxy server and port to use, just like you need to tell your web browser. There's a nice little plugin for doing that.
divya madala
Ranch Hand

Joined: Jan 10, 2001
Posts: 61
Yes, thats a great plugin indeed. I used it without problems.
Unfortunately though, nothing changed, and when I access the site through the WSDL, I get the same Time Out error.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
How about copying the file to your machine and pointing Eclipse to the local copy?
divya madala
Ranch Hand

Joined: Jan 10, 2001
Posts: 61
Frankly I don't know how to do that.
I downloaded the XML schema, but no clue how to point Eclipse to that.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Frankly I don't know how to do that.
I downloaded the XML schema, but no clue how to point Eclipse to that.

By "XML schema", do you mean a document of which root element is "definitions"? If so, that's the WSDL document.
Now, you can either use something like "file:///C:/Downloads/foobar.wsdl" as the URL for Eclipse or, if that doesn't work, download some web server and publish foobar.wsdl with that (i.e. the URL would be something like "http://localhost/foobar.wsdl").
divya madala
Ranch Hand

Joined: Jan 10, 2001
Posts: 61
When I tried the first method I got the error , so that means it is reading the file?
Fatal Error: URI=file:///C:/Downloads/foobar.wsdl Line=1:XML declaration may only begin entities.
Well, my document starts like this.
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions name=............
when I removed the first line <?xml version="1.0" encoding="UTF-8" ?>
and have the document begin line as
- <definitions name=............
then I got the error
Fatal Error: URI=file:///C:/Downloads/foobar.wsdl Line=1:XML document root element is missing.

Can you also send me the link where I can download the webserver if that's what you think is the reason.
Thanks,
Divya
divya madala
Ranch Hand

Joined: Jan 10, 2001
Posts: 61
Wav!!! Finally it worked.
Thanks for your idea!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL