You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by du...@apache.org on 2005/08/12 07:32:52 UTC

cvs commit: ws-axis/c/docs linuser-guide.html winuser-guide.html

dushshantha    2005/08/11 22:32:52

  Modified:    c/docs   linuser-guide.html winuser-guide.html
  Log:
  Documented the new changes to server.wsdd syntax to help handle operation to request mapping in Windows and Linux user guides.
  
  Revision  Changes    Path
  1.10      +24 -17    ws-axis/c/docs/linuser-guide.html
  
  Index: linuser-guide.html
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/docs/linuser-guide.html,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- linuser-guide.html	27 May 2005 11:39:03 -0000	1.9
  +++ linuser-guide.html	12 Aug 2005 05:32:52 -0000	1.10
  @@ -529,23 +529,30 @@
   </p>
   <p>libmyservice.so is the name you give to your service library. You can give any name you wish. But remeber to prefix with lib and suffix with .so</p>
   <p>Copy this service library into $AXICPP_DEPLOY/lib</p>
  -<p>Modify the <strong>$AXIS_HOME/conf/</strong><strong>server.wsdd</strong> .&nbsp; (You have a sample server.wsdd file entry given below appropriately filled for this service).</p>
  -<p>
  -<strong>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</strong>
  -<br> 
  -<strong>&lt;deployment xmlns="http://xml.apache.org/axis/wsdd/"xmlns:C="http://xml.apache.org/axis/wsdd/providers/c"&gt;</strong>
  -<br> 
  -<strong>&lt;service&gt;</strong>
  -<br> 
  -<strong>&lt;service name ="Calculator" provider ="CPP:RPC" description:"Simple calculator web service"&gt; &lt;parameter name="classname" &nbsp;value = "/usr/local/Axis/webservices/libcalculator.so" /&gt;</strong>
  -</p>
  -<p>
  -<strong>&lt;parameter name= "allowedMethods" value="add sub mul div "/&gt; &lt;/service&gt;</strong>
  -<br>
  -</p>
  -<p>
  -<strong>&lt;/deployment&gt;</strong>
  -</p>
  +              <p>Modify the <strong>$AXIS_HOME/conf/</strong><strong>server.wsdd</strong> 
  +                .&nbsp; (You have a sample server.wsdd file entry given below 
  +                appropriately filled for this service).</p>
  +              <p> <strong>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</strong> 
  +                <br>
  +                <strong>&lt;deployment xmlns="http://xml.apache.org/axis/wsdd/"xmlns:C="http://xml.apache.org/axis/wsdd/providers/c"&gt;</strong> 
  +                <br>
  +                <strong>&lt;service name=&quot;Calculator&quot; provider=&quot;CPP:RPC&quot; 
  +                description=&quot;Axis C++ web service&quot;&gt;<br>
  +                &lt;parameter name=&quot;className&quot; value=&quot;/user/local/apache/axis/Calculator.so&quot;/&gt;<br>
  +                &lt;parameter name=&quot;allowedMethods&quot; value=&quot;add 
  +                sub mul div &quot;/&gt;<br>
  +                &lt;parameter name=&quot;operationRequestMap&quot; value=&quot;add:addRequest 
  +                sub:subRequest mul:mulRequest div:divRequest &quot;/&gt;<br>
  +                &lt;/service&gt;<br>
  +                </strong><strong>&lt;/deployment&gt;</strong> </p>
  +              <p>In above deployment descripter, the parameter operationRequestMap 
  +                keeps track of Request and Response element names and map that 
  +                to the operation name. Axis C++ server uses this parameter to 
  +                invoke the correct service method acoording to the request. </p>
  +              <p>The Deployment descripter is autogenerated by the wsdl2ws tool 
  +                in the folder where it generates the codes for the service, as 
  +                deploy.wsdd.You can just copy and paste above section to <strong>$AXIS_HOME/conf/</strong><strong>server.wsdd</strong>. 
  +              </p>
   <p>Start the Apache server</p>
   <p>
   <strong>$ /usr/local/apache/bin/apachectl start</strong>
  
  
  
  1.11      +33 -5     ws-axis/c/docs/winuser-guide.html
  
  Index: winuser-guide.html
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/docs/winuser-guide.html,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- winuser-guide.html	27 May 2005 11:39:03 -0000	1.10
  +++ winuser-guide.html	12 Aug 2005 05:32:52 -0000	1.11
  @@ -379,11 +379,39 @@
   <h4>Deploying your web service</h4>
   </div>
   <br>
  -<p>Axis cpp user can use the AdminClient tool to deploy a service or can manually deploy. The first section shows you how to deploy your Web Service manually, without using the AdminClient tool.<br>
  -<br>Lets say that the apache installation folder is [Apache_Folder].<br>(The default installation is apache 1.3.X and the path is "C:\Program Files\Apache Group\Apache" and the path for apache 2.X is "C:\Program Files\Apache Group\Apache2")<br>
  -<br>1) Copy the above Calculator.dll to the folder [Apache_Folder]/Axis/webservices.<br>2) Add the following to the server.wsdd at the service level. Please make sure you add these lines at the correct place, i.e at service level. ([Apache_Folder]/Axis/conf/server.wsdd)<br>
  -<br>&lt;service name="Calculator" provider="CPP:RPC" description="Calculator Web Service"&gt;<br>&lt;parameter name="className" value="[Apache_Folder]\Axis\webservices\Calculator.dll"/&gt;<br>&lt;parameter name="allowedMethods" value="add subtract "/&gt;<br>&lt;/service&gt;<br>
  -<br>Now you have deployed your web service</p>
  +              <p>Axis cpp user can use the AdminClient tool to deploy a service 
  +                or can manually deploy. The first section shows you how to deploy 
  +                your Web Service manually, without using the AdminClient tool.<br>
  +                <br>
  +                Lets say that the apache installation folder is [Apache_Folder].<br>
  +                (The default installation is apache 1.3.X and the path is "C:\Program 
  +                Files\Apache Group\Apache" and the path for apache 2.X is "C:\Program 
  +                Files\Apache Group\Apache2")<br>
  +                <br>
  +                1) Copy the above Calculator.dll to the folder [Apache_Folder]/Axis/webservices.<br>
  +                2) Add the following to the server.wsdd at the service level. 
  +                Please make sure you add these lines at the correct place, i.e 
  +                at service level. ([Apache_Folder]/Axis/conf/server.wsdd)<br>
  +                <br>
  +                &lt;service name=&quot;Calculator&quot; provider=&quot;CPP:RPC&quot; 
  +                description=&quot;Axis C++ web service&quot;&gt;<br>
  +                &lt;parameter name=&quot;className&quot; value=&quot;[Apache_Folder]/Axis/webservices/Calculator.dll&quot;/&gt;<br>
  +                
  +                &lt;parameter name=&quot;allowedMethods&quot; value=&quot;add 
  +                sub mul div &quot;/&gt;<br>
  +                &lt;parameter name=&quot;operationRequestMap&quot; value=&quot;add:addRequest 
  +                sub:subRequest mul:mulRequest div:divRequest &quot;/&gt;<br>
  +                &lt;/service&gt;<br>
  +              </p>
  +              <p>In above deployment descripter, the parameter operationRequestMap 
  +                keeps track of Request and Response element names and map that 
  +                to the operation name. Axis C++ server uses this parameter to 
  +                invoke the correct service method acoording to the request. </p>
  +              <p>The Deployment descripter is autogenerated by the wsdl2ws tool 
  +                in the folder where it generates the codes for the service, as 
  +                deploy.wsdd.You can just copy and paste above section to [Apache_Folder]/Axis/conf/server.wsdd. 
  +              </p>
  +              <p> Now you have deployed your web service</p>
   <p>
   <a name="admin"></a>
   </p>