| <!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> |
| Top down Java Web Service - Axis </h1> |
| |
| <p>Run wsgen.xml as an Ant build file inside the Eclipse workbench to |
| generate a Java web service top down from an input WSDL file.</p> |
| |
| <h2>Instructions:</h2> |
| |
| <ol> |
| <li>Start WTP.</li> |
| <li>Create a dynamic web project called <b>testProject</b> with an Apache Tomcat target server. |
| <b>File > New > Web > Dynamic Web Project </b>. </li> |
| <li>Import the <b><a href="AreaService.wsdl"> AreaService.wsdl</a></li></b> file into the WebContent folder of the testProject. |
| |
| <li>Go to the AntTest folder created in <a href="antwizard.html">Test 1</a>. |
| Open and edit the <b>wsgen.xml</b> Ant script so that <code>property file="axisservice.properties"</code>.</li> |
| <li>Save the <b>wsgen.xml</b> file.</li> |
| <li>Edit the <b>axisservice.properties</b> file. Check that <code>scenarioType=service</code> |
| and <code>InitialSelection=/testProject/WebContent/AreaService.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>Service.RuntimeId=org.eclipse.jst.ws.axis.creation.axisWebServiceRT</code> |
| and <code>Service.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>axisservice.properties</b> file. </li> |
| <li>Right click on the <b>wsgen.xml</b> file and select <b>Run As > Ant Build...</b></li> |
| <li>In the Ant dialog click on the <b>JRE</b> tab and choose the radio button <b>Run in the same |
| JRE as the workspace</b>. Click <b>Apply</b> and then <b>Run</b>. </li> |
| <li>Watch the console for output. Look for a BUILD SUCCESSFUL message with no exceptions.</li> |
| <li>Check to see that <b>AreaServiceSOAP.wsdl</b> was created in the project's <b>WebContent\wsdl</b> folder |
| as well as the Java code in the <b>src</b> folder for the <b>testProject</b> web project in the <b>org.tempuri.AreaService</b> package - |
| |
| <ul> |
| <b> |
| <li>AreaService_PortType.java</li> |
| <li>AreaService_Service.java</li> |
| <li>AreaService_ServiceLocator.java</li> |
| <li>AreaServiceSOAPImpl.java</li> |
| <li>AreaServiceSOAPSkeleton.java</li> |
| <li>AreaServiceSOAPStub.java</li> |
| <li>Dimensions.java</li> |
| </b> |
| </ul> |
| Also verify that the deployment descriptors were generated in the <b>WebContent\WEB-INF\org\tempuri\AreaService</b> folder: |
| <ul> |
| <b> |
| <li>undeploy.wsdd</li> |
| <li>deploy.wsdd</li> |
| </b> |
| </ul> |
| </li> |
| </ol> |
| </body> |
| </html> |
| |