HOME | J2ME | Struts | AJAX | SOAP | SOA MEDIA STREAMING AXIS |
AXIS STEP BY STEP
Web Services
Axis Introduction
Installations
Hello World
Using Eclipse
POJO Service
POJO Client
AXIOM Service
AXIOM Client

 

 

Axis Installations

Back | Tutorial Home | Next

Tomcat Installation

  • Install tomcat 6.X, You can use earlier versions also
  • Set Catalina_home in environment variables

Axis Installation

Download AXIS from the URL http://ws.apache.org/axis2/download.cgi
Download following binaries from the above site

  • War binary: This download consists of axis2.war which needs to be copied in to tomcats webapps folder.
  • Full binary: which has samples and utilities needed for creating executables. Keep this in a folder for future usage

Check the Axis installation using URL http://localhost:8080/axis2/ You should get the following screen.

Check the axis set up by clicking Validate link in the displayed web site

If you explore the Axis2 Folder structure in webapps you will see following folder structure

Most of the folders are normal war folders. How ever there are some new folders listed below

axis2-web
axis administration site which can be accessed through URL http://localhost:8080/axis2/axis2-admin/ This site is used for axis configurations, service uploads, add-on module load and unload

modules
This folder contains add on modules which can be used for extended functionalities like SOAP monitoring, security etc. modules have mime type .mar.
The various modules that can be used are mentioned in folder “WEB-INF/modules/modules.list”. the sample listing of mar files in modules.list is given below

addressing-1.4.1.mar
soapmonitor-1.4.1.mar
ping-1.4.1.mar
mex-1.4.1.mar
axis2-scripting-1.4.1.mar

As you can see the listing is a simple new line separated values

services
This folder is a container for the services we upload. Services have mime type .aar

The various services that can be accessed are mentioned in folder “WEB-INF/services/services.list”. The sample listing of aar files in services.list is given below

version-1.4.1.aar
helloworld.aar

As you can see the listing is a simple new line separated values

Axis Configurations

Axis configurations are in file WEB-INF\conf\axis2.xml. This file has all the axis environment configurations. One of the configurations is

<parameter name="userName">admin</parameter>
<parameter name="password">axis2</parameter>

These are the default user name and password of the axis2 admin panel at URL

http://localhost:8080/axis2/axis2-admin/

Now that the war file is working fine, we will need to set up our build environment

Unzip the full binary distribution you have downloaded earlier. Apart from the other folders you will find these two useful folders

  • Bin: This folder contains executables (axis2.bat, axis2server.bat, java2wsdl.bat, wsdl2java.bat). These executables will be used by the ant build files we will be using in this lesson
  • Samples: This folder has samples and respective build files for these samples

Now you will need to do the following settings to get your build environment running

  • Set the environment variable AXIS2_HOME which is the home directory of the full distribution(Remember it contains bin and samples among other folders
  • Make sure the Ant’s bin folder is set in environment variable “path”. This is needed to run Ant build files we will be using.

Make sure you miss none of the above said installation instructions. Now that all the installations are done. Time for Hello World program in next section.

Back | Tutorial Home | Next

site comments powered by Disqus
Download our free toolbar

toolbar powered by Conduit

| Copyright © 2009. All rights reserved | Terms and Conditions | About | Contact | Feed Back |