请输入您要查询的百科知识:

 

词条 Apache Axis
释义

  1. Axis for Java

     JWS Web service creation  JWS Web service deployment  JWS Web service access  Custom deployed Web service  Automated generation of WSDL 

  2. Axis for C++

  3. Related technologies

  4. References

  5. External links

{{Infobox software
| name = Apache Axis
| logo =
| screenshot =
| 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 C++
| genre = Web service
| license = Apache License 2.0
| website = {{url|//axis.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

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 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

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

  • RPC services
  • EJB - stateless (Enterprise Java Bean)

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

  • 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

References

1. ^{{Cite web|url=http://axis.apache.org/axis/java/user-guide.html#Publishing_Web_Services_with_Axis|title=Apache Axis – User's Guide|website=axis.apache.org|language=en|access-date=2018-11-22}}

External links

  • [//axis.apache.org/ Apache Axis Homepage] at the Apache Software Foundation
{{Apache}}

3 : Apache Software Foundation|Web services|Web service specifications

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 10:59:44