assertEquals("Hello World", result);
assertEquals("Bonjour default", greeter.sayHi());
}
@Test
public void testInvocationWithSpringBeanAnnotation() throws Exception {
GreeterService service = new GreeterService();
assertNotNull(service);
Greeter greeter = service.getGreeterPort();
BindingProvider bp = (BindingProvider)greeter;
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://localhost:" + PORT + "/SpringBean");
bp.getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
String result = greeter.greetMe("World");