JMSGreeterService service = new JMSGreeterService(wsdl, serviceName);
assertNotNull(service);
String response1 = new String("Hello Milestone-");
String response2 = new String("Bonjour");
JMSGreeterPortType greeter = service.getPort(portName, JMSGreeterPortType.class);
for (int idx = 0; idx < 5; idx++) {
greeter.greetMeOneWay("test String");
String greeting = greeter.greetMe("Milestone-" + idx);
assertNotNull("no response received from service", greeting);
String exResponse = response1 + idx;
assertEquals(exResponse, greeting);
String reply = greeter.sayHi();
assertNotNull("no response received from service", reply);
assertEquals(response2, reply);
}
}