Author: steveh
Date: Tue Feb  1 15:15:05 2005
New Revision: 149458

URL: http://svn.apache.org/viewcvs?view=rev&rev=149458
Log:
Update to the Web Service tutorial.
Minor edits to the control tutorial.

Modified:
    
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/controls/tutorial_controls.xml
    
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/wsm/tutorial_wsm.xml

Modified: 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/controls/tutorial_controls.xml
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/controls/tutorial_controls.xml?view=diff&r1=149457&r2=149458
==============================================================================
--- 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/controls/tutorial_controls.xml
 (original)
+++ 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/controls/tutorial_controls.xml
 Tue Feb  1 15:15:05 2005
@@ -80,8 +80,8 @@
        <p>In this step you will assemble the runtime resources for your 
Control. 
                Most of these files are included in the WEB-INF directory. 
                It includes JAR files with the JSP tag handler classes, the 
Controls runtime JAR, etc.</p>
-       <p>At the command prompt, enter the following ant command.  In place of 
<code>&lt;BeehiveRoot>
-               substitute the path to the top-level directory of your Beehive 
installation</code>.</p>
+       <p>At the command prompt, enter the following ant command.  In place of 
<code>&lt;BeehiveRoot></code>
+               substitute the path to the top-level directory of your Beehive 
installation.</p>
        <source>ant 
   -f &lt;BeehiveRoot>\ant\webappRuntimeCore.xml
   -Dwebapp.dir=C:\beehive_projects\control_tutorial 
@@ -166,13 +166,15 @@
             <section>
                 <title>To Compile and Deploy the Control</title>
                 <p>You are now ready to compile the control.</p>
-                <p>At the command prompt, enter the following Ant command.  In 
place of <code>&lt;BeehiveRoot>
-               substitute the path to the top-level directory of your Beehive 
installation</code>.</p>
+                <p>At the command prompt, enter the following Ant command.  In 
place of <code>&lt;BeehiveRoot></code>
+               substitute the path to the top-level directory of your Beehive 
installation.</p>
                 <source>ant 
   -f &lt;BeehiveRoot>\ant\buildWebapp.xml 
   -Dwebapp.dir=C:\beehive_projects\control_tutorial 
   build</source>
-       <p>To deploy the web application (with the control imbedded in it), 
click the following link.</p>  
+       <p>To deploy the web application (with the control imbedded in it), 
click the following link. We recommend that you open the 
+               link in a new browser window.  Each time you want to redeploy 
the application,
+               simply refresh the browser.</p>  
     <p class="quote">
          <a class="fork" 
href="http://localhost:8080/manager/deploy?path=/control_tutorial&amp;war=file:C:/beehive_projects/control_tutorial&amp;update=true";>http://localhost:8080/manager/deploy?path=/control_tutorial&amp;war=file:C:/beehive_projects/control_tutorial&amp;update=true</a>
        </p>

Modified: 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/wsm/tutorial_wsm.xml
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/wsm/tutorial_wsm.xml?view=diff&r1=149457&r2=149458
==============================================================================
--- 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/wsm/tutorial_wsm.xml
 (original)
+++ 
incubator/beehive/trunk/docs/forrest/src/documentation/content/xdocs/wsm/tutorial_wsm.xml
 Tue Feb  1 15:15:05 2005
@@ -19,34 +19,30 @@
         </section>
         <section id="step1">
             <title>Step 1: Begin the Web Service Tutorial</title>
-<section>
-                <title>To Set up the Development Environment</title>
-                <p>Follow the setup directions at <a class="fork"  
href="../setup.html">Beehive Installation and Setup</a></p>
-                <p>After completing the instructions, leave the command shell 
open to use throughout this tutorial.</p>
-            </section>
             <section>
-                <title>Add a Manager Role to Tomcat</title>
-                               <p>Adding the manager role to Tomcat server 
allows you to run 
-                                       deploy related targets in the Ant file 
-                                       <code>runTomcat.xml</code>. This file 
is provided as a 
-                                       convenience for managing the Tomcat 
server.</p>
-<p>Edit the file <code>CATALINA_HOME/conf/tomcat-users.xml</code> so it 
appears as follows:</p>
-                <source><![CDATA[<?xml version='1.0' encoding='utf-8'?>
-<tomcat-users>
-  <role rolename="tomcat"/>
-  <role rolename="role1"/>
-  <role rolename="manager"/>
-  <user username="tomcat" password="tomcat" roles="tomcat"/>
-  <user username="role1" password="tomcat" roles="role1"/>
-  <user username="both" password="tomcat" roles="tomcat,role1"/>
-  <user username="manager" password="manager" roles="manager"/>
-</tomcat-users>]]></source>
+                <title>To Set up the Development Environment</title>
+                <p>Complete all of the necessary and optional steps in the 
following topic: 
+                                       <a class="fork" 
href="../setup.html">Beehive Installation and Setup</a></p>
+                               
+                <p>After completing the instructions, leave the command shell 
open to use 
+                                       throughout this tutorial.</p>
+                               <p>Before proceding, confirm that you have the 
following variables set in your shell:</p>
+                                       <ul>
+                                               <li><code>ANT_HOME</code></li>
+                                               <li><code>JAVA_HOME</code></li>
+                                               
<li><code>TOMCAT_HOME</code></li>
+                                       </ul>
+                                       <p>Also ensure that the following 
elements are on your <code>PATH</code>:</p>
+                                       <ul>
+                                               
<li><code>ANT_HOME/bin</code></li>
+                                               
<li><code>JAVA_HOME/bin</code></li>
+                                       </ul>
             </section>
             <section>
                 <title>To Start the Tomcat Server</title>
                 <p>At the command prompt, enter:</p>
-                <source>%CATALINA_HOME%\bin\startup.bat</source>
-            </section>
+                <source>%TOMCAT_HOME%\bin\startup.bat</source>
+            </section>            
         </section>
         <section id="step_2">
             <title>Step 2: Install the Web Service Template</title>
@@ -57,8 +53,9 @@
             <section>
                 <title>Make a Project Folder Using the Web Service Application 
Template</title>
                 <p>On your C: drive, create a directory called 
<code>beehive_projects</code>.</p>
-                <p>Copy the folder 
<strong><code>BEEHIVE_HOME/samples/wsm-blank</code></strong>
-                                       into the folder 
<strong><code>C:/beehive_projects</code></strong>.</p>
+                <p>Copy the folder 
<code>&lt;BeehiveRoot>/samples/</code><strong><code>wsm-blank</code></strong>
+                                       into 
<code>C:/</code><strong><code>beehive_projects</code></strong>. 
(<code>&lt;BeehiveRoot></code> refers to the 
+                                       top level folder of your Beehive 
installation.)</p>
                                <p>Rename the folder 
<code>C:/beehive_projects/</code><strong><code>wsm-blank</code></strong>
                                        as 
<code>C:/beehive_projects/</code><strong><code>ws_tutorial</code></strong></p>
                 <p>Before proceeding, confirm that the following directory 
structure exists:</p>
@@ -70,59 +67,93 @@
       index.html</source>
             </section>
             <section>
-                <title>Copy the Runtime JARs into the Project Folder</title>
-                <p>To copy the runtime JARs into your project, run the 
following Ant command:</p>
-<source>ant 
+                <title>To Copy Runtime JARs into the Project Folder</title>
+       <p>At the command prompt, enter the following ant command.  In place of 
<code>&lt;BeehiveRoot>
+               substitute the path to the top-level directory of your Beehive 
installation</code>.</p>                         
+       <source>ant 
+  -f &lt;BeehiveRoot>\ant\webappRuntimeCore.xml
   -Dwebapp.dir=C:\beehive_projects\ws_tutorial 
