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