Axis2/C Installation Guide

This document will guide you on how to install Axis2/C and run the server and client samples on Linux and Microsoft Windows operating systems.

This release comes in two forms, source and binary. Instructions are given below to install using any of those two forms.

Please send your feedback to the developer mailing list: axis-c-dev@ws.apache.org (please remember to prefix the subject with [Axis2]). To subscribe to developer mailing list see here

Contents

1. Installing and Running on Linux

This can be done using binary or source distributions.

To get both the binary and source distributions working, you need libxml2, which can be downloaded.

Note : Most Linux systems have libxml2 installed by default. On MS Windows you need to download and install libxml2.

1.1. Using Binary Release

The following steps need to be taken to install and run Axis2/C using binary distribution on Linux : -

  1. Extract the binary tar package to a folder.
  2. Set AXIS2C_HOME environment variable pointing to the location where you have extracted Axis2C
  3. Run the simple axis server:
  4. Run the sample clients in a new shell

1. 2. Using Source Release

The following steps need to be taken to install and run Axis2/C using source distribution on Linux : -

  1. Extract the source tar package to a folder.
  2. Set AXIS2C_HOME environment variable pointing to the location where you want to install Axis2C.
    • AXIS2C_HOME='/your_desired_path_to_axis2c_installation'
    • export AXIS2C_HOME
      • Note : You will need to set AXIS2C_HOME only if you need to run Axis2C samples or tests. The reason is that the samples and test codes use AXIS2C_HOME to get the path to Axis2C. To write your own services or clients this is not a requirement.
  3. Then go to the folder where you extracted the source
    • cd /your_path_to_axis2c_source
  4. Build the source
    • This can be done using the following command sequence in the directory where you have extracted the source:
      • ./configure --prefix=${AXIS2C_HOME}
      • make
      • make install
    • Use './configure --help' for possible command line options.
    • Note :If you do not provide a --prefix configure option, it will by default be installed into /usr/local/axis2c directory.
    • You may need to try Axis2/C with Guththila XML parser. You can do it by giving --enable-guththila=yes
      • ./configure --enable-guththila=yes [other configuration options]
      • make
      • make install
    • In order to build Rampart (Axis2/C security module)
      • ./configure --enable-rampart=yes [other configuration options]
      • make
      • make install
    • If you need to get the samples working, you also need to build the samples.
      To build the samples:
      • export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/axis2c/lib/
      • cd samples
      • ./configure --prefix=${AXIS2C_HOME} --with-axis2_util=${AXIS2C_HOME}/include --with-axiom=${AXIS2C_HOME}/include
      • make
      • sudo make install
    • Please run "./configure --help" in samples folder for more information on configure options.
    • Note : If you do not provide a --prefix configure option, samples will by default be installed into "/usr/local/axis2c/samples" directory.
  5. Go to where you installed Axis2/C.
  6. Start simple axis server
    • To start the simple axis server on port 9090 run the following command lines
      • cd ${AXIS2C_HOME}/bin
      • ./axis2_http_server
    • To see the possible command line options run ./axis2_http_server -h
    • Note : You may need to be logged in as a superuser to run the simple axis server.
  7. Run the sample clients in a new shell using the following command lines
    • cd ${AXIS2C_HOME}/bin/samples
    • to run client for echo service
      • ./echo
    • to run client for math service
      • ./math
    • To see the possible command line options for sample clients run them with '-h' option

2. Installing and Running on Microsoft Windows (win32)

This too can be done using either binary or source distributions.

For both the binary and source distributions, you need to download libxml2.

(NOTE: most Linux systems have libxml2 by default. On MS Windows you need to download and install libxml2)

2. 1. Using Binary Release

2.1.1. Requirements

2.1.2. Binaries in The Release

2.1.3. Running The Binaries

2. 2. Using The Source Release

2.2.1. Requirements

2.2.3. Editing configure.in File

2.2.4. Compiling The Source

The following steps will take you through the source compilation

2.2.5. Running The Binaries

3. Installing Apache2 Web Server Integration Module (mod_axis2).

3.1. Building mod_axis2 From Source Tree

3.1.1 On Linux Platform:

3.1.2 On Win32 Platform:

3.2. Deploying in Apache2 Web Server

Note: To do the following tasks you might need super user privileges in your machine.