public void TestSendHttpResearch_Process(int seqid, TProtocol iprot, TProtocol oprot) { TestSendHttpResearch_args args = new TestSendHttpResearch_args(); args.Read(iprot); iprot.ReadMessageEnd(); TestSendHttpResearch_result result = new TestSendHttpResearch_result(); result.Success = iface_.TestSendHttpResearch(args.Parameter1, args.Parameter2); oprot.WriteMessageBegin(new TMessage("TestSendHttpResearch", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public string recv_TestSendHttpResearch() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } TestSendHttpResearch_result result = new TestSendHttpResearch_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "TestSendHttpResearch failed: unknown result"); }