SOAPService service = new SOAPService();
assertNotNull(service);
try {
Greeter greeter = service.getPort(portName, Greeter.class);
updateAddressPort(greeter, PORT);
GreetMe1 request = new GreetMe1();
request.setRequestType("Bonjour");
GreetMeResponse greeting = greeter.greetMe(request);
assertNotNull("no response received from service", greeting);
assertEquals("Hello Bonjour", greeting.getResponseType());
String reply = greeter.sayHi();
assertNotNull("no response received from service", reply);
assertEquals("Bonjour", reply);
try {
greeter.pingMe();
fail("expected exception not caught");
} catch (org.apache.hello_world_mixedstyle.PingMeFault f) {
//ignore, expected
}
} catch (UndeclaredThrowableException ex) {