Recently I was playing around consuming web service inside Eclipse plug-in. Making simple web service call maybe a bit tricky at the beginning. I’m going to provide quick start instruction here,
Required software:
- Eclipse for RCP/Plug-in Developer
- JEE Standard Tools & Axis

Configuration steps:
- Define new JEE service in a workspace

- Create new plug-in project

- Add following dependencies to the plug-in:
- org.apache.commons.logging
- javax.wsdl
- javax.xml.rpc
- javax.xml.soap
- org.apache.commons.discovery
- org.apache.axis

- Generate web service client code

Consume web service:
Using web service in side a plug-in is no different than anyone else. Sample of invoking web service method:
TransportServiceSoap service = new TransportServiceLocator().getTransportServiceSoap(); service.getCities();
Instruction presented above is based on Eclipse 3.4.1 and uses sample web service from http://www.urbanlife.pl/