World Library  
Flag as Inappropriate
Email this Article

Apache Axis

Article Id: WHEBN0001888026
Reproduction Date:

Title: Apache Axis  
Author: World Heritage Encyclopedia
Language: English
Subject: Apache Software Foundation, Apache Axis2, List of web service frameworks, Celtix, Web service specifications
Collection: Apache Software Foundation, Web Service Specifications, Web Services
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Apache Axis

Apache Axis
Apache Axis Logo
Developer(s) Apache Software Foundation
Stable release 1.4 / April 22, 2006 (2006-04-22)
Written in Java and C++
Operating system Cross-platform
Type Web service
License Apache License 2.0
Website http://ws.apache.org/axis

Apache Axis (Apache eXtensible Interaction System) 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 development takes place under the auspices of the Apache Software Foundation.

Contents

  • Axis for Java 1
    • JWS Web service creation 1.1
      • JWS Web service deployment 1.1.1
      • JWS Web service access 1.1.2
    • Custom deployed Web service 1.2
      • Automated generation of WSDL 1.2.1
  • Axis for C++ 2
  • Related technologies 3
  • See also 4
  • External links 5

Axis for Java

When using the Java version of Axis there are two ways to expose Java code as Web service. 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 Web services.

See also Apache Axis2.

JWS Web service creation

JWS files contain Java class source code that should be exposed as Web service. 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://axis.apache.org/axis/java/user-guide.html#Publishing_Web_Services_with_Axis . 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 Web service 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 an Apache Tomcat container. In the case that you are using another web container, custom WAR archive creation will be required .

JWS Web service access

JWS Web service 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 Web service

Custom Web service 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 Web services. Current version (1.3) supports

Automated generation of WSDL

When a Web service is exposed using Axis it will generate a WSDL file automatically when accessing the Web service 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

See also

External links

  • Apache Axis Homepage at the Apache Software Foundation
  • Apache Axis C++ Homepage at the Apache Software Foundation
  • Axis-C++ tutorial at the Apache Software Foundation
  • Apache Axis2/Java at the Apache Software Foundation
  • Apache Axis2/C at the Apache Software Foundation
  • Stylus Studio Tools for Apache Axis, see also Stylus Studio
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.