// Check to make sure that the SOAP Body and Timestamp were signed
DefaultCryptoCoverageChecker coverageChecker = new DefaultCryptoCoverageChecker();
bus.getInInterceptors().add(coverageChecker);
GreeterService service = new GreeterService();
Greeter port = service.getGreeterPort();
String[] names = new String[] {"Anne", "Bill", "Chris", "Scott"};
// make a sequence of 4 invocations
for (int i = 0; i < 4; i++) {
System.out.println("Invoking greetMe...");
String response = port.greetMe(names[i]);
System.out.println("response: " + response + "\n");
}
if (port instanceof Closeable) {
((Closeable)port).close();