4546474849505152535455
resp = port.greetMe(System.getProperty("user.name")); System.out.println("Server responded with: " + resp); System.out.println(); System.out.println("Invoking greetMeOneWay..."); port.greetMeOneWay(System.getProperty("user.name")); System.out.println("No response from server as method is OneWay"); System.out.println(); try { System.out.println("Invoking pingMe, expecting exception...");
4849505152535455565758
String reply = greeter.sayHi(); assertNotNull("no response received from service", reply); assertEquals(response2, reply); greeter.greetMeOneWay("Milestone-" + idx); } } catch (UndeclaredThrowableException ex) { throw (Exception)ex.getCause(); } }