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

Working with AXIOM


We can either download the AXIOM binary, or we can build the binary using the source distribution (or from the source repository). AXIOM was started as a part of Axis2, but now, it has its own release cycle. Therefore, we can either download the an AXIOM binary in AXIOM release, or we can find the AXIOM binary in the Axis2 release.

Once we have the AXIOM binary, the next step is to add that binary into our classpath (and the dependent binary files as well). Then, we can start working with AXIOM. If your application has a build system similar to Maven's, then you can add dependency to that, and let it download AXIOM JARs automatically.

Creating an AXIOM

We can create an AXIOM in three ways as shown in the following figure.We can create an AXIOM using either the Pull Event stream or the Push Event stream, or, we can create an AXIOM programatically. In this chapter, we will learn how to create an AXIOM using a Pull Event stream, as well as how to create an AXIOM programmatically...