-  -f ant\buildWebapp.xml 
-  deploy.wsm.webapp.runtime</source>
-  <p>This will copy the JAR files from <code>BEEHIVE_HOME/lib/wsm</code> into 
<code>C:/beehive_projects/ws_tutorial/WEB-INF/lib</code>.</p>
+  deploy.beehive.webapp.runtime</source>
             </section>
             <section>
                 <title>Examine the Blank.jws Web Service</title>
-                <p>You are now ready to compile and run your web service.</p>
-                <p>Before proceeding, lets examine the web service code. In a 
text editor of your choice, open the file 
<code>C:/beehive_projects/ws_tutorial/WEB-INF/src/template/Blank.jws</code>.  
The file extension 'JWS' stands for Java Web Service.  Beehive web services do 
not require the JWS extension, but it is recommended that you use JWS, 
especially when working in conjunction Beehive Controls and Page Flows.</p>
+                <p>You are now ready to compile and run the template web 
service already included
+                                       in the project folder.</p>
+                <p>Before proceeding, lets examine the web service code. In a 
text editor of your choice, 
+                                       open the file 
<code>C:/beehive_projects/ws_tutorial/WEB-INF/src/template/Blank.jws</code>.  
+                                       The file extension 'JWS' stands for 
Java Web Service.  It is important to note that
+                                       the file <code>Blank.jws</code> is a 
plain old JAVA source file--nothing more, nothing less.  
+                                       If your were to
+                                       rename 
<code>Blank.</code><strong><em><code>jws</code></em></strong> to 
+                                       
<code>Blank.</code><strong><em><code>java</code></em></strong>, 
+                                       this tutorial, and any subsequent
+                                       development beyond this tutorial, would 
proceed normally.  We use the 'JWS' file 
+                                       extension purely as a mnemonic device 
to help the developer remember what this file is:
+                                       a <strong>J</strong>ava 
<strong>W</strong>eb <strong>S</strong>ervice file.</p>
+                                       <p>The code looks like this:</p>
                 <source><![CDATA[package template;
 ...
 import javax.jws.WebMethod;
+import javax.jws.WebParam;
 import javax.jws.WebService;
 
+import javax.xml.rpc.holders.StringHolder;
+
 @WebService
 public class Blank
 {
     @WebMethod
-    public String sayHelloWorld()
-    {        
+    public String sayHelloWorld(@WebParam(name = "i", mode = 
WebParam.Mode.OUT) StringHolder i)
+    {
+        i.value = "Beehive";
         return "Hello world!";
     }
 }]]></source>
-<p>The web service looks like a familiar Java class, although these two 
elements may be new to you:</p>
+<p>If you are familiar with Java code, everything probably looks familiar to 
you, 
+       although these two elements may be new:</p>
 <source>
     @WebService
     @WebMethod
+    @WebParam
 </source>
-<p><code>@WebService</code> and <code>@WebMethod</code> are "metadata 
annotations", a.k.a. "annotations".  Annotations allow you to set properties on 
Java classes and methods.  They can be used to generate compile-time artifacts 
such as configuration files or Java classes (this is how many Beehive Control 
annotations work) or to determine some runtime behavior (this is how Beehive 
Web Service annotations work).  <code>@WebService</code> annotates (or 
"decorates") the class Blank: this tells the runtime that Blank is a web 
service that listens for SOAP messages and responds in kind.  
<code>@WebMethod</code> annotates the method sayHelloWorld(): this tells the 
runtime that the method can be invoked over the web.</p>
+<p><code>@WebService</code>, <code>@WebMethod</code>, and 
<code>@WebParam</code> are "metadata annotations", a.k.a. "annotations".  
+       Annotations allow you to set properties on Java classes and methods.  
They can be used to generate 
+       compile-time artifacts such as configuration files or Java classes 
(this is how many Beehive Control 
+       annotations work) or to determine some runtime behavior (this is how 
Beehive Web Service annotations 
+       work).</p>  
+               <p><code>@WebService</code> annotates (or "decorates") the 
class Blank: this tells the runtime 
+       that Blank is a web service that listens for SOAP messages and responds 
in kind.</p>  
+               <p><code>@WebMethod</code> annotates the method 
sayHelloWorld(): this tells the runtime that the 
+               method can be invoked over the web.</p>
+               <p><code>@WebParam</code> tells the runtime that the 
<code>sayHelloWorld()</code> method
+                       accepts a parameter.  (Note that the parameter is only 
an OUT parameter.  We will 
+                       add an IN parameter, and explain the difference between 
OUT and IN parameters, in a future step.)</p>
             </section>
             <section>
                 <title>Compile and Deploy the Web Service</title>
-                <p>In this step you will compile the web service and deploy it 
to Tomcat, all in one step.</p>
-                <p>Run the following Ant command:</p>
-                <source> ant 
-  -f %BEEHIVE_HOME%\ant\buildWebapp.xml 
-  -Dwebapp.dir=C:\beehive_projects\ws_tutorial 
-  -Dcontext.path=ws_tutorial 
-  build.webapp 
-  deploy</source>
-  <p>If the application is already deployed on Tomcat (which may happen if 
this is your second time executing the tutorial), use the redeploy command 
below:</p>
-                <source> ant 
-  -f %BEEHIVE_HOME%\ant\buildWebapp.xml 
+                <p>In this step you will compile the web service and deploy it 
to Tomcat.</p>
+                 <p>At the command prompt, enter the following Ant command.  
In place of <code>&lt;BeehiveRoot></code>
+               substitute the path to the top-level directory of your Beehive 
installation.</p>
+                <source>ant 
+  -f &lt;BeehiveRoot>\ant\buildWebapp.xml 
   -Dwebapp.dir=C:\beehive_projects\ws_tutorial 
-  -Dcontext.path=ws_tutorial 
-  build.webapp 
-  redeploy</source>
+  build</source>
+       <p>To deploy the web service, click the following link. 
+               </p>
+               <p>We recommend that you open the 
+               link in a new browser window.  Each time you want to redeploy 
the application,
+               simply refresh the browser.  
+               (Also, make sure that your Tomcat server is running, or the 
following step will fail.)</p>  
+    <p class="quote">
+         <a class="fork" 
href="http://localhost:8080/manager/deploy?path=/ws_tutorial&amp;war=file:C:/beehive_projects/ws_tutorial&amp;update=true";>http://localhost:8080/manager/deploy?path=/ws_tutorial&amp;war=file:C:/beehive_projects/ws_tutorial&amp;update=true</a>
+       </p>
+       <p>If you are prompted for a username/password, enter: 
<strong>manager/manager</strong></p>
+       <p>(For an explanation of this method of deploying an application to 
Tomcat, 
+               see the Tomcat 5 documentation: 
+               <a class="fork" 
href="http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html#Deploy%20A%20New%20Application%20from%20a%20Local%20Path";>Deploy
 A New Application from a Local Path</a>)</p>
             </section>
             <section>
-                <title>To Run the Web Service Provided in the Template</title>
+                <title>To Run the Web Service</title>
                 <p>Visit the index.jsp page: <a class="fork"  
href="http://localhost:8080/ws_tutorial/index.html";>http://localhost:8080/ws_tutorial/index.html</a>.</p>
                 <p>Click the "Validate" link for an evaluation of the 
resources available to your web service.  Note that you will need to download 
additional resources to take full advantage of Beehive web services.  For 
example, for Axis to work properly with SOAP attachments, additional, external 
jars (activation.jar and mailapi.jar) are required.  You will download those 
resources in later steps in the tutorial.</p>
                 <p>Click the "WSDL" link to see the web service's WSDL. </p>
@@ -131,6 +162,8 @@
         </section>
         <section id="step_3">
             <title>Step 3: Add a Parameterized Method to the Web 
Service</title>
+                       <p>In this step you will add a new method to the web 
service: a method that 
+                                       accepts in 'IN' parameter.</p>
             <section>
                 <title>Edit the JWS File</title>
                 <p/>
@@ -138,99 +171,113 @@
                 <source>package template;
 ...
 import javax.jws.WebMethod;
+import javax.jws.WebParam;
 import javax.jws.WebService;
-<strong>import javax.jws.WebParam;</strong>
+
+import javax.xml.rpc.holders.StringHolder;
 
 @WebService
 public class Blank
 {
     @WebMethod
-    public String sayHelloWorld()
-    {        
+    public String sayHelloWorld(@WebParam(name = "i", mode = 
WebParam.Mode.OUT) StringHolder i)
+    {
+        i.value = "Beehive";
         return "Hello world!";
     }
     
     <strong>@WebMethod
-    public String sayHello( @WebParam String greetee ) 
+    public String sayHelloWorldInParam( @WebParam String greetee ) 
     {
         if( greetee.equals("") )
             { greetee = "World"; }
     
         return "Hello, " + greetee + "!";
-    }</strong>
+    }</strong> 
 }</source>
 <p>The <code>@WebParam</code> you just added lets you pass a String parameter 
to the method over the web.</p>
             </section>
             <section>
                 <title>Compile and Redeploy the Web Service</title>
-                <p>At the command prompt, enter the following Ant command:</p>
-                <source>  ant 
-    -f %BEEHIVE_HOME%\ant\buildWebapp.xml 
-    -Dwebapp.dir=C:\beehive_projects\ws_tutorial 
-    -Dcontext.path=ws_tutorial 
-    build.webapp 
-    redeploy</source>                
-            <p>This Ant command compiles the app, undeploys it, and then 
deploys it.  Calling <code>ant ... redeploy</code> is equivalent to calling 
<code>ant ... undeploy deploy</code>.</p>
+                 <p>At the command prompt, enter the following Ant command.  
In place of <code>&lt;BeehiveRoot></code>
+               substitute the path to the top-level directory of your Beehive 
installation.</p>
+                <source>ant 
+  -f &lt;BeehiveRoot>\ant\buildWebapp.xml 
+  -Dwebapp.dir=C:\beehive_projects\ws_tutorial 
+  build</source>
+       <p>To redeploy the web service, click the following link. 
+               (Or, if you have the link below
+               open in a dedicated browser window, refresh that browser 
window.)</p>  
+    <p class="quote">
+         <a class="fork" 
href="http://localhost:8080/manager/deploy?path=/ws_tutorial&amp;war=file:C:/beehive_projects/ws_tutorial&amp;update=true";>http://localhost:8080/manager/deploy?path=/ws_tutorial&amp;war=file:C:/beehive_projects/ws_tutorial&amp;update=true</a>
+       </p>
             </section>
             <section>
                 <title>Test the Parameterized Method</title>
                 <p>Enter the following URL in the address bar of your browser. 
</p>
-                <p><a class="fork"  
href="http://localhost:8080/ws_tutorial/template/Blank.jws?method=sayHello&amp;greetee=Moon";>http://localhost:8080/ws_tutorial/template/Blank.jws?method=sayHello&amp;greetee=Moon</a></p>
+                <p><a class="fork"  
href="http://localhost:8080/ws_tutorial/template/Blank.jws?method=sayHelloWorldInParam&amp;greetee=Moon";>http://localhost:8080/ws_tutorial/template/Blank.jws?method=sayHelloWorldInParam&amp;greetee=Moon</a></p>
                 <p>The following SOAP response appears in the browser:</p>
                 <source><![CDATA[<soapenv:Envelope>
   <soapenv:Body>
-    <sayHelloResponse>
+    <sayHelloWorldInParamResponse>
       <ns1:result>Hello, Moon!</ns1:result>
-    </sayHelloResponse>
+    </sayHelloWorldInParamResponse>
   </soapenv:Body>
 </soapenv:Envelope>
 ]]></source>                
             </section>
         </section>
-        <section>
+        <section id="step_4">
             <title>Step 4: Add a Non-Web Invokable Method</title>
                 <p>Edit the file 
<code>C:/beehive_projects/ws_tutorial/WEB-INF/src/template/Blank.jws</code> so 
it appears as follows. Code to add appears in bold type.</p>
                 <source>package template;
 ...
 import javax.jws.WebMethod;
-import javax.jws.WebService;
 import javax.jws.WebParam;
+import javax.jws.WebService;
+
+import javax.xml.rpc.holders.StringHolder;
 
 @WebService
 public class Blank
 {
     @WebMethod
-    public String sayHelloWorld()
-    {        
+    public String sayHelloWorld(@WebParam(name = "i", mode = 
WebParam.Mode.OUT) StringHolder i)
+    {
+        i.value = "Beehive";
         return "Hello world!";
     }
 
+    
     @WebMethod
-    public String sayHello( @WebParam String greetee ) 
+    public String sayHelloWorldInParam( @WebParam String greetee ) 
     {
-          if( greetee.equals("") )
+        if( greetee.equals("") )
             { greetee = "World"; }
-
-          return "Hello, " + greetee + "!";
-      }
+    
+        return "Hello, " + greetee + "!";
+    }  
 
     <strong>public String sayNothingOverTheWeb()
     {
         return "Not for for Web consumption!";
     }</strong>
-}
-</source>
+}</source>
             <p>Note that the method added, sayNothingOverTheWeb(), does not 
