Proof of concept test
The test client retrieves the schema version information. It is a very simple one, demonstrates that Axis2/C code can be generated from the service WSDL file, the code compiles, and the communication with a server works. The test client communicates with a Python test server. This document explains how to build the axis client and run the test. Work in a separate, empty directory (project root).
- Check out the branch of transfer-interface for new wsdl development
export CVSROOT=":pserver:anonymous@glite.cvs.cern.ch:/cvs/glite"
cvs co -r glite-data-transfer-interface_branch_4_0_0_0 org.glite.data.transfer-interface
source org.glite.data.transfer-interface/test/AxisC/setup.sh
- Download and compile Axis
wget http://apache.mirror.testserver.li/ws/axis2/c/1_5_0/axis2c-src-1.5.0.tar.gz
tar -zxf axis2c-src-1.5.0.tar.gz
mkdir $AXIS2C_HOME
pushd axis2c-src-1.5.0
./configure --prefix=$AXIS2C_HOME
make
make install
popd
wget http://surfnet.dl.sourceforge.net/sourceforge/pywebsvcs/ZSI-2.0.tar.gz
tar -zxf ZSI-2.0.tar.gz
pushd ZSI-2.0/ZSI
patch -p0 < ../../org.glite.data.transfer-interface/test/python/fault.diff
cd ../scripts
chmod +x wsdl2dispatch wsdl2py
popd
pushd org.glite.data.transfer-interface/test/python
./process-wsdl.sh
The generated code is retrieved form the CVS, we just compile it here.
cd ../AxisC
ln -s $AXIS2C_HOME/include/axis2-1.5.0 axis
cd build
make
popd
pushd org.glite.data.transfer-interface/test/python/server
./server.py
- Open a new terminal, go to the project root, then
source org.glite.data.transfer-interface/test/AxisC/setup.sh
pushd org.glite.data.transfer-interface/test/AxisC/build
./tcli_lc5
(The binary name is tcli_lc5, and do not ask why I chose this name...)
--
ZsoltMolnar - 22 Jan 2009