File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Web service client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web service client" Watch "Web service client" New topic

Web service client

Kevin Fedric

Joined: Jan 29, 2012
Posts: 4
I am trying to build a web service client to consume MS academic search api's. I am using Netbeans 7 IDE. And after some quick reference on net, I used IDE wizard to create stubs from a WSDL URL.
Now I also see that there is one java class under "Web Services" with all methods that API is providing, however, these are just blank methods with no empty method body.
I want to invoke one one of the method from this class into a servlet to fetch the results from the web service. Now as the method bodies are empty, I guess I need to provide the definition to them.
But then I am not sure what to code for that. My simple understanding was I will get the stubs generated by netbeans, so that I can simply consume the API with appropriate params like API-KEY, Search String, etc. So I am stuck now on how to go ahead. This is my first project dealing with web services. I would really appreciate any help on my problem.

Kevin Fedric

Joined: Jan 29, 2012
Posts: 4
Can anyone please help?
I agree. Here's the link:
subject: Web service client
It's not a secret anymore!