}
public void testOneway() throws Exception {
URL wsdl = getClass().getResource("/wsdl/hello_world.wsdl");
assertNotNull(wsdl);
SOAPService service1 = new SOAPService(wsdl, new QName(
"http://apache.org/hello_world_soap_http", "SOAPService"));
QName endpoint = new QName("http://apache.org/hello_world_soap_http", "SoapPort");
service1.addPort(endpoint,
SOAPBinding.SOAP12HTTP_BINDING, "http://localhost:19000/SoapContext/SoapPort");
Greeter greeter = service1.getPort(endpoint, Greeter.class);
ClientProxy.getClient(greeter).getInInterceptors().add(new LoggingInInterceptor());
ClientProxy.getClient(greeter).getOutInterceptors().add(new LoggingOutInterceptor());
greeter.greetMeOneWay("test oneway");
// Need to sleep a while as Camel is using Async Engine,
// we need to make sure the camel context is not shutdown rightly.