Пример #1
0
 public void storeModel_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     storeModel_args args = new storeModel_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     storeModel_result result = new storeModel_result();
     try {
         iface_.storeModel(args.ModelInXML, args.Filename);
     } catch (AsapiException asapiEx) {
         result.AsapiEx = asapiEx;
     }
     oprot.WriteMessageBegin(new TMessage("storeModel", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Пример #2
0
 public void send_storeModel(string modelInXML, string filename)
 {
     oprot_.WriteMessageBegin(new TMessage("storeModel", TMessageType.Call, seqid_));
     storeModel_args args = new storeModel_args();
     args.ModelInXML = modelInXML;
     args.Filename = filename;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }