A .axis installation
After starting the Tomcat server, open the browser Enter the URL http: // LocalHost: 8080 / axis Should appear as shown below, click on the link "Validate" to verify that the few Java packs required for Axis are complete.
After clicking on the hyperlink Validate, AXIS automatically checks each Java component you need. These components are divided into: Estate components and optional components, must ensure that all required components exist, as shown in the figure below for verification failure.
Download Activation.jar and copy to F: / Tomcat4 / Common / LIB Restart Tomcat Click Hyperlink Validate as shown in the figure below for the verification.
One. Web service server development
1: Hello World Program
New Test.java under F: / Tomcat4 / WebApps / Axis
Public class test {public string getmsg () {system.out.println ("happen act in getmsg ()"); return "demo";} public void setmsg (String msg) {// - Operation here}}
Enter the URL in the browser http://127.0.0.1:8080/AXIS/test.jws
Show like a picture
Why is wrong. For us, we should rename Test.java as Test.jws
In the browser input URL http://127.0.0.1:8080/AXIS/test.jws
Show the following results
There is a web service here
Click to see the WSDL
Click on the link on the page to see the WSDL information corresponding to the web service as follows
XML Version = "1.0" encoding = "UTF-8"?>
wsdl: message>
wsdl: message>
wsdl: message>
wsdl: message>
wsdl: Operation>
wsdl: Operation>
wsdl: porttype>
wsdl: Input>
wsdl: Output>
wsdl: Operation>
wsdl: Input>
wsdl: Output>
wsdl: Operation>
wsdl: binding>
wsdl: port>
wsdl: service>
WSDL: Definitions>
At this point we have completed the Hello's web service.