This document guides 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 and you can download them from here. This document covers both forms.
Please send your feedback to the developer mailing list: axis-c-dev@ws.apache.org (Subscription details are available on the Axis2 site.) Please remember to prefix the subject with [Axis2].
(a) libxml2 - http://www.xmlsoft.org/
(b) libiconv - http://www.gnu.org/software/libiconv/
(c) Apache Qpid -
(a) Extract the binary tar package to a directory.
(b) Set AXIS2C_HOME environment variable pointing to the location where
you have extracted Axis2/C.
$ AXIS2C_HOME='/your_path_to_axis2c'
$ export AXIS2C_HOME
NOTE : You will need to set AXIS2C_HOME only if you need to run Axis2/C
samples or tests. The reason is that the samples and test codes use
AXIS2C_HOME to get the path to Axis2/C. To write your own services or
clients this is not a requirement.
$ AXIS2C_HOME='/your_desired_path_to_axis2c_installation'
$ export AXIS2C_HOME
$ cd /your_path_to_axis2c_source
$ ./configure --prefix=${AXIS2C_HOME}
$ make
$ make install
$ ./configure --enable-guththila=yes [other configuration
options]
$ make
$ make install
$ export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib/
$ cd samples
$ ./configure --prefix=${AXIS2C_HOME}
--with-axis2=${AXIS2C_HOME}/include/axis2-1.4.0
$ make
$ make install
<transportReceiver name="amqp"
class="axis2_amqp_receiver">
<parameter name="qpid_broker_ip"
locked="false">127.0.0.1</parameter>
<parameter name="qpid_broker_port"
locked="false">5672</parameter>
</transportReceiver>
<transportSender name="amqp" class="axis2_amqp_sender"/>
$ cd ${AXIS2C_HOME}/bin
$ ./axis2_http_server
$ ./axis2_http_server -h
$
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib
$ cd ${AXIS2C_HOME}/bin/samples
$ ./echo
$ ./math
$
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib
$ cd ${QPID_HOME}/sbin
$ ./qpidd --data-dir ./
$ cd ${AXIS2C_HOME}/bin
$ ./axis2_amqp_server
$ ./axis2_amqp_server -h
$
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib
$ cd ${AXIS2C_HOME}/bin/samples/amqp
$ ./echo_blocking
$
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib
The above folders contain the following files:
Please edit the <source_distribution>\build\win32\configure.in file to set the following build options.
The following steps will take you through the source compilation.
cd C:\axis2c\build\win32
C:\axis2c\build\win32> vcvars32.bat
Note: You may have to set the PATH environment variable to vcvars32.bat if MS Windows gives an error indicating that it cannot find this batch file. This file is located in <Your MS Visual Studio Install Directory>\VC\bin directory.
C:\axis2c\build\win32>nmake install
The above folders contain the following files:
> cd %AXIS2C_HOME%\bin
> axis2_http_server.exe
$ ./configure --with-apache2="<apache2 httpd include
files location>" [other
configure options]
$ ./configure --with-apache2="<apache2 include files
location>" --with-apr="<apr include files
location>" [other configure options]
$ make
$ make install
cp $AXIS2C_HOME/lib/libmod_axis2.so.0.3.1
/usr/lib/apache2/modules/mod_axis2.so
(on Linux)copy C:\axis2c\build\deploy\lib\mod_axis2.dll
C:\Apache2\modules\mod_axis2.so
(on Windows)