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

  • Set up your environment

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

  • Download and set up ZSI

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

  • Build the Axis client

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

  • Run the test server

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

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2009-01-22 - ZsoltMolnar
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    EGEE All webs login

This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Ask a support question or Send feedback