Forums Register Login

Web service client

+Pie Number of slices to send: Send
Hello,
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.

Thanks.
+Pie Number of slices to send: Send
Can anyone please help?
Anderson gave himself the promotion. So I gave myself this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1044 times.
Similar Threads
WSDL2Java package problem
RPC mapping file
incorrect content-type for SOAP version
JAX-WS Question
Regarding 'annotations' in webservice eg. @WebService
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 23:11:21.