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