How to call a web service using Java

I am new to web services. I need to call a web service whose definition is at http://api.search.live.net/search.wsdl . I need to search for any keyword using this web service. I am searching online but have not found any solution. Any idea how to call a web service. I need to use Java.

+5
source share
3 answers

Download axis2 .

After extracting it in the bin folder, there is the wsdl2java tool, which is used to create stubs from WSDL that can communicate with the web service.

Using an example:

WSDL2Java -uri http://api.search.live.net/search.wsdl  -d xmlbeans -s

.

, .

- Eclipse IDE.

+2

http://ws.apache.org/, Axis2, , , .

, - , WSDL, , WSDL , JSON . RESTEasy ?

0

All Articles