I am new to Web services. I need to invoke a web service whose definition is in http://api.search.live.net/search.wsdl . I need to do a search of any keyword by using this web service. I search on the net but could not find any solution. Any idea how to invoke the web service. I need to use Java.
3 Answers
Download axis2.
After extracting it, under the bin folder there is a tool called wsdl2java, this is used to generate stubs from the WSDL that can communicate with the webservice.
A sample usage would be:
WSDL2Java -uri http://api.search.live.net/search.wsdl -d xmlbeans -s
look here for more details on that tool.
Besides stubs it will also generate all the objects you need.
Here is a tutorial using axis2 and Eclipse IDE.

- 17,787
- 15
- 78
- 137
-
axis2 has a java implementation and you will be working with java code – Jul 29 '12 at 14:34
-
1axis2 is a **java** framework and it will generate java stubs and objects. it is also one of the most widely used SOAP frameworks in the java world, so getting to know it is a good thing. – Tomer Jul 29 '12 at 14:41
-
Yes. İ see.. i thought that is a tool. Thank you i will look at it. – erencan Jul 29 '12 at 15:07
Take a look at http://ws.apache.org/ where you will find Axis2 which is probably what you are looking for.
Note that web-services are more generic term than WSDL and have evolved since WSDL was introduced to the point that most services today speak JSON and alike. See more here RESTEasy or Jersey?

- 1
- 1

- 29,272
- 38
- 131
- 151
-
Thank you for your reply. I need to use WSDL it comes from requirements. – erencan Jul 29 '12 at 14:23
I use intelliJ to generate the java code I need from a WSDL. You can then use this code to do SOAP calls.
Give it the WSDL and it will generate the code, some info can be found here: http://www.jetbrains.com/idea/webhelp/generating-wsdl-document-from-java-code.html

- 6,063
- 1
- 36
- 47