public string recv_getCountryWithRequestIp() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getCountryWithRequestIp_result result = new getCountryWithRequestIp_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.e) { throw result.E; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getCountryWithRequestIp failed: unknown result"); }
public void getCountryWithRequestIp_Process(int seqid, TProtocol iprot, TProtocol oprot) { getCountryWithRequestIp_args args = new getCountryWithRequestIp_args(); args.Read(iprot); iprot.ReadMessageEnd(); getCountryWithRequestIp_result result = new getCountryWithRequestIp_result(); try { result.Success = iface_.getCountryWithRequestIp(); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("getCountryWithRequestIp", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }