AXIS installation

xiaoxiao2021-03-06  83

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

At this point we have completed the Hello's web service.

转载请注明原文地址:https://www.9cbs.com/read-98560.html

New Post(0)