| <html> | |
| <head> | |
| <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
| <link rel="stylesheet" href="../../../..//default_style.css" type="text/css"> | |
| <link rel="stylesheet" href="../../../..//webtools/wtp.css" type="text/css"> | |
| <title>Web Service Client Supporting Flexible Projects</title> | |
| </head> | |
| <body> | |
| <table width="100%" cellspacing="5" cellpadding="2" border="0"> | |
| <tbody> | |
| <tr> | |
| <td width="60%" align="left"><font class="indextop">Web Service Client Supporting Flexible Projects</font> | |
| <br> | |
| <font class="indexsub">Web Service Client Supporting Flexible Projects</font></td><td width="40%"><img width="120" hspace="50" height="86" align="middle" src="../../../..//images/Idea.jpg"></td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <table width="100%" cellspacing="5" cellpadding="2" border="0"> | |
| <col width="16"> | |
| <col width="*"> | |
| <tbody> | |
| <tr> | |
| <td valign="top" align="right"> </td><td valign="top"> | |
| <p> | |
| <b>By Kathy Chan</b> | |
| <br> | |
| Aug 4, 2005 | |
| <br> | |
| <br> | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">Introduction</font></b></td> | |
| </tr> | |
| <tr> | |
| <td valign="top" align="right"> </td><td valign="top"> | |
| <br> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td valign="top" align="right"> </td><td valign="top"> | |
| <p> | |
| 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 <b>WTP 0.7 drivers</b>. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td valign="top" align="right"> </td><td valign="top"> | |
| <p> | |
| This tutorial shows how to create a Web serivce client to a | |
| deployed Web service created in | |
| <a href="../TopDownWebService/TopDownWebService.html"> | |
| Creating a top down Web service | |
| </a>. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td valign="top" align="right"> </td><td valign="top"> | |
| <br> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">Create a Web service Client</font></b></td> | |
| </tr> | |
| <tr> | |
| <td valign="top" align="right"> </td><td valign="top"> | |
| <ol> | |
| <li> | |
| Select the <b>AreaServiceSOAP.wsdl</b> file in the | |
| <b>AreaProject\area\WebContent\wsdl</b> folder created in | |
| <a href="../TopDownWebService/TopDownWebService.html"> | |
| Creating a top down Web service | |
| </a> tutorial. | |
| <br> | |
| <b>Do not</b> select the AreaService.wsdl | |
| file in AreaProject\area\WebContent. | |
| </li> | |
| <li> | |
| Open <b>File -> New -> Other... -> Web Services -> Web | |
| Service Client</b>. | |
| </li> | |
| <li>Click <b>Next</b>.</li> | |
| <li> | |
| Select | |
| <b>Test the Web service</b> | |
| and | |
| <b>Overwrite files without warning</b>. | |
| </li> | |
| <br> | |
| <img border="0" SRC="images/client1.JPG"> | |
| <br> | |
| <li>Click <b>Next</b>.</li> | |
| <br> | |
| <img border="0" SRC="images/client2.JPG"> | |
| <br> | |
| <li> | |
| Click <b>Next</b> and accept the defaults on the <b>Web Service Selection Page</b>. | |
| </li> | |
| <li> | |
| On the <b>Client Environment Configuration</b> page, type in | |
| <b>AreaProjectClient</b> | |
| as the name of the Client project and <b>areaClient</b> as the Client module. | |
| <br> | |
| If you want to choose a server different from the one | |
| defaulted by the wizard, click the | |
| <b>Edit</b> | |
| button to: | |
| <a href="../SelectServer/SelectServer.html">select a server</a>. | |
| </li> | |
| <br> | |
| <img border="0" SRC="images/client3.JPG"> | |
| <li> | |
| Click <b>Finish</b>. | |
| </li> | |
| <li> | |
| 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. | |
| </li> | |
| <li> | |
| Under | |
| <b>Methods</b>, click on | |
| <b>calculateRectArea</b> | |
| . | |
| </li> | |
| <li> | |
| Under | |
| <b>Inputs</b>, enter | |
| <tt>2.0</tt> | |
| and | |
| <tt>5.0</tt> | |
| into the height and width entry field. | |
| </li> | |
| <li> | |
| Click on | |
| <b>Invoke</b>. In the <b>Result</b> view, you should get a response of | |
| <b>10.0</b>. | |
| </li> | |
| <br> | |
| <img border="0" SRC="images/client4.JPG"> | |
| </ol> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </body> | |
| </html> |