Axis2 comparison of five ways to create a service

Source: Internet
Author: User

Axiom:axis2 Object Model,axis2 Model

Axis2 The object model, AXIs2 object Model,axiom, is the basis of AXIS2, and any SOAP message is represented as AXIOM in Axis2. The advantage of AXIOM with respect to other XML representations is that it is based on  , pull   parser technology, while most others are based on   push   parser technology. The main difference between pull and push is that the caller has full control of the parser in the pulling technique and can request the next event, and for push, it triggers the event until the end of the document is reached when the parser continues to process.

Because AXIOM is based on the pull parser technology, it has an on demand build feature that builds the object model only when required, and, if needed, accesses and uses the underlying pull parser directly from the AXIOM without building the object model.

ADB:AXIS2 Databinding Framework AXIS2 Data binding framework

 Jibx:binding XML to Java Code xml convert between files

Five Ways to create a service

Deploy plain old Java Objects (POJO);

Build services using Axiom's omelement;

Generate services using the Axis2 Databinding Framework (ADB);

Use XMLBeans to generate services;

Use JIBX to build the service.

Implementation method

How to create

apply Document Object Model resolution ( message Binding)

Application (data binding framework) parsing

(XML to do)   pluggable data binding

POJOs

Pojo combined with RPC mode

AXIOM

POJOs

Pojo+rpc

Advantages: Write your own client, error-prone, not familiar with WSDL.

Cons: Debugging with this method is not easy

AXIOM

The Axiom API is written from the bottom

AXIOM

No

Advantage: Efficient SOAP message handling

Disadvantage: all of their own realization, not realistic.

ADB

Generated from WSDL

The corresponding framework,

Then fill in the phase

should be logical

AXIOM

ADB

Develop a process that conforms to the software engineering, write the design first, and then implement the interface (write WSDL). Generate code in WSDL without worrying about the underlying invocation.

XMLBeans

AXIOM

Xmlbean (BEA)

Jibx

AXIOM

Jibx

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Axis2 comparison of five ways to create a service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.