Quickstart Apache Axis2

Quickstart Apache Axis2
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 35%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • 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

Book Details

Language : English
Paperback : 180 pages [ 235mm x 191mm ]
Release Date : May 2008
ISBN : 1847192866
ISBN 13 : 9781847192868
Author(s) : Deepal Jayasinghe
Topics and Technologies : All Books, Web Development, Java, Open Source

Table of Contents

Chapter 1: Introduction
Chapter 2: Looking into Axis2
Chapter 3: AXIOM
Chapter 4: Execution Chain
Chapter 5: Hacking Deployment
Chapter 6: Information Model
Chapter 7: Writing an Axis2 Service
Chapter 8: Writing an Axis2 Module
Chapter 9: Client API
Chapter 10: Session Management
Chapter 11: Contract First or Code First
Chapter 12: Advanced Topics
  • Chapter 1: Introduction
    • Web Service History
    • Web Services Overview
      • How Do Organizations Move into Web Services?
    • Web Services Model
    • Web Services Standards
      • XML-RPC
      • SOAP
      • Web Services Addressing (WS-Addressing)
      • Service Description
        • Web Services Description Language (WSDL)
    • Web Services Life Cycle
    • Apache Web Service Stack
    • Why Axis2?
    • Download and Install Axis2
      • Binary Distribution
      • WAR Distribution
      • Source Distribution
      • JAR Distribution
    • Summary
  • Core Modules
    • XML Processing Model
    • SOAP Processing Model
    • Information Model
    • Deployment Model
    • Client API
    • Transports
  • Other Modules
    • Code Generation
    • Data Binding
  • Extensible Nature of Axis2
    • Service Extension of the Module
    • Custom Deployers
    • Message Receivers
  • Summary
  • Chapter 3: AXIOM
    • Overview and Features
      • What is Pull Parsing?
    • AXIOM—Architecture
    • Working with AXIOM
      • Creating an AXIOM
      • Creating an AXIOM from an Input Stream
      • Creating an AXIOM Using a String
      • Creating an AXIOM Programmatically
      • Adding a Child Node and Attributes
      • Working with OM Namespaces
      • Working with Attributes
      • Traversing the AXIOM Tree
      • Serialization
      • Advanced Operations with AXIOM
      • Using OMNavigator for Traversing
      • Xpath Navigation
      • Accessing the Pull-Parser
      • AXIOM and SOAP
    • Summary
  • Chapter 4: Execution Chain
    • Handler
      • Writing a Simple Handler
    • Phase
      • Types of Phases
        • Global Phase
        • Operation Phase
      • Phase Rules
        • Phase Name
        • phaseFirst
        • phaseLast
        • before
        • after
        • after and before
      • Invalid Phase Rules
      • Flow
    • Module Engagement and Dynamic Execution Chain
    • Special Handlers in the Chain
      • TransportReceiver
      • Dispatchers
      • MessageReceiver
      • TransportSender
  • Summary
  • Chapter 5: Hacking Deployment
    • What's New in Axis2 Deployment?
    • J2EE-like Deployment Mechanism
    • Hot Deployment and Hot Update
    • Repository
    • Change in the Way of Deploying Handlers (Modules)
    • New Deployment Descriptors
      • Global Descriptor (axis2.xml)
      • Service Descriptor (services.xml)
      • Module Descriptor (module.xml)
    • Available Deployment Options
      • Archive-Based Deployment
      • Directory-Based Deployment
      • Deploying a Service Programmatically
      • POJO Deployment
      • Deploying and Running a Service in One Line
    • Summary
  • Chapter 6: Information Model
    • Introduction
    • Axis2 Static Data
      • AxisConfiguration
      • Parameters
      • MessageFormatters and MessageBuilders
      • TransportReceiver and TransportSender
      • Flows and PhaseOrder
    • AxisModule
    • Service Description Hierarchy
      • AxisServiceGroup
      • AxisService
      • AxisOperation
      • AxisMessage
    • Axis2 Contexts
      • ConfigurationContext
      • ServiceGroupContext
      • ServiceContext
      • OperationContext
      • MessageContext
    • Summary
  • Chapter 7: Writing an Axis2 Service
    • Introduction
    • Code-First Approach
      • Single-Class POJO Approach
      • POJO with Class Having Package Name
    • Deploying a Service Using a Service Archive File
      • Writing the services.xml File
      • Service Implementation Class
      • Specifying the Message Receiver
      • Creating a Service Archive File
      • Different Ways of Specifying Message Receivers
        • Specify Message Receivers at the Operation Level
        • Specify Message Receivers at the Service Level for the Whole Service
        • Specify Service-Level Message Receivers and Override Them with Operations
      • Service Group and Single Service
      • Adding Third-Party Resources
      • Service WSDL and Schemas
    • Contract-First Approach—Starting from WSDL
      • Generating Code
      • Filling the Service Skeleton
      • Running the Ant Build File
      • Deploying the Ant-Created Service Archive File
    • Summary
  • Chapter 8: Writing an Axis2 Module
    • Introduction
    • Module Concept
    • Module Structure
      • Module Configuration File (module.xml)
        • Handlers and Phase Rules
        • Parameters
    • Module Implementation Class
      • WS-Policy
      • Endpoints
  • Writing the module.xml File
  • Deploying and Engaging the Module
    • Advanced module.xml
  • Summary
  • Chapter 9: Client API
    • Introduction
    • Blocking and Non-Blocking Invocation
    • Inside Axis2 Client API
      • ServiceClient API
        • Available Ways of Creating a ServiceClient
        • ServiceClient with a Working Sample
      • Working with OperationClient
    • Summary
  • Chapter 10: Session Management
    • Introduction
    • Stateless Nature of Axis2
    • Types of Sessions in Axis2
    • Session Creation and Session Destruction
      • Java Reflection
      • Using the Optional Interface
      • Accessing MessageContext
    • Request Session Scope
    • SOAP Session Scope
    • Transport Session Scope
    • Application Scope
      • Managing Session Using ServiceClient
    • Summary
  • Chapter 11: Contract First or Code First
    • Introduction
    • Code-First Approach
    • Why Not the Code-First Approach?
    • Contract-First Approach: Why is it So Special?
    • Code-Generation Support in Axis2
      • Sample 1: Use Default Code-Generation Options to Generate Server-Side Code
      • Sample 2: Use a Different Databinding
      • Sample 3: Generate an Interface Instead of a Concrete Class
      • Sample 4: Generating Client-Side Code
    • Summary
  • Chapter 12: Advanced Topics
    • REST—Representational State Transfer
      • Features of REST
      • REST Services in Axis2
    • MTOM—Message Transmission Optimization Mechanism
      • MTOM on the Client Side
      • MTOM on the Service Side
    • Axis2 ClassLoader Hierarchy
    • Sharing Libraries Using the Class Loader Hierarchy
    • Axis2 Configurator
    • Deploying Axis2 in Various Application Servers
    • Summary

