tm.initialize();
tm.register(clientTrans);
ObjectServiceFactory sf = new ObjectServiceFactory(tm);
sf.addSoap11Transport(XMPPTransport.BINDING_ID);
Service serviceModel = sf.create(Echo.class);
Client client = new Client(clientTrans, serviceModel, id + "/Echo");
client.setTimeout(10000);
OperationInfo op = serviceModel.getServiceInfo().getOperation("echo");
Object[] response = client.invoke(op, new Object[] {"hello"});