// Scala val transport = new THttpClient(url) val protocol = new TBinaryProtocol(transport) val client = new MyService.Client(protocol) transport.open() val output = client.getSomeMethod(input) transport.close()
TBinaryProtocol(sendTransport) val recvTransport = new TMemoryInputTransport() val recvProtocol = new TBinaryProtocol(recvTransport) val client = new MyService.Client(recvProtocol, sendProtocol) sendTransport.open() recvTransport.open()