1. axis: axis-1_3(axis-bin-1_3.zip)
2. Tomcat: jakarta-tomcat-5.0.28(jakarta-tomcat-5.0.28.exe)
3. JDK: jdk1.5.0 _ 06 (jdk-rj5_0_06-windows-i586-p.exe)
4. JRE: jre1.5.0 _ 06 (jdk-rj5_0_06-windows-i586-p.exe)
Go to the sun and Apache websites to find the above software. The best version is the same, and the compatibility of the open-source software version is not good. If they are inconsistent, I cannot guarantee that the following method is feasible. Next, start from the most basic:
1. Install the Java environment
Well, if this is used, you can install JDK 1.5.0 _ 06 and jre1.5.0 _ 06. Note that JDK will be installed first, and then JRE will be installed, you must select two different paths for them, such as C:/jdk1.5.0 _ 06 and C:/jre1.5.0 _ 06.
2. install Tomcat
You have installed Tomcat 5.0.28 through jakarta-tomcat-5.0.28.exe (Tomcat 6.0.2-beta is the latest version). Remember to select the installation path, system JRE path, administrator username and password, Tomcat port number, and so on, for example, C:/tomcat5.0, C:/jre1.5.0 _ 06, admin, admin, and 8080 (the port must not be used by other software; otherwise, use another port ).
3. Integrate axis into Tomcat
Do not start the Tomcat service, decompress axis-bin-1_3.zip, copy the entire axis folder under the/axis-bin-1_3/axis-1_3/webapps directory to the webapps folder under the tomcat installation path (such as C:/tomcat5.0. Then, set the tomcat installation path (for example, C:/tomcat5.0) copy all files under the WEB-INF/lib directory under the just copied axis directory to the common/lib directory under the installation path of Tomcat. There is a tool under the lib directory of jdk1.5.0 _ 06 (for example, C:/jdk1.5.0 _ 06/LIB. JAR file, copy it to the common/lib directory under the tomcat installation directory (for example, C:/tomcat5.0.
4. configure system environment variables
Add the following items to the system variables through my computer -- properties -- Advanced -- environment variables:
1. variable name: tomcat_home
Variable value: C:/tomcat5.0
2. variable name axis_home
Variable value % tomcat_home %/webapps/axis
3. variable name axis_lib
Variable value % axis_home %/lib
4. variable name axisclasspath
Variable value % axis_lib %/axis. jar; % axis_lib %/axis-ant.jar; % axis_lib %/axis-schema.jar; % axis_lib %/commons-discovery-0.2.jar; % axis_lib %/commons-logging-1.0.4.jar; % axis_lib %/jaxrpc. jar; % axis_lib %/log4j-1.2.8.jar; % axis_lib %/SAAJ. jar; % axis_lib %/wsdl4j-1.5.1.jar; % axis_lib %/activation. jar; % axis_lib %/mail. jar; % axis_lib %/xmlsec-1.3.0.jar;
5. variable name classpath
Variable value % axis_lib %/axis. jar; % axis_lib %/axis-ant.jar; % axis_lib %/axis-schema.jar; % axis_lib %/commons-discovery-0.2.jar; % axis_lib %/commons-logging-1.0.4.jar; % axis_lib %/jaxrpc. jar; % axis_lib %/log4j-1.2.8.jar; % axis_lib %/SAAJ. jar; % axis_lib %/wsdl4j-1.5.1.jar; % axis_lib %/activation. jar; % axis_lib %/mail. jar; % axis_lib %/xmlsec-1.3.0.jar;
6. variable name java_home
Variable value: C:/jdk1.5.0 _ 06/bin
Make sure that all the files mentioned in the preceding variable values are in the corresponding directory. . (I don't know if the version is different)
5. Check whether the installation is successful
Start the Tomcat service and use a web browser to access http: // localhost: 8080/axis/. You can see hello! Welcome to Apache-axis., and then click the validation link to go to http: // localhost: 8080/axis/happyaxis. jsp
Vi. Application
Public class hello
{
Public String Hello (string name)
{
Return "hello," + name + ", Welcom to axis ";
}
}
Save the file name as hello. JWS.
Http: // localhost: 8080/axis/Hello. JWS? WSDL shows the effect.