private static void init(String zip2geoWSDL,
String addressbookWSDL,
String serviceAvailabilityWSDL) throws Exception {
// create a service factory
WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
// initialize the address book stub
// parse the WSDL
WSIFService service =
factory.getService(addressbookWSDL,null,null,
"http://wsifservice.addressbook/",
"AddressBook");
// create the stub
addressBook = (AddressBook) service.getStub(AddressBook.class);
// initialize the zip2geo stub
// parse the WSDL
service = factory.getService(zip2geoWSDL,null,null,"http://ws.cdyne.com",
"Zip2GeoSoap");
// map types
service.mapType(new QName("http://ws.cdyne.com", "LatLongReturn"),
Class.forName("complexsoap.client.stub.com.cdyne.ws.LatLongReturn"));
// create the stub
zip2geo = (Zip2GeoSoap) service.getStub(Zip2GeoSoap.class);
// initialize the service availability stub
// parse the WSDL
service = factory.getService(serviceAvailabilityWSDL,null,null,
"http://xml.apache.org/axis/wsif/samples/jms/ServiceAvailability",
"CheckAvailabilityPortType");
// create the stub
serviceAvailability =
(CheckAvailabilityPortType) service.getStub(CheckAvailabilityPortType.class);