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> . (You have a sample server.wsdd file entry given below appropriately filled for this service).</p>
-<p>
-<strong><?xml version="1.0" encoding="UTF-8"?></strong>
-<br>
-<strong><deployment xmlns="http://xml.apache.org/axis/wsdd/"xmlns:C="http://xml.apache.org/axis/wsdd/providers/c"></strong>
-<br>
-<strong><service></strong>
-<br>
-<strong><service name ="Calculator" provider ="CPP:RPC" description:"Simple calculator web service"> <parameter name="classname" value = "/usr/local/Axis/webservices/libcalculator.so" /></strong>
-</p>
-<p>
-<strong><parameter name= "allowedMethods" value="add sub mul div "/> </service></strong>
-<br>
-</p>
-<p>
-<strong></deployment></strong>
-</p>
+ <p>Modify the <strong>$AXIS_HOME/conf/</strong><strong>server.wsdd</strong>
+ . (You have a sample server.wsdd file entry given below
+ appropriately filled for this service).</p>
+ <p> <strong><?xml version="1.0" encoding="UTF-8"?></strong>
+ <br>
+ <strong><deployment xmlns="http://xml.apache.org/axis/wsdd/"xmlns:C="http://xml.apache.org/axis/wsdd/providers/c"></strong>
+ <br>
+ <strong><service name="Calculator" provider="CPP:RPC"
+ description="Axis C++ web service"><br>
+ <parameter name="className" value="/user/local/apache/axis/Calculator.so"/><br>
+ <parameter name="allowedMethods" value="add
+ sub mul div "/><br>
+ <parameter name="operationRequestMap" value="add:addRequest
+ sub:subRequest mul:mulRequest div:divRequest "/><br>
+ </service><br>
+ </strong><strong></deployment></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><service name="Calculator" provider="CPP:RPC" description="Calculator Web Service"><br><parameter name="className" value="[Apache_Folder]\Axis\webservices\Calculator.dll"/><br><parameter name="allowedMethods" value="add subtract "/><br></service><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>
+ <service name="Calculator" provider="CPP:RPC"
+ description="Axis C++ web service"><br>
+ <parameter name="className" value="[Apache_Folder]/Axis/webservices/Calculator.dll"/><br>
+
+ <parameter name="allowedMethods" value="add
+ sub mul div "/><br>
+ <parameter name="operationRequestMap" value="add:addRequest
+ sub:subRequest mul:mulRequest div:divRequest "/><br>
+ </service><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>