assertNotNull(service);
String response1 = "Hello ";
String response2 = "Bonjour";
try {
Greeter greeter = service.getPort(barePortName, Greeter.class);
updateAddressPort(greeter, REG_PORT);
String username = System.getProperty("user.name");
String reply = greeter.greetMe(username);
assertNotNull("no response received from service", reply);
assertEquals(response1 + username, reply);
reply = greeter.sayHi();
assertNotNull("no response received from service", reply);
assertEquals(response2, reply);
MyComplexStructType argument = new MyComplexStructType();
MyComplexStructType retVal = null;
String str1 = "this is element 1";
String str2 = "this is element 2";
int int1 = 42;
argument.setElem1(str1);
argument.setElem2(str2);
argument.setElem3(int1);
retVal = greeter.sendReceiveData(argument);
assertEquals(str1, retVal.getElem1());
assertEquals(str2, retVal.getElem2());
assertEquals(int1, retVal.getElem3());