Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Creating a Java Web Service Client"
(New page: {| width="100%" cellspacing="5" cellpadding="2" | width="60%" align="left" | <font class="indextop">Consuming Web service using Web Service Client</font><br /><font class="indexsub">Consum...) |
|||
Line 2: | Line 2: | ||
| width="60%" align="left" | <font class="indextop">Consuming Web service using Web Service Client</font><br /><font class="indexsub">Consuming Web service using Web Service Client</font> | | width="60%" align="left" | <font class="indextop">Consuming Web service using Web Service Client</font><br /><font class="indexsub">Consuming Web service using Web Service Client</font> | ||
| width="40%" | | | width="40%" | | ||
− | [[Image: | + | [[Image:Wtplogosmall.png]] |
|} | |} | ||
Line 26: | Line 26: | ||
# Click '''Next'''. | # Click '''Next'''. | ||
# Move the client slider to the '''Test Client''' position. | # Move the client slider to the '''Test Client''' position. | ||
− | # Click the '''Client project''' link under '''Configuration''' and type in <tt>AreaProjClient</tt> as the name of the Client project in the dialog that appears: <br />[[Image: | + | # Click the '''Client project''' link under '''Configuration''' and type in <tt>AreaProjClient</tt> as the name of the Client project in the dialog that appears: <br />[[Image:Ws_CreateClientProj.png]]<br /> |
# If you want to choose a server different from the one defaulted by the wizard, click the '''Server''' link to: [http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/SelectServer/SelectServer.html select a server]. | # If you want to choose a server different from the one defaulted by the wizard, click the '''Server''' link to: [http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/SelectServer/SelectServer.html select a server]. | ||
− | # Result: <br />[[Image: | + | # Result: <br />[[Image:Ws_ClientWizard.png]]<br /> |
# Click '''Finish'''. | # Click '''Finish'''. | ||
# It will take about one minute for the wizard to assemble the Web service client Web projects, start Apache Tomcat, and deploy the project to Tomcat. Once finished, the generated Sample JSP Web application will appear in the browser view. | # It will take about one minute for the wizard to assemble the Web service client Web projects, start Apache Tomcat, and deploy the project to Tomcat. Once finished, the generated Sample JSP Web application will appear in the browser view. | ||
# Under '''Methods''', click on '''calculateRectArea''' . | # Under '''Methods''', click on '''calculateRectArea''' . | ||
# Under '''Inputs''', enter <tt>2.0</tt> and <tt>5.0</tt> into the height and width entry field. | # Under '''Inputs''', enter <tt>2.0</tt> and <tt>5.0</tt> into the height and width entry field. | ||
− | # Click on '''Invoke'''. In the '''Result''' view, you should get a response of '''10.0'''. <br />[[Image: | + | # Click on '''Invoke'''. In the '''Result''' view, you should get a response of '''10.0'''. <br />[[Image:Ws_ClientJSP.png]] |
|} | |} |
Revision as of 18:52, 29 February 2008
Consuming Web service using Web Service Client Consuming Web service using Web Service Client |
By Kathy Chan June 29, 2006 | |
Introduction | |
| |
This document is one of a series of tutorials to demonstrate the use of the Web Services tools in the Web Tools Platform Project with the WTP 1.5 drivers. | |
This tutorial shows how to create a Web serivce client to a deployed Web service created in Creating a top down Web service . | |
| |
Create a Web service Client | |
|