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

Import WSDL

Santosh Maskar
Ranch Hand

Joined: Jul 02, 2003
Posts: 226
Hi,

I am trying to import the WSDL uri (http://api.google.com/GoogleSearch.wsdl) from jsp page. I have one text box where user can paste the above url and press the import button. I am getting the url in my form bean but it is not parsing the wsdl file. I need to parse the wsdl using its uri,

I can parse the wsdl when it is on my local machine. if someone can point me the link/doc it would be great help.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41874
    
  63
I'm not sure what this has to do with JSP. Is the problem retrieving the WSDL file over HTTP, or the parsing of the WSDL file once you have retrieved it?


Ping & DNS - my free Android networking tools app
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It has nothing to do with JSP.
Moving to the web servcices forum.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Santosh Maskar
Ranch Hand

Joined: Jul 02, 2003
Posts: 226
Yes Ulf,you are correct. I am facing problem while retrieving the WSDL file over HTTP.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41874
    
  63
Have a look at the java.net.URL and HttpUrlConnection classes. They let you access web resources via HTTP and download their contents. It could be as simple as "new URL("http://api.google.com/GoogleSearch.wsdl").getContent()".
 
Don't get me started about those stupid light bulbs.
 
subject: Import WSDL