Axis2 is a brand-new WebService engine, which is a product of the redesign of the axis1.x. Axis2 not only supports SOAP1.1 and SOAP1.2, but also integrates the very popular rest WebService, as well as the support of spring, JSON and other technologies. These will be explained in a series of tutorials later. This article mainly describes how to use AXIS2 to develop a webservice that does not require any configuration files, and calls this webservice on the client using Java and C #.
Download and installation of AXIS2
Readers can download the latest version of Axis2 from the URL below:
http://ws.apache.org/axis2/
The current AXIS2 version of 1.4.1 is used in this article. Readers can download the following two zip packages:
Axis2-1.4.1-bin.zip
Axis2-1.4.1-war.zip
The Axis2-1.4.1-bin.zip file contains all the jar files in Axis2, and axis2-1.4.1-war.zip files are used to publish WebService to the Web container.
Extract the Axis2-1.4.1-war.zip file to the appropriate directory, place the Axis2.war file in the directory in the <tomcat installation directory >\webapps directory (the Tomcat version used in this article is 6.x), and start Tomcat.
In the browser address bar, enter the following URL:
http://localhost:8080/axis2/
If you display a page in the browser as shown in Figure 1, the AXIS2 installation is successful.
Figure 1