Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Apache Axis

From Wikipedia, the free encyclopedia
Web service framework
Apache Axis
Apache Axis Logo
DeveloperApache Software Foundation
Stable release
1.4 / April 22, 2006; 19 years ago (2006-04-22)
Written inC++,Java
Operating systemCross-platform
TypeWeb service
LicenseApache License 2.0
Websiteaxis.apache.org

Apache Axis (Apache eXtensibleInteractionSystem) is anopen-source,XML basedWeb service framework. It consists of aJava and aC++ implementation of theSOAP server, and various utilities andAPIs for generating and deployingWeb service applications. Using Apache Axis, developers can create interoperable,distributed computing applications. Axis development takes place under the auspices of theApache Software Foundation.

Axis for Java

[edit]

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 alsoApache Axis2.

JWS Web service creation

[edit]

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 assource code and not compiledclass files.

The following example will expose methodsadd andsubtract of class Calculator.[1]

publicclassCalculator{publicintadd(inti1,inti2){returni1+i2;}publicintsubtract(inti1,inti2){returni1-i2;}}

JWS Web service deployment

[edit]

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 anApache Tomcat container. In the case that you are using another web container, customWAR archive creation will be required.

JWS Web service access

[edit]

JWS Web service is accessible using the URL http://localhost:8080/axis/Calculator.jws. If you are running a custom configuration ofApache Tomcat or a different container, the URL might be different.[2]

Custom deployed Web service

[edit]

Custom Web servicedeployment 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]

When a Web service is exposed using Axis, it will generate aWSDL file automatically when accessing the Web service URL with?WSDL appended to it.

Related technologies

[edit]

References

[edit]
  1. ^"Apache Axis – User's Guide".axis.apache.org. Retrieved2018-11-22.
  2. ^"Apache Axis2 – ADB - Howto".axis.apache.org. Retrieved2023-09-19.

External links

[edit]
Top-level
projects
Commons
Incubator
Other projects
Attic
Licenses
Retrieved from "https://en.wikipedia.org/w/index.php?title=Apache_Axis&oldid=1176095138"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp