InOut exchange = client.createInOutExchange();
exchange.setService(new QName("http://www.habuma.com/foo", "pingService"));
NormalizedMessage in = exchange.getInMessage();
in.setContent(new StringSource("<ping>Pinging you</ping>"));
LOGGER.info("SENDING; exchange.status={}", exchange.getStatus());
client.sendSync(exchange);
assertNotNull(exchange.getOutMessage());
LOGGER.info("GOT RESPONSE; exchange.out={}", new SourceTransformer().toString(exchange.getOutMessage().getContent()));
client.done(exchange);
// Wait for done to be delivered
Thread.sleep(50);