assertNotNull(wsdl);
XMLService service = new XMLService(wsdl, serviceName);
assertNotNull(service);
Greeter greeter = service.getPort(portName, Greeter.class);
String response1 = new String("Hello Milestone-");
String response2 = new String("Bonjour");
MyComplexStruct argument = new MyComplexStruct();
MyComplexStruct retVal = null;
try {
for (int idx = 0; idx < 5; idx++) {
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);
argument.setElem1("Hello Milestone-" + idx);
argument.setElem2("Bonjour-" + idx);
argument.setElem3(idx);
retVal = null;
retVal = greeter.sendReceiveData(argument);
assertNotNull("no response received from service", retVal);
assertTrue(argument.getElem1().equals(retVal.getElem1()));
assertTrue(argument.getElem2().equals(retVal.getElem2()));
assertTrue(argument.getElem3() == retVal.getElem3());