have the annotation @WebMethod, indicating that it cannot be invoked by SOAP 
messages over the web.</p>
             <section>
                 <title>Compile and Redeploy the Web Service</title>
-                <p>At the command prompt, enter the following Ant command:</p>
-                <source>  ant 
-    -f %BEEHIVE_HOME%\ant\buildWebapp.xml 
-    -Dwebapp.dir=C:\beehive_projects\ws_tutorial 
-    -Dcontext.path=ws_tutorial 
-    build.webapp 
-    redeploy</source>                
-            <p>This Ant command compiles the app, undeploys it, and then 
deploys it.  Calling <code>ant ... redeploy</code> is equivalent to calling 
<code>ant ... undeploy deploy</code>.</p>
+                 <p>At the command prompt, enter the following Ant command.  
In place of <code>&lt;BeehiveRoot></code>
+               substitute the path to the top-level directory of your Beehive 
installation.</p>
+                <source>ant 
+  -f &lt;BeehiveRoot>\ant\buildWebapp.xml 
+  -Dwebapp.dir=C:\beehive_projects\ws_tutorial 
+  build</source>
+       <p>To redeploy the web service, click the following link. 
+               (Or, if you have the link below
+               open in a dedicated browser window, refresh that browser 
window.)</p>  
+    <p class="quote">
+         <a class="fork" 
href="http://localhost:8080/manager/deploy?path=/ws_tutorial&amp;war=file:C:/beehive_projects/ws_tutorial&amp;update=true";>http://localhost:8080/manager/deploy?path=/ws_tutorial&amp;war=file:C:/beehive_projects/ws_tutorial&amp;update=true</a>
+       </p>
             </section>
             <section>
                 <title>To Test the Non-Web Invokable Method</title>
