Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 126259 | Differences between
and this patch

Collapse All | Expand All

(-)community/tutorials/WebServiceAntTask/WebServiceAntTask.xml (-7 / +17 lines)
Lines 23-35 Link Here
23
		</p>
23
		</p>
24
		<p>
24
		<p>
25
			This tutorial shows how to run Web services scenarios (top down web service, bottom up web service
25
			This tutorial shows how to run Web services scenarios (top down web service, bottom up web service
26
			and client generation)  without the web service wizard by way of an Ant task.  For M9, the
26
			and client generation) without the web service wizard by way of an Ant task. 
27
			tasks are only supported on Windows but will be available on Linux in M10.
28
		</p>
27
		</p>
29
		<p>
28
		<p>
30
			The Ant task can be invoked in one of two ways:
29
			The Ant task can be invoked in one of two ways:
31
			<ol>
30
			<ol>
32
			<li>From the command line on Windows from the <b>wsant.bat</b> file.  This method runs
31
			<li>From the command line on Windows from the <b>wsant.bat</b> file or from the command line on Linux
32
			using the <b>wsant.sh</b> script.  This method runs
33
			Eclipse headless.  Customization of the batch file to reflect your environment is necessary.</li>
33
			Eclipse headless.  Customization of the batch file to reflect your environment is necessary.</li>
34
			<li>From within Eclipse, the Ant file <b>wsgen.xml</b> can be invoked directly as an
34
			<li>From within Eclipse, the Ant file <b>wsgen.xml</b> can be invoked directly as an
35
			Ant build file.</li>
35
			Ant build file.</li>
Lines 110-118 Link Here
110
	file settings from the <b>wsgen.xml</b> file</li>
110
	file settings from the <b>wsgen.xml</b> file</li>
111
	<li>Save the <b>wsgen.xml</b> file.</li>
111
	<li>Save the <b>wsgen.xml</b> file.</li>
112
	<li>Edit the <b>axisservice.properties</b> file.  Check that <code>scenarioType=service</code>
112
	<li>Edit the <b>axisservice.properties</b> file.  Check that <code>scenarioType=service</code>
113
	 and set InitialSelection to a workspace relative path that points to the AreaService.wsdl: <code>InitialSelection=/testProject/WebContent/AreaService.wsdl</code>. You can delete all
113
	 and set InitialSelection to a workspace relative path that points to the 
114
	 of the other properties in the properties file.  The Ant task will default the properties based on the dynamic
114
	 AreaService.wsdl: <code>InitialSelection=/testProject/WebContent/AreaService.wsdl</code>. 
115
	 project settings and the scenarioType setting.</li>
115
	 <p><b>Note:</b>At this point, delete all
116
	 of the other properties in the properties file.  Only scenarioType and InitialSelection properties are required.  
117
	 The remaining properties in the properties file are examples and should be deleted if not explicitly 
118
	 set by the user.  The Ant task will default the remaining properties based on the dynamic
119
	 project settings and the scenarioType setting.</p></li>
116
	 <li>Save the <b>axisservice.properties</b> file. </li>
120
	 <li>Save the <b>axisservice.properties</b> file. </li>
117
	<li>Right click on the <b>wsgen.xml</b> file and select <b>Run As &gt; Ant Build...</b></li>
121
	<li>Right click on the <b>wsgen.xml</b> file and select <b>Run As &gt; Ant Build...</b></li>
118
    <li>In the Ant dialog, click on the <b>JRE</b> tab and choose the radio button <b>Run in the same 
122
    <li>In the Ant dialog, click on the <b>JRE</b> tab and choose the radio button <b>Run in the same 
Lines 182-188 Link Here
182
     <li>Save the <b>wsgen.xml </b></li>
186
     <li>Save the <b>wsgen.xml </b></li>
183
     <li>Edit the <b>axisclient.properties</b> file.  Check that <code>scenarioType=client</code> and set the InitialSelection
187
     <li>Edit the <b>axisclient.properties</b> file.  Check that <code>scenarioType=client</code> and set the InitialSelection
184
     property to a workspace relative path pointing to the AreaServiceSOAP.wsdl that was generated in the previous section of this tutorial.
188
     property to a workspace relative path pointing to the AreaServiceSOAP.wsdl that was generated in the previous section of this tutorial.
185
     <code>InitialSelection=/testProject/WebContent/wsdl/AreaServiceSOAP.wsdl</code>.</li>
189
     <code>InitialSelection=/testProject/WebContent/wsdl/AreaServiceSOAP.wsdl</code>.
190
     <p><b>Note:</b>At this point, delete all
191
	 of the other properties in the properties file.  Only scenarioType and InitialSelection properties are required.  
192
	 The remaining properties in the properties file are examples and should be deleted if not explicitly 
193
	 set by the user.  The Ant task will default the remaining properties based on the dynamic
194
	 project settings and the scenarioType setting.</p>
195
     </li>
186
	 <li>Save the <b>axisclient.properties file</b>.  </li>
196
	 <li>Save the <b>axisclient.properties file</b>.  </li>
187
	 <li>Next, edit the <b>wsant.bat</b> file.  Set the local environment variables to reflect your system configuration 
197
	 <li>Next, edit the <b>wsant.bat</b> file.  Set the local environment variables to reflect your system configuration 
188
	 inluding the location of your JRE, the Eclipse <b>startup.jar</b> and the workspace containing the 
198
	 inluding the location of your JRE, the Eclipse <b>startup.jar</b> and the workspace containing the 

Return to bug 126259