Apache Axis

From Wikipedia, the free encyclopedia
(Redirected from Axis (computer program))
Jump to navigation Jump to search
Apache Axis
DeveloperApache Software Foundation
Stable release
1.4 / April 22, 2006; 19 years ago (2006-04-22)
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Written inC++, Java
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemCross-platform
    TypeWeb service
    LicenseApache License 2.0
    Websiteaxis.apache.org

    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.

    Axis for Java

    [edit | edit source]

    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

    [edit | edit source]

    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 will expose methods add and subtract of class Calculator.[1]

     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

    [edit | edit source]

    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

    [edit | edit source]

    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.[2]

    Custom deployed Web service

    [edit | edit source]

    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

    [edit | edit source]

    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.

    [edit | edit source]

    References

    [edit | edit source]
    1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]