Book Image

Quickstart Apache Axis2

By : Deepal Jayasinghe
Book Image

Quickstart Apache Axis2

By: Deepal Jayasinghe

Overview of this book

<p>Axis2 is an enterprise-ready web service engine that is very user friendly and provides web service interactions with a dynamic and flexible execution framework. <br /><br />Apache Axis2 is a core engine for web services with two implementations: Apache Axis2/Java and Apache Axis2/C. It is a complete redesign and rewrite of the widely used Apache Axis SOAP stack that builds on the lessons learned from the Apache Axis implementation of the SOAP submission to W3C. Apache Axis2 not only supports SOAP 1.1 and SOAP 1.2, but also has integrated support for the widely popular REST-style of web services. The same business logic implementation can offer both a WS-* style interface and a REST/POX style interface simultaneously.<br /><br />Apache Axis2 is more efficient, more modular, more scalable, and more XML-oriented than the older version. It is carefully designed to support the easy addition of plug-in modules that extend its functionality for features such as security and reliability. Apache Axis2 is built on Apache AXIOM, a new high performance, pull-based XML object model.<br /><br />This book will take you through the basics of web services and Axis2 to the details of Axis2&acirc;&euro;&trade;s architecture.</p>
Table of Contents (18 chapters)
Quickstart Apache Axis2
Credits
About the Author
About the Reviewer
Preface
Index

Axis2 Configurator


So far, you have learned how to start Axis2 and work with Axis2, both on the client side and the server side. But we did not discuss how the underlying logic works. When you start Axis2, it creates an AxisConfiguration object from the local machine that is considered as the repository. In the case of Axis2 WAR distribution, the repository is <TOMCAT_HOME>webapps/axis2/WEB-INF (if you are using Tomcat). So, when you start Axis2 in an application server, Axis2 automatically selects the WEB-INF directory as the repository. This approach is known as "file system-based AxisConfigurators", in which the Axis2 configuration is created using a file system.

In the same way, you can create an Axis2 system by using a remote location as well, or even by using a database. In the Axis2 distribution, there is built-in support for URL-based and file-based Axis2 configuration creation. The following code demonstrates how to create an Axis2 system by using the file system:

ConfigurationContext...