How To Work With Globus Toolkit Standards Web Service Using Axis2 Server


Globus Toolkit is a collection of independent computers, which are collectively gathered to compute a grid computation. Grid computing is an enormous computation which is enormously advanced.
Globus toolkit
Globus Toolkit has a large number of standards, which can be implemented based on Application usage. Moreover, each standard has its own protocol stack. These can work for Resource management, Information Services, Data Management and Security. Here, we are using one of its standards, which is SOAP functionality for the Web Services.
Globus toolkit
To work with Globus Toolkit, it is a bit more complex in Windows than in a Linux based environment. Here, in this tutorial, we are using Axis2 Server to simulate our work with the accommodation of NetBeans and Tomcat Server.
Apache Axis2 is an engine for developing and simulating Web Services. Implementation of Axis2 can be done in Java and C. It provides the mechanism to add our Web Services interface with our Web Applications.
Globus toolkit
  • Apache Axis 2 Server.
  • Apache Tomcat.
  • NetBeans.
  • Java Virtual Machine.
Step 1
Download Apache Tomcat Server from Tomcat Server. You have to download the binary distribution from the link given, the file is in zip format. When you extract it, the folders are given below, which should be available in the zip file. For Mac and Linux users, you have to download the tar.gz files to use.
Globus toolkit
We hope that you had installed JDK initially. Now, move on to the path to Java folder. Our path is C:\ProgramFiles(x86)\Java\jdk1.6.0_21 . Copy this path to set our environment variables.
Move on to the My Computer-> Properties-> Advanced System Settings -> Environment Variables. Here you have to make a “New” variable in System Variables. In edit system variables, put “JAVA_HOME” in Variable name and “JDK installed directory path (C:\ProgramFiles(x86)\Java\jdk1.6.0_21)” in variable value.  Click OK.
Globus toolkit
Now, come back to Tomcat extracted directory. Here in certain configurations, we have to configure it. For this, three files of Tomcat will be served. Move to Tomcat directory -> Conf -> – Web.xml, Context.xml and Server.xml.
Step 2
Open Web.xml in Notepad or any text editor and change the <param-value> to True from False.
Globus toolkit
Step 3
Open Context.xml and change Automatic Reloading to True.
Globus toolkit
Step 4
Open Server.xml and change the port number. By default, it is – “8080”, which might work but in case it is used by any other application, then you can use any number between 1024 to 65535. Here, we are using in 9999.
Globus toolkit
Once you are done with configuring them, you can start Tomcat Server – you have two options for this. You can move to Tomcat -> bin directory. There will be – Startup.bat, which will start your Tomcat Server, respectively for shutting it off by – Shutdown.bat. Alternatively, you can open it by Shift+ right click in bin directory and choose Open Command Prompt here. Just type startup.bat to start the Server. Afterwards, open any Browser and type localhost:9999. You will see something, similar to what is shown below. 
Globus toolkit
Step 5
Afterwards, you have to download – Apache Axis2.war file, unzip it and place it in Tomcat/Webapp/Axis2.war. To ensure it, Axis2 Server Service is running – run your Server as – localhost:9999/axis2/ it will show you something, as shown below.
Globus toolkit
Integration of Axis in Netbeans
Step 6
Download NetBeans form here. After installing NetBeans, you can use Axis2 support plugin in Netbeans. Move to tool à plugins -> Available Plugins in NetBeans. Find Axis2 support plugin from the list and install it. Now, move to Tools -> Server to configure the Server as - Tomcat Server. 
Globus toolkit
Step 7
Once it is completed, you have to give a path to axis2.war to Axis Service by moving to tools à Options à Axis2. Here, in Target location, provide the path, where you had copied and placed your axis2.war folder in Tomcat Webapps.
Globus toolkit
Step 8
Create a demo Java Application – in my case –“Test” and Add Axis2 Web Service to the project and provide the detail, as shown below.
Globus toolkit
Globus toolkit
Now, you can run your application, but before that; you have to deploy your web service to the tomcat server, for that go to tomcat/bin/ open command prompt and type Startup – For starting Tomcat server. Now in NetBeans right click on “mytestcode services” and chose “deploy to server”.
Start your Browser and run as – localhost:9999/axis2/ListServices. You will see your Service is active – “mytestcode” and you can also collaborate this Service with your Web Application for different purposes.
Globus toolkit
I hope you like it. Thank you for reading. Have a great day.