Thursday, April 2, 2015

Create a Web Service Client in Eclipse

Create new Web Service Client in Eclipse becomes quite easy thanks to the features this IDE brings to us along with the amount of existing plug-ins.

Lets say we have the URL of a published Web Service and we want to interact with it from our project. We just would need to go to New -> Other

Below the Web Services optin we have several options:


We choose Web Service Client.

In the n ext screen just insert the WSDL URL such as http://localhost:8080/Simple_webservice/HelloWorldWS?wsdl

NOTE: we used here http://www.webservicex.com/globalweather.asmx?wsdl a public global weather web service.







We just need to click next




Choose the output folder and thats it. We have in our project the needed classes to access to the Webservice from our code (stub, locator,etc.)





You just need to use the methods published in the Web Service.

1 comment: