Axis 2 [Part 1]

Last update on October 22, 2009 01:33 PM by jak58
Published by jak58

Axis 2 [Part 1]





Intro


The concept of Web service revolves around the three following acronyms:
  • SOAP (Simple Object Access Protocol): this is a protocol for independent inter-application exchange of any platform. The exchange format is based on XML. In other words the use of SOAP service implements ASCII flux (in XML tags )and transported in the HTTP protocol.
  • WSDL (Web Services Description Language) describes the XML Web services by specifying the methods that can be invoked, their signatures and the access point (URL, port, etc. ..). That, somehow, equivalent to the IDL for the CORBA distributed programming.
  • UDDI (Universal Description, Discovery and Integration) normalizes a distributed directory solution.


Axis is a tool for creating and deploying web services, produced by the Apache Software Foundation. It is a free Java package that provides:
  • an environment that can either function as an independent SOAP server or as a plug-in servlet engine (Tomcat),
  • an API to develop web services SOAP,RPC or based on SOAP messages,
  • support different transport layers: HTTP, FTP, SMTP, POP and IMAP ...
  • serialization / deserialization of Java objects automatically in SOAP messages
  • tools to automatically create the corresponding WSDL to Java classes or vice versa for creating Java classes based on WSDL.
  • tools to deploy, test and monitor web-services.


Axis 2.0 is a completely redesigned tool, which aims to be more efficient, more modular and more XML-oriented than the previous version. A number of modules are being developed for security, transactions ...

Runtime



The structure of exchange between the Web service and client application can be represented as follows:

Axis2 : WSDL2Java


Axis allows the conversion of a WSDL file into a set of Java classes
  • To represent the content of messages
  • A complete skeleton class to implement the various operations
  • Eventually the middle class that will handle the management of SOAP message (Stubs)


Axis2: Databinding framework ADB

Converting XMLto an object:
  • Expanded mode (expanded mode)
    • A class for each external component: Not nested in a complexType
    • A class for each complexType named
    • The mode that is systematically used by the compiler command line
  • Wrapped Mode ( "Integrated" Mode)
    • A class containing all classes representing XML documents to be processed

Axis versions


On the site of apache there is a standard binary distribution of Axis containing all jars needed at runtime and compiling of Axis and also the scripts allowing easy deployment of the application:click here

Notes


Thanks to n00r for this tip.
Best answers for « Axis 2 » in :
PS/2 connector Show PS/2 connector The PS/2 connector (mini-DIN6 format) is mainly used to connect computers to keyboards and mice. Pins Pin number Function 1 Clock 2 Ground 3 Data 4 Ground (or not...
[Vista] Unable to install Service Pack 2 Show[Vista] Unable to install Service Pack 2 You try to install Service Pack 2 (SP2) for Vista and you get an error (0x80070057), here's the solution: Uninstall the 3 latest security updates following: KB970653 KB972036 KB973874...
Call of duty 2 (COD2) Bugs ShowCall of duty 2 (COD2) Bugs Call of duty 2 bugs on VISTA Patch Installation Direct X 10 configurations Multiplayer Mode You have problems running COD 2 on Vista? This is because this FPS game was released before vista So we will...
Virtual DJ – Mix on more than 2 decks ShowVirtual DJ – Mix on more than 2 decks You can mix on more than two decks on Virtual DJ on your pc. This tip will show you how! Download Virtual DJ here: http://www.virtualdj.com/download.html In order to mix on 4 decks you will have...
Download Free Video 2 Screensaver ShowIf you are fed up with the screensavers that you have on your computer or those that you see on the internet, the best solution is to create your own screensavers. Free Video 2 Screensaver is a freeware which you will allow you to create...