Overview
This article introduces a simpler and more practical Java-based SOAP engine--apache organization's axis--installation, configuration, and application development approach, and hopes to help friends who are interested in Java based Web Services application development.
Axis Introduction
Axis is the SOAP engine launched by the Apache organization, the Axis project is the successor to the famous Apache SOAP project, the latest version is the 1.1 version of Java development, C + + version is being developed. The Axis v1.1 package can be downloaded from http://ws.apache.org/axis/dist/1_1/.
Installation of Axis
Using axis to develop Web Services, you need a server engine that supports the servlet, such as the well-known Tomcat (Tomcat is also provided by the Apache organization, the latest version is 4.1.24, the download address is http:// jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/). Before that, of course, you must have installed the JDK1.3 version, and when Tomcat is installed, simply unzip the downloaded axis package and copy the "axis" directory in the "WebApps" directory to "WebApps" under the Tomcat installation directory. Table of Contents.
Axis's configuration
Axis is based on Java development, can be deployed in a variety of operating systems, the need to configure a series of system variables before use, assuming that you have installed a version of Tomcat more than 4.0, you need to configure the system variables as shown in the following table:
Catalina_home
C:\Tomcat_4_1
(This should be the installation location for Tomcat, note that there are no spaces in the pathname)
AXIS_HOME
%CATALINA_HOME%\webapps\axis
AXIS_LIB
%AXIS_HOME%\lib
AXISCLASSPATH
%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar; %AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar; %AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar; %AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar
If you don't want to do this tedious classpath setting, you can add all the. jar files under the "Lib" directory in the axis software package to the system environment variable CLASSPATH.
Axis's Test
After the installation has been configured, you should test to see if axis can run correctly.
Start the Tomcat server, Access http://localhost:8080/axis/happyaxis.jsp in the browser, if the page appears to have errors, you need to go back to check if the relevant configuration is correct, if the browsing page can correctly display system components, attributes and other parameters Number configuration information, the installation is successful, as shown in the following illustration:
Now you are ready to start developing your Web Services application.