This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41068
    
  43
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: 41068
    
  43
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()".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Import WSDL
 
Similar Threads
reading WSDL from an uri
How to enable cached authentication details..??
Multiple questions on WSDL elements as per the specifications.
How to get MetaData from web service
Accessing webservice using dynamic proxies