Axis

From Wiki RB4
Revision as of 20:47, 5 December 2011 by UweHeuer (talk | contribs) (→‎Axis2)

Axis2

  • extract axis2-1.6.1-bin.zip to C:\Uwes\java\axis2-1.6.1
  • axis2-1.6.1-war.zip to axis2.war
  • copy axis2.war to C:\Uwes\java\jboss\jboss-as-web-7.0.2.Final\standalone\deployments
  • edit axis2.xml in axis2.war\WEB-INF\conf (to run on JBoss 4.2.2) and copy C:\Uwes\eclipse\workspace\seaminaction\opt\jboss-as-4.2.2.GA\server\default\deploy

Axis1

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. deploy the webservice e.g. by ant with an axis-admin task (s. project 'uweheuer', build.xml, target deploy_laptop_webservices)

Sources