Login

FAQ What's New

Your Trail

jndi > directory > jndi > axis

Table of Contents [show]

Keywords

SOAP, WSDD, WSDL, jws

Copyright Information

[A]

1 Introduction

Apache Axis is an implementation of the SOAP ("Simple Object Access Protocol") submission to W3C. Axis is a framework for providing SOAP-based web services. Currently it has a Java version and a C++ version.

2 Getting Started

There are quite a few manual documents in AXIS Website(http://ws.apache.org/axis)], You may find it easier to start from the [User Guide (http://ws.apache.org/axis/java/user-guide.html)] and try out the examples.

3 Deploying Web Services, by Example

Basically, there are two ways to deploy a web service in Axis: First, you could simply rename your regular .java file to .jws and put it in your Axis deployement directory. The magic of .jws-based deployment lies in the web.xml file. Take a look at $TOMCAT/axis/WEB-INF/web.xml you'll find the following servlet config

  <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>*.jws</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
  </servlet-mapping>
Yup, all .jws requests are redirected to AxisServlet, where the web service calls are processed. Same thing with services deployed with WSDD Your Axis deployment directory is usually webapps/axis/. Or, you could use Web Service Deployment Descriptor WSDD, which gives you more control over how the service is deployed, and even further Web Service Description Language (WSDL), which uses WSDD and also simplifies client programming.

V.E.R.A Acronyms

City Data

Webster Unabridged

English-Chinese