You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by sa...@apache.org on 2004/04/19 10:18:55 UTC

cvs commit: ws-site/targets/axis/cpp windev-guide.html wininstall-guide.html

sanjaya     2004/04/19 01:18:55

  Modified:    targets/axis/cpp windev-guide.html wininstall-guide.html
  Log:
  corrected forrest source
  
  Revision  Changes    Path
  1.7       +10 -10    ws-site/targets/axis/cpp/windev-guide.html
  
  Index: windev-guide.html
  ===================================================================
  RCS file: /home/cvs/ws-site/targets/axis/cpp/windev-guide.html,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- windev-guide.html	16 Apr 2004 16:29:50 -0000	1.6
  +++ windev-guide.html	19 Apr 2004 08:18:54 -0000	1.7
  @@ -492,7 +492,7 @@
   <br>7) In the dialog that appears select &ldquo;An empty DLL project&rdquo; click &ldquo;Finish&rdquo; and then &ldquo;OK&rdquo;.<br>
   <br>8) Right click on the project that you created (i.e. ws1) and click &ldquo;Add Files to Project&hellip;&rdquo; on the menu that appears. In the &ldquo;Insert Files into Project&rdquo; dialog select the generated .cpp and .h files in [SKELSTUB_HOME]\ServerOut and click &ldquo;OK&rdquo;.<br>
   <br>9) Right click on the project (i.e. ws1)again and click on &ldquo;Settings&hellip;&rdquo; on the menu that appears. Click the C/C++ tab and select &ldquo;Preprocessor&rdquo; from the &ldquo;Category&rdquo; Drop down list. Add Axis include directory [CHECKOUT_HOME]c\include\ to the project In the &ldquo;Additional include directories&rdquo;<br>
  -<br>10).Now business logic should be added to the generated Skeletons. The Skeletons in this case are Calculator.h and Calculator.cpp<br>
  +<br>10)Now business logic should be added to the generated Skeletons. The Skeletons in this case are Calculator.h and Calculator.cpp<br>
   <br>11) We shall implement two methods available in Calculator.cpp as follows.<br>int Calculator::add(int Value0, int Value1)<br>{<br>return Value0+Value1; //business logic<br>}<br>int Calculator::subtract(int Value0, int Value1)<br>{<br>return Value0-Value1; //business logic<br>}<br>
   <br>12) Right click on the project (i.e. ws1) and click &ldquo;Build&rdquo; on the menu that appears. Visual C++ should be able to build the project without any errors now.<br>
   <br>13) The ws1.dll will be built in "ws1\Debug" by Visual C++<br>
  @@ -531,7 +531,7 @@
   </p>
   <p>7) In the dialog that appears select &ldquo;An empty project&rdquo; click &ldquo;Finish&rdquo; and then &ldquo;OK&rdquo;.<br>8) Right click on the project that you created (i.e. ws1) and click &ldquo;Add Files to Project&hellip;&rdquo; on the menu that appears.Then Add the generated .cpp and .h files from the [SKELSTUB_HOME]\ClientOut to the project and click &ldquo;OK&rdquo;.<br>9) Right click on the project (i.e. calclient) again and click on &ldquo;Settings&hellip;&rdquo; on the menu that appears. Click the &ldquo;C/C++&rdquo; tab and select &ldquo;Preprocessor&rdquo; from the &ldquo;Category&rdquo; Drop down list.<br>In the &ldquo;Additional include directories&rdquo; give [CHECKOUT_HOME]c\include as the include path.<br>
   </p>
  -<p>11) Click the &ldquo;Link&rdquo; tab and select &ldquo;Input&rdquo; from the &ldquo;Category&rdquo; Drop down list.<br>Add AxisClient.lib to the &ldquo;Object/library modules&rdquo; and in the &ldquo;Additional library path&rdquo; give the path. AxisClient.lib can be found in [CHECKOUT_HOME]\c\bin once you build the AxisClient project of the "Distribution" VC workspace.<br>
  +<p>10) Click the &ldquo;Link&rdquo; tab and select &ldquo;Input&rdquo; from the &ldquo;Category&rdquo; Drop down list.<br>Add AxisClient.lib to the &ldquo;Object/library modules&rdquo; and in the &ldquo;Additional library path&rdquo; give the path. AxisClient.lib can be found in [CHECKOUT_HOME]\c\bin once you build the AxisClient project of the "Distribution" VC workspace.<br>
   <br>&nbsp;</p>
   <p>Now the client should be coded. Basically this will be a main method. We will write the main method in the file Calculator.cpp of the VC project "calclient". This is the stub generated by the java tool in the stub generation step.<br>
   <br>Add the following main method to Calculator.cpp<br>
  @@ -551,7 +551,7 @@
   <h4>Building and deploying the provided interop web services samples</h4>
   </div>
   <p>
  -<br>1.) Open the Visual C++ workspace (interoptests.dsw) at [CHECKOUT_HOME]\c\vc\samples\server\interoptests\ and do a batch build of all projects.<br>2.) You will find the built dynamic libraries at [CHECKOUT_HOME]\c\bin directory. Following are the built DLLs.<br>base.dll<br>cbase.dll<br>cGroupB.dll<br>doclitbase.dll<br>doclitgroupB.dll<br>groupB.dll<br>3.)copy these dlls to [APACHE_HOME]\Axis\webservices<br>4.)Add the required entries to the server.wsdd file in [APACHE_HOME]\Axis\conf to deploy these interop services. You can find the required entries in the [CHECKOUT_HOME]\c\deploy\conf\server.wsdd_win file. You will need to modify the "value" of the "classname" parameter of each service to to point to the relevant web service dll given above in [APACHE_HOME]\Axis\webservices.</p>
  +<br>1) Open the Visual C++ workspace (interoptests.dsw) at [CHECKOUT_HOME]\c\vc\samples\server\interoptests\ and do a batch build of all projects.<br>2) You will find the built dynamic libraries at [CHECKOUT_HOME]\c\bin directory. Following are the built DLLs.<br>base.dll<br>cbase.dll<br>cGroupB.dll<br>doclitbase.dll<br>doclitgroupB.dll<br>groupB.dll<br>3)copy these dlls to [APACHE_HOME]\Axis\webservices<br>4)Add the required entries to the server.wsdd file in [APACHE_HOME]\Axis\conf to deploy these interop services. You can find the required entries in the [CHECKOUT_HOME]\c\deploy\conf\server.wsdd_win file. You will need to modify the "value" of the "classname" parameter of each service to to point to the relevant web service dll given above in [APACHE_HOME]\Axis\webservices.</p>
   <p>
   <a name="providedclients"></a>
   </p>
  @@ -559,7 +559,7 @@
   <h4>Building and running the provided interop client applications</h4>
   </div>
   <p>
  -<br>1.) Open the Visual C++ workspace (interoptests.dsw) at [CHECKOUT_HOME]\c\vc\samples\client\interoptests\ and do a batch build of all projects.<br>2.) You need to build the AxisClient project in the "Distribution" workspace at [CHECKOUT_HOME]\c\vc\, because you need the AxisClient.lib to complile client applications and AxisClient.dll to run them.<br>3.) You will find the built console applications and AxisClient.dll at [CHECKOUT_HOME]\c\bin directory. Following are the built .exe files. base.exe cbase.exe cgroupB.exe doclitbase.exe doclitgroupB.exe groupB.exe<br>4.) In order to run these samples you should have AxisClient.dll in the PATH environment variable or in the same directory where the .exe is.</p>
  +<br>1) Open the Visual C++ workspace (interoptests.dsw) at [CHECKOUT_HOME]\c\vc\samples\client\interoptests\ and do a batch build of all projects.<br>2) You need to build the AxisClient project in the "Distribution" workspace at [CHECKOUT_HOME]\c\vc\, because you need the AxisClient.lib to complile client applications and AxisClient.dll to run them.<br>3) You will find the built console applications and AxisClient.dll at [CHECKOUT_HOME]\c\bin directory. Following are the built .exe files. base.exe cbase.exe cgroupB.exe doclitbase.exe doclitgroupB.exe groupB.exe<br>4) In order to run these samples you should have AxisClient.dll in the PATH environment variable or in the same directory where the .exe is.</p>
   <p>
   <a name="usingxerces"></a>
   </p>
  @@ -576,12 +576,12 @@
   <strong>How to use xerces as the parser for Axis C++</strong>
   </p>
   <p>In windows using Visual C++ 6.0 open the workspace "distribution" from vc++ at [CHECKOUT_HOME]\c\vc\</p>
  -<p>1.)Remove the files SoapParserExpat.cpp and WSDDDocumentExpat.cpp from the "AxisServer" project and the "AxisClient" project.</p>
  -<p>2.)Add the files "SoapBinInputStream.cpp", "SoapInputSource.cpp", "SoapParserXerces.cpp", "XercesHandler.cpp" (which will be located in [CHECKOUT_HOME]\c\src\soap) and "WSDDDocumentXerces.cpp" (which will be located in [CHECKOUT_HOME]\c\src\wsdd) to the "AxisServer" project and the "AxisClient" project.</p>
  -<p>3.)change the compiler directive "USE_EXPAT_PARSER" to "USE_XERCES_PARSER" (This setting is in "project-&gt;settings-&gt;C/C++-&gt;prepocessor-&gt;Preprocessor Definitions") in all the projects that this directive is used.</p>
  -<p>4.)Add the Xerces header files from xerces binary distribution to [CHECKOUT_HOME]\c\include\xercesc folder</p>
  -<p>5.)Add the required Xerces libs (xerces-c_2.lib for release builds, xerces-c_2D.lib for debug builds) from the Xerces binary distribution to [CHECKOUT_HOME]\c\lib\xerces-c folder and give either xerces-c_2.lib or xerces-c_2D.lib as appropriate in "project-&gt;settings-&gt;link-&gt;input-&gt;object/library modules" and give the path to those libs in "project-&gt;settings-&gt;link-&gt;additional library path"</p>
  -<p>6.)Remove libexpat.lib from the settings of the projects.</p>
  +<p>1)Remove the files SoapParserExpat.cpp and WSDDDocumentExpat.cpp from the "AxisServer" project and the "AxisClient" project.</p>
  +<p>2)Add the files "SoapBinInputStream.cpp", "SoapInputSource.cpp", "SoapParserXerces.cpp", "XercesHandler.cpp" (which will be located in [CHECKOUT_HOME]\c\src\soap) and "WSDDDocumentXerces.cpp" (which will be located in [CHECKOUT_HOME]\c\src\wsdd) to the "AxisServer" project and the "AxisClient" project.</p>
  +<p>3)change the compiler directive "USE_EXPAT_PARSER" to "USE_XERCES_PARSER" (This setting is in "project-&gt;settings-&gt;C/C++-&gt;prepocessor-&gt;Preprocessor Definitions") in all the projects that this directive is used.</p>
  +<p>4)Add the Xerces header files from xerces binary distribution to [CHECKOUT_HOME]\c\include\xercesc folder</p>
  +<p>5)Add the required Xerces libs (xerces-c_2.lib for release builds, xerces-c_2D.lib for debug builds) from the Xerces binary distribution to [CHECKOUT_HOME]\c\lib\xerces-c folder and give either xerces-c_2.lib or xerces-c_2D.lib as appropriate in "project-&gt;settings-&gt;link-&gt;input-&gt;object/library modules" and give the path to those libs in "project-&gt;settings-&gt;link-&gt;additional library path"</p>
  +<p>6)Remove libexpat.lib from the settings of the projects.</p>
   <p>If you are using any other vc workspaces (e.g AxisDevelopment) do the same modifications to the projects of those workspaces.</p>
   <p>Now you can build the source. Once the source is built the dlls AxisServer.dll, AxisClient.dll, mod_axis.dll or mod_axis2.dll will be generated in [CHECKOUT_HOME]\c\bin.<br>You will need to put the xerces dlls somewhere pointed to by the PATH environment variable (xerces-c_2_2_0.dll for release builds, xerces-c_2_2_0D.dll for debug builds) to run the server and the client. (The recommended way of achieving this is to put the Xerces dlls in to [CHECKOUT_HOME]\Axis\libs to which you should have set the PATH environment variable already).<br>
   <br>
  
  
  
  1.7       +2 -3      ws-site/targets/axis/cpp/wininstall-guide.html
  
  Index: wininstall-guide.html
  ===================================================================
  RCS file: /home/cvs/ws-site/targets/axis/cpp/wininstall-guide.html,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- wininstall-guide.html	16 Apr 2004 16:29:51 -0000	1.6
  +++ wininstall-guide.html	19 Apr 2004 08:18:55 -0000	1.7
  @@ -325,9 +325,8 @@
   <p>
   <strong>Installing the Expat XML parser</strong>
   </p>
  -<a href="http://sourceforge.net/projects/expat/">http://sourceforge.net/projects/expat/</a>
  -<br>
  -<br>
  +<p>The Axis cpp binary uses Expat as the XML parser.You need to download the Expat-1.95.7 binary version from <a href="http://sourceforge.net/projects/expat/">http://sourceforge.net/projects/expat/</a>
  +<br>Extract the Expat binaries to a folder Called Expat ,we will refer this folder as [EXPAT_EXTRACT].<br>Copy libexpat.dll file from [EXPAT_EXTRACT]\Libs to [AXIS_HOME]/libs/</p>
   <p>10. Restart the apache web server. If you have done correctly apache server should start without giving any error.</p>
   <br>
   <strong>apache 1.3.X :</strong>