Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSDL

 
divya madala
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you type the URL into a web browser, does it serve the WSDL correctly? If it does, then are you behind a proxy?
 
divya madala
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about copying the file to your machine and pointing Eclipse to the local copy?
 
divya madala
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wav!!! Finally it worked.
Thanks for your idea!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic