Example #1
0
 public VerifyItemResponse recv_VerifyItem()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
       TApplicationException x = TApplicationException.Read(iprot_);
       iprot_.ReadMessageEnd();
       throw x;
     }
     VerifyItem_result result = new VerifyItem_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
       return result.Success;
     }
     if (result.__isset.te) {
       throw result.Te;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "VerifyItem failed: unknown result");
 }
Example #2
0
 public void VerifyItem_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     VerifyItem_args args = new VerifyItem_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     VerifyItem_result result = new VerifyItem_result();
     try {
       result.Success = iface_.VerifyItem(args.Request);
     } catch (CBT.GEP.Thrift.Common.ThriftException te) {
       result.Te = te;
     }
     oprot.WriteMessageBegin(new TMessage("VerifyItem", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }