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.
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?
Yes Ulf,you are correct. I am facing problem while retrieving the WSDL file over HTTP.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35439
9
posted
0
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()".