Example#2 -- Chapter11 (Web Services Security)

Purpose

This example illustrates:

Prerequisite

You should have J2SE v1.4.x SDK, Apache Tomcat, Apache Axis, VeriSign TSIK and WSSecurity library installed. For testing, Tomcat-4.1.18, Axis-1.1RC2 and TSIK 1.7 was used. Also, set the encironment variables TOMCAT_HOME to Tomcat installation directory and AXIS_HOME to the Axis installation directory.

  c:\ch11\ex1>set TOMCAT_HOME=c:\apache\jakarta-tomcat-4.1.18-LE-jdk14
  c:\ch11\ex1>set AXIS_HOME=c:\apache\axis-1_1RC2

Files

File
Description
StringEchoService2.java A simple class to be deployed as a Web service.
EchoClient.java Client program to invoke the Web service. Has code to set up the client side handler chain.
deploy.wsdd Deployment descriptor for the Web service. Includes statements to set up the service-side handler chain.
undeploy.wsdd Undeployment descriptor for the Web service.
axisadm.bat A simple script to deploy, undeploy and list Web services.
tcpmon.bat A simple script to launch tcpmon utility.
cpappend.bat An utility script to build the CLASSPATH. Used by other scripts.
setenv.bat A simple script to set the CLASSPATH.
cleanup.bat A simple script to delete non-source files.

Execution Steps

Refer to the book J2EE Security for Servlets, EJBs and Web Services.