Apache Axis

Apache Axis

Infobox Software
name = Apache Axis



caption =
developer = Apache Software Foundation
latest release version = 1.4
latest release date = release date|2006|04|22
operating system = Cross-platform
programming language = Java and a C++
genre = Web service
license = Apache License 2.0
website = http://ws.apache.org/axis

Apache Axis is an open source, XML based Web service framework. It consists of a Java and a C++ implementation of the SOAP server, and various utilities and APIs for generating and deploying Web service applications. Using Apache Axis, developers can create interoperable, distributed computing applications. Axis is developed under the auspices of the Apache Software Foundation.

Axis for Java

When using the Java version of Axis there are two ways to expose Java code as webservice. The easiest one is to use Axis native JWS (Java Web Service) files.Another way is to use custom deployment. Custom deployment enables you to customize resources that should be exposed as webservice.

See also Apache Axis2.

JWS Webservice creation

JWS files contain Java class source code that should be exposed as webservice. The main difference between an ordinary java file and jws file is the file extension. Another difference is that jws files are deployed as source code and not compiled class files.

The following example is taken from http://ws.apache.org/axis/java/user-guide.html#PublishingWebServicesWithAxis.It will expose methods "add" and "subtract" of class Calculator. public class Calculator { public int add(int i1, int i2) { return i1 + i2; } public int subtract(int i1, int i2) { return i1 - i2; } }

JWS webservice deployment

Once the Axis servlet is deployed, you need only to copy the jws file to the Axis directory on the server. This will work if you are using a
Apache Tomcat container. In the case that you are using another web container, custom WAR archive creation will be required.

JWS webservice access

JWS webservice is accessible using the URL "http://localhost:8080/axis/Calculator.jws". If you are running a custom configuration of Apache Tomcat or a different container, the URL might be different.

Custom deployed webservice

Custom webservice deployment requires a specific deployment descriptor called WSDD (Web Service Deployment Descriptor) syntax. It can be used to specify resources that should be exposed as webservices. Current version (1.3) supports
* RPC services
* EJB - stateless (Enterprise Java Bean)

Automated generation of WSDL

When a Webservice is exposed using Axis it will generate a WSDL file automatically when accessing the webservice URL with ?WSDL appended to it.

Axis for C++

An example for implementing and deploying a simple web-service with the C++ version of Axis can be found in the Axis-CPP Tutorial (link in the Reference section below).

The steps necessary are:
* Create the wsdl file
* Generate client and server stubs using wsdl2ws
* Provide the server side web service implementation (e.g. the add method of the calculator service)
* Build the server side code and update the generated deploy.wsdd with the .dll path
* Deploy the binaries to the directory specified in the wsdd
* Build client
* Run and enjoy...

For more information on the individual steps go directly to the tutorial.

Related technologies

* Apache Axis2 - re-design/write of Axis
* Java Web Services Development Pack - web services framework
* Apache CXF - other Apache web services framework (old XFire & Celtix)
* XML Interface for Network Services - RPC/web services framework
* Web Services Invocation Framework - Java API for invoking Web services
* webMethods Glue - commercial web services enabling product
* AlchemySOAP - open source C++ web services framework

External links

* [http://ws.apache.org/axis/ Apache AXIS Homepage] at the Apache Software Foundation
* [http://ws.apache.org/axis/cpp/ Apache AXIS C++ Homepage] at the Apache Software Foundation
* [http://ws.apache.org/axis/cpp/arch/End-2-End-Sample.html] Axis-C++ tutorial at the Apache Software Foundation
* [http://ws.apache.org/axis2/ Apache Axis2/Java] at the Apache Software Foundation
* [http://ws.apache.org/axis2/c/ Apache Axis2/C] at the Apache Software Foundation
* [http://www.stylusstudio.com/open_ws_framework.html Stylus Studio Tools for Apache AXIS] , see also Stylus Studio


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Apache Axis — Entwickler Apache Software Foundation Aktuelle Version Apache Axis: 1.4 Apache Axis2: 1.5.3 (Apache Axis: 22. April 200 …   Deutsch Wikipedia

  • Apache Axis — Pour les articles homonymes, voir Axis. Axis est un projet de l Apache Software Foundation. C est un package Java libre qui fournit : un environnement pouvant soit fonctionner comme un serveur SOAP/Rest[1] indépendant soit comme un plug in… …   Wikipédia en Français

  • Apache Axis2 — Apache Axis Entwickler: Apache Software Foundation Ak …   Deutsch Wikipedia

  • Axis (informatique) — Apache Axis Pour les articles homonymes, voir Axis. Axis est un projet de Apache Software Foundation. C est un package Java libre qui fournit : un environnement pouvant soit fonctionner comme un serveur SOAP indépendant soit comme un plug in …   Wikipédia en Français

  • Apache Geronimo — Standard Startseite des Apache Geronimo Basisdaten Entwickler …   Deutsch Wikipedia

  • Axis — may refer to:In politics: *A parameter used in describing political spectrum *Axis of evil, U.S. President George W. Bush s description of Iran, Iraq, and North Korea *Axis powers of World War IIIn science: *Axis (anatomy), the second cervical… …   Wikipedia

  • Apache License — Logo de Apache Software Foundation Autor Apache Software Foundation Versión 2.0 …   Wikipedia Español

  • Apache CXF — Entwickler Apache Software Foundation Aktuelle Version 2.4.0 (18. April 2011) Betriebssystem plattformübergreifend Programmier­sprache Java …   Deutsch Wikipedia

  • Axis — steht für: Axis (Halswirbel), der zweite Halswirbel Axis (Holzschnitzerei), Kreidegrund auf spätmittelalterlichen Holzplastiken Apache Axis, eine SOAP Engine New Axis Airways, eine französische Fluggesellschaft Axis Allies, ein Brettspiel Axis of …   Deutsch Wikipedia

  • Axis — Saltar a navegación, búsqueda El término axis puede referirse a: la vértebra cervical axis; el género de ciervos Axis; la ONG peruana AXISPERU el sello discográfico Axis; el grupo de rock mexicano Axis. En servicios web, Apache Axis es una… …   Wikipedia Español

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”