Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Import WSDL

 
Santosh Maskar
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has nothing to do with JSP.
Moving to the web servcices forum.
 
Santosh Maskar
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Ulf,you are correct. I am facing problem while retrieving the WSDL file over HTTP.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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()".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic