예제 #1
0
 public void submitBooking_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   submitBooking_args args = new submitBooking_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   submitBooking_result result = new submitBooking_result();
   try {
     result.Success = iface_.submitBooking(args.BookingParams);
   } catch (SavariWala.ServerError err) {
     result.Err = err;
   }
   oprot.WriteMessageBegin(new TMessage("submitBooking", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
예제 #2
0
 public long recv_submitBooking()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   submitBooking_result result = new submitBooking_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.err) {
     throw result.Err;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "submitBooking failed: unknown result");
 }