Apache Axis2 Eclipse Plugins allow Web service developers to easily and speedily expose the available plain old Java applications as Web services. This tutorial by Lahiru Sandakith consists of two parts, with two examples that walk you through developing and deploying a sample Web service using the Top-down (Contract First) and Bottom-up (Code First) approach using Axis2 Eclipse Plugins.
The tutorial is written for Eclipse SDK v3.2 and Axis2 Eclipse Plugin v1.3.
Contents
- Introduction [0]
- Tutorial Scenario [0]
- Getting Started [0]
- Apache Axis2 Service Archive Generator Wizard – Eclipse Plugin [0]
- Apache Axis2 Code Generator Wizard - Eclipse Plugin [0]
- Part 1 - Axis2 Eclipse Plugin demonstration of Bottom Up Approach of Web services Development. [0]
- Part 2 - Axis2 Eclipse Plugin demonstration of Top Down Approach of Web services Development. [0]
- Conclusion [0]
- References [0]
Apache Axis2 [1] is the most popular and widely used core engine for Web services. It is a complete re-design and re-write of the widely used Apache Axis [2] SOAP stack built on the lessons learned from Apache Axis. Apache Axis2 is more efficient, more modular, and more XML-oriented than the older version. It is carefully designed to support the easy addition of plugin "modules" that extend its functionality for features such as security and reliability. On the other hand, Eclipse is a project aiming to provide a universal tool set for development. It is an open source IDE that is mostly provided in Java, but the development language is independent and not limited in any way. It is the most widely used IDE for most computer languages, especially for JAVA.
Developing applications using any programming language is becoming easier with the availability of tooling. If tooling is available in areas like JAVA application development, it will facilitate faster and easier application development, and also increase the productivity of the developers. Most integrated development environments (IDEs) address the tooling and the features available around a particular area of development. Most IDEs available today go beyond supplying traditional tooling facilities, which address only certain areas in programming. They are becoming frameworks for developing applications.
This tutorial mainly focuses on the two above mentioned tools available for Web service developers. They are, Axis2 Eclipse Plugins, which are built around Eclipse-the Framework available for JAVA application development, and Axis2- the widely used core engine for Web services. These tools help the developers to easily expose their available plain old JAVA applications as Web services, using wizards.
This tutorial is split into two parts covering two basic Web services scenarios of Web service in the Bottom Up (Code First) and Top Down (Contract First) approaches with the Axis2 Eclipse Plugins.
PART 1 - Axis2 Eclipse Plugin demonstration of Bottom Up Approach of Web services Development.
PART 2 - Axis2 Eclipse Plugin demonstration of Top Down Approach of Web services Development.
Download [3])
2) Eclipse SDK 3.2.x (Download [4])
3) Apache Tomcat 4.1.x (Download [5])
4) Axis2 Web Application (Download) [6]
5) Axis2 Eclipse Plugins (Download [7])
Now let us focus on the two plugins mentioned in the tutorial scenario.
installation instructions. [8]
Other than the two plugins, we need the Axis2 runtime to deploy the developed Web services. We use the Axis2 Web Application which can be deployed in any popular servlet container. (You can download the Axis2 Web Application from the Axis2 Download page. [9]) You have to just place it in the repository of the servlet container and run it. For example, if you are using Apache Tomcat, just copy the downloaded .war file, put it in the webapp folder, and start the servlet container.
Without libraries [10]
PART 2 - Top Down Approach [11]
http://ws.apache.org/axis2 [12]
Apache Axis2 Tools - http://ws.apache.org/axis2/tools/index.html [13]
Eclipse.org - http://ws.apache.org/axis2/tools/index.html [14]
Eclipse Plugins - http://www.eclipseplugincentral.com/ [15]
Author
Lahiru Sandakith P.G. WSO2, Inc. sandakith at wso2 dot com