Hands-On 1
Hands-On 1
de Monastir
Web Services and Orchestration
MP1 GL- Hands-On : First Web Service with Axis2
Ikram Garfatta • Semestre 2 - 2025
2. Set the TPWS environment variable which will point to the directory tp-terminal:
set TPWS =[ your system path ]/ tp - terminal
3. Download Axis2-1.5.1:
cd %TPWS %
curl -o axis2 -1.5.1. zip https :// archive . apache . org / dist / ws / axis2 /1 _5_1 /
axis2 -1.5.1 - bin . zip
5. Download the set-env.bat which will set all the required variables:
6. Open the downloaded file. Update the TPWS and JAVA_HOME variables. The TPWS should point
to your tp-terminal folder. The JAVA_HOME should point to your JDK directory.
8. Start Axis2:
%AXIS2_HOME %\bin \ axis2server . bat
9. Make sure to re-execute the set-env.bat file in each new terminal session.
1
2.2 Define the HelloWorld.java Service Class
package hello ;