Deepal Jayasinghe

Deepal Jayasinghe is a Computer Science PhD student at Georgia Institute of Technology and he is affiliated with Center for Experimental Research in Computer Systems.  Prior to joining Georgia Tech, he was a Technical Lead at WSO2 Inc., an open-source software development company that creates middleware platforms for Web services.  Deepal has over 6 years of experiences with SOA and Web services in addition to being a contributing member of Apache Axis2 project since its inception.  He is a key architect and developer of the Apache Axis2 Web service project and has led a number of releases. In addition to Axis2, he has made major contributions to the Apache Synapse, Apache Axiom and Apache XMLSchema projects. Deepal has written more than 30 technical magazine articles, research papers and has delivered speeches in various SOA and Web Services conferences. He is an Apache Member and PMC members at several Apache projects. His expertise lay mainly in distributed computing, SOA and Web services, Cloud computing, and performance analysis.  Deepal holds a B.Sc. Engineering degree from the University of Moratuwa, Sri Lanka.

He is reachable at deepalk@gmail.com.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


- 1 submitted: last submission 10 Dec 2012

Errata type: Typo | Page number: 3

"Finally, it discusses deploying Axis2 in various application severs.” should be changed to Finally, it discusses deploying Axis2 in various application servers.”


Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Quickstart Apache Axis2 +    Puppet 3 Cookbook =
50% Off
the second eBook
Price for both: £21.95

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • 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.

Everything you need to create secure, reliable and easy-to-use web services using Apache Axis2. Packed with real-life examples, you will learn how to work with Axis2 in a fast and practical way. You will learn to build SOAP and REST web services and APIs for your web applications.


This is a step by step practical guide for developing web services using Apache Axis2. There are lot of real-life examples, which makes this book a good learning material.


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.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software