blob: d498156b7d9a251d79c9baa6b543074f57387b6b [file] [log] [blame]
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
</head>
<body>
<h1>
Generate Java Client - Axis</h1>
<p>Run wsant.bat which invokes the wsgen.xml Ant file to generates a Java proxy from input .wsdl.</p>
<h2>Instructions:</h2>
<ol>
<li>Start WTP. Ensure that there is a <b>Converter.wsdl</b> in the <b>WebContent\wsdl</b>
folder as output from the <a href="antbu.html"> previous task</a>.</li>
<li>Check the <b>Servers</b> view and make sure that the server is stopped. This test case will ensure that the Ant task is
able to start the server if it is not already running. </li>
<li>Exit the workbench. </li>
<li>Navigate to the plugins directory of the wtp installation. Change to the
<b>org.eclipse.wst.command.env</b> plugin and go to the
<b>ant</b> folder. For example: <b>D:\wtp1110\eclipse\plugins\org.eclipse.wst.command.env_1.0.0\ant</b></li>
<li> The following files should exist there:
<ul>
<b>
<li>wsant.bat</li>
<li>wsgen.xml</li>
<li>axisservice.properties</li>
<li>axisclient.properties</li>
</b>
</ul>
</li>
<li>Open the <b>wsgen.xml</b> Ant file and edit so that <code>property file="axisclient.properties"</code>.</li>
<li>Save the <b>wsgen.xml </b>file.</li>
<li>Edit the <b>axisclient.properties</b> file. Check that <code>scenarioType=client</code> and
<code>InitialSelection=/testProject/WebContent/wsdl/Converter.wsdl</code>.
If your default server
and runtime are set in the preferences as Tomcat and Axis you can safely remove all other
properties from the file. Otherwise, set: <code>Client.RuntimeId=org.eclipse.jst.ws.axis.creation.axisWebServiceRT</code>
and <code>Client.ServerId=org.eclipse.jst.server.tomcat.50</code> and remove the remaining properties. Defaults
will be used for unset properties.</li>
<li>Save the <b>axisclient.properties file</b>. </li>
<li>Edit the <b>wsant.bat</b> file. Set the local environment variables to reflect your system configuration
inluding the location of your JRE, the Eclipse <b>startup.jar</b> and the workspace containing the
web project and <b>Converter.wsdl</b> file. You may have already done this in the <a href="antbu.html"> previous task</a></li>
<li>Run <b>wsant.bat</b></li>
<li>Look at the <b>wsgen.txt</b> file for output. Look for a <code>BUILD SUCCESSFUL</code>
message and no exceptions. </li>
<li>At the command line or back in wtp navigate to the workspace to find the client <b>ConverterProxy.java</b> code</li>
<li>Test the web service client using the Web Services Explorer.</li>
</ol>
</body>
</html>