Axis: Difference between revisions
| Line 19: | Line 19: | ||
==Sources== | ==Sources== | ||
* [http://www.torsten-horn.de/techdocs/java-soap-axis.htm SOAP Web Services mit Axis] | |||
Revision as of 12:49, 23 May 2008
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
- 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.
- deploy the webservice e.g. by ant with an axis-admin task (s. project 'uweheuer', build.xml, target deploy_laptop_webservices)