Apache | WS |
Axis C++ Linux Installation GuideAxis C++ Linux Installation GuideContents IntroductionThis guide will help you to start with Axis C++. This guide will explain the minimum steps needed to build and run Axis C++, and warn you about the common pitfalls. What You NeedYou need a few helper libraries for parsing XML, WSDL processing and introspection. You need to have the following in order to run Axis C++ engine. Apache web server (2.0.x or 1.3.x) - You need to have Apache built with module so support, hence you need to have the source of Apache web server. Expat (1.95.7) and/or Xerces C++ (2.2.0) XML parser(s) Installing Axis C++1. Install Apache Web ServerIn case you have already installed Apache , make sure that 'so modules' are enabled. 2. Install Expat (1.95.7) and/or Xerces C++ (2.2.0)Select an XML parser depending on your parser preferences. See the respective parser's documentation for installation instructions. 3. Download Axis C++Download Axis C++ source or binary distribution and extract the package. 4. Define the Environment Variables.
AXISCPP_HOME="Path to Axis C++ source or binary extracted folder"
5. Build Axis C++
Note: If you have downloaded Axis C++ binaries, you can skip this step 6. Configure Apache Module
Note: to execute the following steps, you may need to have super user rights on your machine. 7. Configure Server Deployment Descriptor FileNow you need the server deployment descriptor (server.wsdd) to deploy server samples you built. 8. Set Engine Wide Settings in Configuration FileAxis C++ uses a configuration file to let the user specify preferences such as log file locations, transport and parser libs to be used and location of deployment descriptor files. The comment character is '#' A sample axiscpp.conf file: LogPath:/usr/local/axiscpp_deploy/log/AxisLog WSDDFilePath:/usr/local/axiscpp_deploy/etc/server.wsdd ClientLogPath:/usr/local/axiscpp_deploy/log/AxisClientLog XMLParser:/usr/local/axiscpp_deploy/lib/libaxis_xercesc.so Transport_http:/usr/local/axiscpp_deploy/lib/libaxis2_transport.so 9. Deploying with Apache Web ServerNow we need to copy Apache module (libaxiscpp_mod2.so for Apache 2.0.x and libaxiscpp_mod.so for Apache 1.3.x) to the correct places and start Apache web server. The steps to follow are:
To do the same you can you can use scripts in $AXISCPP_DEPLOY/bin. cd $AXISCPP_DEPLOY/binTo deploy with Apache 2.0.x sh deploy_apache2.shTo deploy with Apache 1.3.x sh deploy_apache.shNote that these scripts rename libaxis_xercesc.so (the default parser library) to libaxis_xmlparser.so. 10. See Axis C++ in actionNow the installation is complete. You can verify that the server side is working by accessing the URL http://localhost/axis using your web browser. You should get the Axis C++ welcome page and this page will show you a list of deployed services as specified by the $AXISCPP_DEPLOY/conf/server.wsdd file. Now you can run a client sample and see if it works. cd $AXISCPP_DEPLOY/bin./base To help you run several samples at once there is a script named run_interoptests.sh in $AXISCPP_DEPLOY/bin folder. You can try running that as well. 11. Simple axis server installation1. Build the source distribution as mentioned above. 2. Make sure that you have set the AXISCPP_DEPLOY environment variable to point to your deployment folder as mentioned above 3.Copy $AXISCPP_DEPLOY/etc/axiscpp.conf_linux to $AXISCPP_DEPLOY/etc/axiscpp.conf and make sure that the contents of that file match your system settings 4. Run simple axis server in $AXISCPP_DEPLOY/bin
For Example cd $AXISCPP_DEPLOY/bin ./simple_axis_server 9090 5. Run clients in $AXISCPP_DEPLOY/bin On a different shell: cd $AXISCPP_DEPLOY/bin ./base http://localhost:9090/axis/base Similarly you could run the other samples. |