Homework 3
Due Wednesday October 19
Preparation: Read Chapter 5
To do:
- Install Tomcat and Apache Axis
- Using the instant deployment method:
- Implement InventoryCheck class (listing 3.2)
- Don't need STConstants
- Just load product database from xml file
- Save as InventoryCheck.jws in jakarta-tomcat-5.5.7\webapps\axis
(or your {CATALINA-HOME})
- view from http://localhost:8080/axis/InventoryCheck.jws?wsdl
- Use Call Object and Dynamic Invocation to write a client
program. Include a loop so the user can input sku and quantity.
- Generate a stub as described on page 254.
- Create a class to test your stub as described on page 255.
- Deploy your service using a wsdd, as described on page 267.
- Create a BadPartNumberFault that extends AxisFault. Create
a version of InventoryCheck that throws a BadPartNumber fault if the
product doesn't exist. See pages 288-290 for some (rough)
details.
- Implement the Email Handler on page 293.