public void InvokeExternalService_Process(int seqid, TProtocol iprot, TProtocol oprot) { InvokeExternalService_args args = new InvokeExternalService_args(); args.Read(iprot); iprot.ReadMessageEnd(); InvokeExternalService_result result = new InvokeExternalService_result(); try { result.Success = iface_.InvokeExternalService(args.DDIPackage, args.ServiceId, args.ServiceParameter); oprot.WriteMessageBegin(new TMessage("InvokeExternalService", TMessageType.Reply, seqid)); result.Write(oprot); } catch (TTransportException) { throw; } catch (Exception ex) { Console.Error.WriteLine("Error occurred in processor:"); Console.Error.WriteLine(ex.ToString()); TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error."); oprot.WriteMessageBegin(new TMessage("InvokeExternalService", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }