MessageExchange me = client.createInOutExchange();
me.setService(new QName("urn:logicblaze:soa:loanbroker", "LoanBrokerService"));
me.setOperation(new QName("getLoanQuote"));
me.getMessage("in").setContent(new StringSource("<getLoanQuoteRequest xmlns=\"urn:logicblaze:soa:loanbroker\"><ssn>1234341</ssn><amount>100000.0</amount><duration>12</duration></getLoanQuoteRequest>"));
long t0 = System.currentTimeMillis();
client.sendSync(me);
long t1 = System.currentTimeMillis();
if (me.getError() != null) {
throw me.getError();
}
assertEquals(ExchangeStatus.ACTIVE, me.getStatus());