Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Creating a web service client
Creating a web service client [message #186838] Wed, 24 January 2007 03:01 Go to next message
Zohar Amir is currently offline Zohar Amir
Messages: 419
Registered: July 2009
Senior Member
Hello,
I have a web service's WSDL and I need to write a client for that service.
What is the best way to do that?

Thanks,
Zohar.
Re: Creating a web service client [message #186848 is a reply to message #186838] Wed, 24 January 2007 10:50 Go to previous messageGo to next message
Andrew Mak is currently offline Andrew Mak
Messages: 41
Registered: July 2009
Member
Hi Zohar,

You can create a client for your service using the Web Service Client
Wizard. Here are the steps to get you started:

1. Click on New > Other... from the menu
2. Look for the Web Services folder and select Web Service Client, click
next (the Web Service Client Wizard comes up).

From here, you can click on browse to select a WSDL that you have
downloaded to your workspace, or you can type in a live URL directly.

Below the service definition field there are a bunch of options that you
can play around with, such as controlling how far the wizard should
proceed (for example, the wizard will generate samples JSPs for testing
the service if the slider is set to the "Test" position); and you can also
set configure the target server and runtime.

If you have anymore questions regarding the options, please don't hesitate
to post on the newsgroup.

Hope this helps.

Andrew

Zohar wrote:

> Hello,
> I have a web service's WSDL and I need to write a client for that service.
> What is the best way to do that?

> Thanks,
> Zohar.
Re: Creating a web service client [message #186852 is a reply to message #186848] Wed, 24 January 2007 10:58 Go to previous messageGo to next message
Andrew Mak is currently offline Andrew Mak
Messages: 41
Registered: July 2009
Member
Hi Zohar,

I forgot to mention, you can also take a look at the following tutorial:

http://www.eclipse.org/webtools/jst/components/ws/1.5/tutori als/WebServiceClient/WebServiceClient.html

Andrew Mak wrote:

> Hi Zohar,

> You can create a client for your service using the Web Service Client
> Wizard. Here are the steps to get you started:

> 1. Click on New > Other... from the menu
> 2. Look for the Web Services folder and select Web Service Client, click
> next (the Web Service Client Wizard comes up).

> From here, you can click on browse to select a WSDL that you have
> downloaded to your workspace, or you can type in a live URL directly.

> Below the service definition field there are a bunch of options that you
> can play around with, such as controlling how far the wizard should
> proceed (for example, the wizard will generate samples JSPs for testing
> the service if the slider is set to the "Test" position); and you can also
> set configure the target server and runtime.

> If you have anymore questions regarding the options, please don't hesitate
> to post on the newsgroup.

> Hope this helps.

> Andrew

> Zohar wrote:

>> Hello,
>> I have a web service's WSDL and I need to write a client for that service.
>> What is the best way to do that?

>> Thanks,
>> Zohar.
Re: Creating a web service client [message #186870 is a reply to message #186852] Wed, 24 January 2007 12:04 Go to previous messageGo to next message
Zohar Amir is currently offline Zohar Amir
Messages: 419
Registered: July 2009
Senior Member
I get a bunch of classes created - how do I use them...?

"Andrew Mak" <makandre@ca.ibm.com> wrote in message
news:d5a54eeb6e8eb58a78f6726dc9c67156$1@www.eclipse.org...
> Hi Zohar,
>
> I forgot to mention, you can also take a look at the following tutorial:
>
> http://www.eclipse.org/webtools/jst/components/ws/1.5/tutori als/WebServiceClient/WebServiceClient.html
>
> Andrew Mak wrote:
>
>> Hi Zohar,
>
>> You can create a client for your service using the Web Service Client
>> Wizard. Here are the steps to get you started:
>
>> 1. Click on New > Other... from the menu
>> 2. Look for the Web Services folder and select Web Service Client, click
>> next (the Web Service Client Wizard comes up).
>
>> From here, you can click on browse to select a WSDL that you have
>> downloaded to your workspace, or you can type in a live URL directly.
>
>> Below the service definition field there are a bunch of options that you
>> can play around with, such as controlling how far the wizard should
>> proceed (for example, the wizard will generate samples JSPs for testing
>> the service if the slider is set to the "Test" position); and you can
>> also set configure the target server and runtime.
>
>> If you have anymore questions regarding the options, please don't
>> hesitate to post on the newsgroup.
>
>> Hope this helps.
>
>> Andrew
>
>> Zohar wrote:
>
>>> Hello,
>>> I have a web service's WSDL and I need to write a client for that
>>> service. What is the best way to do that?
>
>>> Thanks,
>>> Zohar.
>
>
Re: Creating a web service client [message #186893 is a reply to message #186870] Wed, 24 January 2007 13:54 Go to previous messageGo to next message
Andrew Mak is currently offline Andrew Mak
Messages: 41
Registered: July 2009
Member
Hi Zohar,

You can use the generated classes in a couple of ways. In your
application, you can new up an instance of the generated proxy class and
use it in your code. You can also use the proxy as a bean on a JSP page
(if you've allowed the web service client wizard to generate the sample
JSPs, you can take a look at how it's being used there).

Andrew
Re: Creating a web service client [message #186950 is a reply to message #186893] Thu, 25 January 2007 03:10 Go to previous messageGo to next message
Zohar Amir is currently offline Zohar Amir
Messages: 419
Registered: July 2009
Senior Member
Thanks for the help.
How do I set the service's URL?
Is there an example client where I can see how all the classes should be
used correctly? Is there any documentation regarding the various generated
classes ?

Thanks again,
Zohar.

"Andrew Mak" <makandre@ca.ibm.com> wrote in message
news:395dffca2d766fa19186a0fe2551a9ed$1@www.eclipse.org...
> Hi Zohar,
>
> You can use the generated classes in a couple of ways. In your
> application, you can new up an instance of the generated proxy class and
> use it in your code. You can also use the proxy as a bean on a JSP page
> (if you've allowed the web service client wizard to generate the sample
> JSPs, you can take a look at how it's being used there).
>
> Andrew
>
Re: Creating a web service client [message #186998 is a reply to message #186950] Thu, 25 January 2007 11:20 Go to previous message
Andrew Mak is currently offline Andrew Mak
Messages: 41
Registered: July 2009
Member
Hi Zohar,

If you take a peek inside the generated proxy class, you can see how it
makes use of the other generated class (the proxy class hides a lot of the
details and is meant as a convenience class that users can use directly).
Also, have a look at the following article, it has some sample code and
more in-depth explanations of what the classes are used for.

http://java.sys-con.com/read/180402.htm

Andrew

Zohar wrote:

> Thanks for the help.
> How do I set the service's URL?
> Is there an example client where I can see how all the classes should be
> used correctly? Is there any documentation regarding the various generated
> classes ?

> Thanks again,
> Zohar.

> "Andrew Mak" <makandre@ca.ibm.com> wrote in message
> news:395dffca2d766fa19186a0fe2551a9ed$1@www.eclipse.org...
>> Hi Zohar,
>>
>> You can use the generated classes in a couple of ways. In your
>> application, you can new up an instance of the generated proxy class and
>> use it in your code. You can also use the proxy as a bean on a JSP page
>> (if you've allowed the web service client wizard to generate the sample
>> JSPs, you can take a look at how it's being used there).
>>
>> Andrew
>>
Previous Topic:Websphere 5.1
Next Topic:eclipsecon 2007 submission deadlines: short talks / demos by Jan 31st
Goto Forum:
  


Current Time: Fri Jul 25 12:01:13 EDT 2014

Powered by FUDForum. Page generated in 0.01873 seconds