Axis: Difference between revisions

From Wiki RB4
Line 13: Line 13:


== Adding a WebService to a WebApp ==
== Adding a WebService to a WebApp ==
Add the Axis-Libs to the lib directory.
#Add axis.jar, wsdl.jar, saaj.jar, jaxrpc.jar and the other dependent libraries to your WAR file.
#Copy all the Axis Servlet declarations and mappings from axis/WEB-INF/web.xml and add them to your own web.xml
#Build and deploy your webapp.
#Run the Axis AdminClient against your own webapp, instead of Axis, by changing the URL you invoke it with.

Revision as of 20:29, 8 May 2007

Basics

Apache Axis is an Open Source SOAP server and client.. But Axis isn't just a SOAP engine -- it also includes:

  • a simple stand-alone server,
  • a server which plugs into servlet engines such as Tomcat,
  • extensive support for the Web Service Description Language (WSDL),
  • emitter tooling that generates Java classes from WSDL.
  • some sample programs, and
  • a tool for monitoring TCP/IP packets.

Axis handles the magic of converting Java objects to SOAP data when it sends it over the wire or receives results. SOAP Faults are sent by the server when something goes wrong; Axis converts these to Java exceptions. Axis is written as a J2EE 1.2 compliant web application, and can be installed on any J2EE compliant servlet (Tomcat 3.2+, Websphere 4+, Weblogic 6+).


Adding a WebService to a WebApp

  1. Add axis.jar, wsdl.jar, saaj.jar, jaxrpc.jar and the other dependent libraries to your WAR file.
  2. Copy all the Axis Servlet declarations and mappings from axis/WEB-INF/web.xml and add them to your own web.xml
  3. Build and deploy your webapp.
  4. Run the Axis AdminClient against your own webapp, instead of Axis, by changing the URL you invoke it with.