@@ -249,6 +296,7 @@
   </soapenv:Body>
 </soapenv:Envelope> ]]></source>
             </section>
+        </section>
             <section>
                 <title>Step 5: Change the SOAP Style</title>
                 <p>The default SOAP style for JSR-181 web services is 
DOC-literal.  In this step you will change the style to RPC-encoded.</p>
@@ -256,23 +304,27 @@
                 <source>package template;
 ...
 import javax.jws.WebMethod;
-import javax.jws.WebService;
 import javax.jws.WebParam;
+import javax.jws.WebService;
 <strong>import javax.jws.soap.SOAPBinding;</strong>
 
+import javax.xml.rpc.holders.StringHolder;
+
 @WebService
 <strong>@SOAPBinding(style = SOAPBinding.Style.RPC, use = 
SOAPBinding.Use.ENCODED)</strong>
 public class Blank
 {
     @WebMethod
-    public String sayHelloWorld()
-    {        
+    public String sayHelloWorld(@WebParam(name = "i", mode = 
WebParam.Mode.OUT) StringHolder i)
+    {
+        i.value = "Beehive";
         return "Hello world!";
     }
 
+    
     @WebMethod
-    public String sayHello( @WebParam String greetee ) 
-    {  
+    public String sayHelloWorldInParam( @WebParam String greetee ) 
+    {
         if( greetee.equals("") )
             { greetee = "World"; }
     
@@ -282,34 +334,40 @@
     public String sayNothingOverTheWeb()
     {
         return "Not for for Web consumption!";
-    }
-}</source>
+    }  
+}
+</source>
             <section>
                 <title>Compile and Redeploy the Web Service</title>
-                <p>At the command prompt, enter the following Ant command:</p>
-                <source>  ant 
-    -f %BEEHIVE_HOME%\ant\buildWebapp.xml 
-    -Dwebapp.dir=C:\beehive_projects\ws_tutorial 
-    -Dcontext.path=ws_tutorial 
-    build.webapp 
-    redeploy</source>                
+                 <p>At the command prompt, enter the following Ant command.  
In place of <code>&lt;BeehiveRoot></code>
+               substitute the path to the top-level directory of your Beehive 
installation.</p>
+                <source>ant 
+  -f &lt;BeehiveRoot>\ant\buildWebapp.xml 
+  -Dwebapp.dir=C:\beehive_projects\ws_tutorial 
+  build</source>
+       <p>To redeploy the web service, click the following link. 
+               (Or, if you have the link below
+               open in a dedicated browser window, refresh that browser 
window.)</p>
+    <p class="quote">
+         <a class="fork" 
href="http://localhost:8080/manager/deploy?path=/ws_tutorial&amp;war=file:C:/beehive_projects/ws_tutorial&amp;update=true";>http://localhost:8080/manager/deploy?path=/ws_tutorial&amp;war=file:C:/beehive_projects/ws_tutorial&amp;update=true</a>
+       </p>                
             </section>
             <section>
-                <title>To Test the Parameterized Method (with SOAP-encoded 
style)</title>
+                <title>To Test the SOAP-encoded Style</title>
                 <p>Enter the following URL in the address bar of your browser. 
</p>
-                <p><a class="fork"  
href="http://localhost:8080/ws_tutorial/template/Blank.jws?method=sayHello&amp;greetee=Moon";>http://localhost:8080/ws_tutorial/template/Blank.jws?method=sayHello&amp;greetee=Moon</a></p>
+                <p><a class="fork"  
href="http://localhost:8080/ws_tutorial/template/Blank.jws?method=sayHelloWorldInParam&amp;greetee=Moon";>http://localhost:8080/ws_tutorial/template/Blank.jws?method=sayHelloWorldInParam&amp;greetee=Moon</a></p>
                 <p>The following SOAP response appears in the browser. Compare 
the RPC style below with the DOC style above.</p>
                 <source><![CDATA[<soapenv:Envelope>
   <soapenv:Body>
-    <sayHelloResponse 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
+    <sayHelloWorldInParamResponse 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
       <ns1:result xsi:type="xsd:string">Hello, Moon!</ns1:result>
-    </sayHelloResponse>
+    </sayHelloWorldInParamResponse>
   </soapenv:Body>
 </soapenv:Envelope>]]></source>            
             </section>
  
             </section>                
-        </section>
+
     </body>
     <footer>
         <legal>Java, J2EE, and JCP are trademarks or registered trademarks of 
Sun Microsystems, Inc. in the United States and other countries.<br/>


Reply via email to