Free Sample
+ Collection

Quickstart Apache Axis2

Deepal Jayasinghe

A practical guide to creating quality web services
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847192868
Paperback180 pages

About This Book

  • Complete practical guide to Apache Axis 2
  • Using Apache Axis2 to create secure, reliable web services quickly
  • Write Axis2 modules to enhance web services’ security, reliability, robustness and transaction support

Who This Book Is For

This book is for Java developers who are interested in building web services using Apache Axis2. The book presumes that you are familiar with web standards like SOAP, WSDL and XML parsing.

Table of Contents

Chapter 1: Introduction
Web Service History
Web Services Overview
Web Services Model
Web Services Standards
Web Services Life Cycle
Apache Web Service Stack
Why Axis2?
Download and Install Axis2
Chapter 2: Looking into Axis2
Axis2 Architecture
Core Modules
Other Modules
Extensible Nature of Axis2
Chapter 3: AXIOM
Overview and Features
Working with AXIOM
Chapter 4: Execution Chain
Module Engagement and Dynamic Execution Chain
Special Handlers in the Chain
Chapter 5: Hacking Deployment
What's New in Axis2 Deployment?
J2EE-like Deployment Mechanism
Hot Deployment and Hot Update
Change in the Way of Deploying Handlers (Modules)
New Deployment Descriptors
Available Deployment Options
Chapter 6: Information Model
Axis2 Static Data
Service Description Hierarchy
Axis2 Contexts
Chapter 7: Writing an Axis2 Service
Code-First Approach
Deploying a Service Using a Service Archive File
Contract-First Approach—Starting from WSDL
Chapter 8: Writing an Axis2 Module
Module Concept
Module Structure
Module Implementation Class
Writing the module.xml File
Deploying and Engaging the Module
Chapter 9: Client API
Blocking and Non-Blocking Invocation
Inside Axis2 Client API
Chapter 10: Session Management
Stateless Nature of Axis2
Types of Sessions in Axis2
Session Creation and Session Destruction
Request Session Scope
SOAP Session Scope
Transport Session Scope
Application Scope
Chapter 11: Contract First or Code First
Code-First Approach
Why Not the Code-First Approach?
Contract-First Approach: Why is it So Special?
Code-Generation Support in Axis2
Chapter 12: Advanced Topics
REST—Representational State Transfer
MTOM—Message Transmission Optimization Mechanism
Axis2 ClassLoader Hierarchy
Sharing Libraries Using the Class Loader Hierarchy
Axis2 Configurator
Deploying Axis2 in Various Application Servers

What You Will Learn

  • Standards and components of your web services
  • Installing Axis2 core components
  • Understand AXIOM (the Axis2 Object Model), use it to handle SOAP, and learn AXIOM best practices
  • Understanding pipes and interceptors for handling incoming and outgoing messages
  • Creating a flexible framework using runtime module engagement
  • Deploying Axis2 and types of deployments along with examples
  • Creating a complex service like a session-aware service and writing handlers
  • The module concept and writing a sample module
  • Need for quality services and the techniques available in Axis2 to extend the functionality
  • Working with the client API with example use case
  • Session management in a web service framework

In Detail

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.

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.

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.

This book will take you through the basics of web services and Axis2 to the details of Axis2’s architecture.


Read More