Magazine
 
Quick Review:Ajax
 
Developing Simple Web Service

In this section, we will learn developing web services with Axis2 by an easy example “HelloWorldService” and deploying it on the tomcat web server.

Step 1: Build Axis2 Web Application: (axis2.war)

  1. Download and install Apache Ant (version 1.6.5 or later) from http://ant.apache.org.
  2. Go to “webapp” folder of the downloaded axis2. You will get “build.xml” file.
  3. Open the command prompt and go up to the “webapp” directory and run “ant” command.
  4. The above command will generate “axis2.war” in the “dist” directory of axis2.
  5. Copy the “axis2.war” into the “webapp” folder of the tomcat web server.
  6. Restart the server.
  7. Open the browser with url http://localhost:8080/axis2 in address bar. It displays the page
  8. as below:

Axis 2 Example

May 2008 | Java Jazz Up | 15
 
previous
index
next
 
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,

30
, 31, 32, 33, 34, 35, 36, 37 Download PDF