csfb
csfb

Reputation: 1097

How to use the web service client generetad by eclipse

I'm using Eclipse Juno to create a Web Service Client for consuming a WSDL SOAP web service.

It generated 2 packages, one with the web service name and another with "org.tempuri.dataset_ISI_xsd".

Inside the first package there are some classes like:

1- ServiceName

2- ServiceNameProxy

3- ServiceNameService

4- ServiceNameServiceLocator

5- ServiceNameSoapBindingStub

I'd like to know wich class should I use to call the web service methods and how to obtain the values returned by the method.

Thanks in advance

Upvotes: 0

Views: 943

Answers (1)

Palamino
Palamino

Reputation: 791

Instantiate the xxxProxy class, call the setEndpoint() method passing the url of the web service host, then call the method matching the name of the web service. The return type of the method will depend on the definition of the web service.

Upvotes: 1

Related Questions