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>"));
System.out.println("SENDING; exchange.status="+exchange.getStatus());
client.sendSync(exchange);
assertNotNull(exchange.getOutMessage());
System.out.println("GOT RESPONSE; exchange.out="+new SourceTransformer().toString(exchange.getOutMessage().getContent()));
client.done(exchange);
}
}