Exemple #1
0
        public static TmriResponse WriteDrvBaseTmriRequest(string xtlb, string jkxlh, string jkid, string xml)
        {
            log.Debug("预约写入接口的xtlb:" + xtlb);
            log.Debug("预约写入接口的jkxlh:" + jkxlh);
            log.Debug("预约写入接口的jkid:" + jkid);
            log.Debug("预约写入接口的文本为:" + xml);


            string responseText = "";

            try
            {
                responseText = GetNewService().writeObjectOut(xtlb, jkxlh, jkid, xml);
            }
            catch (Exception exe)
            {
                log.Info(exe);
                return(new TmriResponse());
            }
            log.Debug("调用写入接口返回的文本为:" + responseText);
            TmriResponse response = new TmriResponse();

            response.ParseFromXml(responseText);
            log.Debug("返回的结果code为:" + response.Code);
            return(response);
        }
Exemple #2
0
        public static TmriResponse WriteCarOwnerInfoChange(DrvCarOwnerInfoChangeRequest request)
        {
            log.Debug("预约写入接口的xtlb:" + request.GetXtlb());
            log.Debug("预约写入接口的jkxlh:" + request.GetJkxlh());
            log.Debug("预约写入接口的jkid:" + request.GetJkid());
            log.Debug("预约写入接口的文本为:" + request.ToXml());

            string responseText = "";

            try
            {
                responseText = GetNewService().writeObjectOut(request.GetXtlb(), request.GetJkxlh(), request.GetJkid(), request.ToXml());
            }
            catch (Exception exe)
            {
                log.Info(exe);
                TmriResponse err = new TmriResponse();
                err.Message = exe.Message;
                return(err);
            }
            log.Debug("调用写入接口返回的文本为:" + responseText);
            TmriResponse response = new TmriResponse();

            response.ParseFromXml(responseText);
            return(response);
        }
Exemple #3
0
        public static TmriResponse WriteDrvBaseTmriRequest(DrvBaseTmriRequest request)
        {
            log.Debug("预约写入接口的xtlb:" + request.GetXtlb());
            log.Debug("预约写入接口的jkxlh:" + request.GetJkxlh());
            log.Debug("预约写入接口的jkid:" + request.GetJkid());
            log.Debug("预约写入接口的文本为:" + request.ToXml());
            // TestLog.LogStep();
            TestLog.Log("预约写入接口的文本为:" + request.ToXml());

            string responseText = "";

            try
            {
                responseText = GetNewService().writeObjectOut(request.GetXtlb(), request.GetJkxlh(), request.GetJkid(), request.ToXml());
            }
            catch (Exception exe)
            {
                TestLog.Log("预约写入接口的返回为:" + exe.ToString());
                log.Info(exe);

                return(new TmriResponse());
            }
            log.Debug("调用写入接口" + request.GetXtlb() + ";" + request.GetJkxlh() + ";" + request.GetJkid() + ";" + request.ToXml() + "返回的文本为:" + responseText);
            TestLog.Log("调用写入接口" + request.GetXtlb() + ";" + request.GetJkxlh() + ";" + request.GetJkid() + ";" + request.ToXml() + "返回的文本为:" + responseText);
            TmriResponse response = new TmriResponse();

            response.ParseFromXml(responseText);
            log.Debug("返回的结果code为:" + response.Code);
            //TestLog.Log("返回的结果code为:" + response.Code);
            return(response);
        }
Exemple #4
0
        public static TmriResponse ReadStudentInfo(DrvStudentInfoRequest request)
        {
            string responseText = "";

            try
            {
                responseText = GetNewService().queryObjectOut(request.GetXtlb(), request.GetJkxlh(), request.GetJkid(), request.ToXml());
            }
            catch (Exception exe)
            {
                log.Info(exe);
                TmriResponse err = new TmriResponse();
                err.Message = exe.Message;
                return(err);
            }
            TmriResponse response = new TmriResponse();

            response.ParseFromXml(responseText);
            return(response);
        }
        public static TmriResponse WritePersonInfoChange(DrvPresonInfoChangeRequest request)
        {
            log.Debug("预约写入接口的xtlb:" + request.GetXtlb());
            log.Debug("预约写入接口的jkxlh:" + request.GetJkxlh());
            log.Debug("预约写入接口的jkid:" + request.GetJkid());
            log.Debug("预约写入接口的文本为:" + request.ToXml());

            string responseText = "";
            try
            {
                responseText = GetNewService().writeObjectOut(request.GetXtlb(), request.GetJkxlh(), request.GetJkid(), request.ToXml());
            }
            catch (Exception exe)
            {
                log.Info(exe);
                TmriResponse err = new TmriResponse();
                err.Message = exe.Message;
                return err;
            }
            log.Debug("调用写入接口返回的文本为:" + responseText);
            TmriResponse response = new TmriResponse();
            response.ParseFromXml(responseText);
            return response;
        }
        public static TmriResponse WriteDrvBaseTmriRequest(DrvBaseTmriRequest request)
        {
            log.Debug("预约写入接口的xtlb:" + request.GetXtlb());
            log.Debug("预约写入接口的jkxlh:" + request.GetJkxlh());
            log.Debug("预约写入接口的jkid:" + request.GetJkid());
            log.Debug("预约写入接口的文本为:" + request.ToXml());
               // TestLog.LogStep();
            TestLog.Log("预约写入接口的文本为:" + request.ToXml());

            string responseText = "";
            try
            {
                responseText = GetNewService().writeObjectOut(request.GetXtlb(), request.GetJkxlh(), request.GetJkid(), request.ToXml());
            }
            catch (Exception exe)
            {
                TestLog.Log("预约写入接口的返回为:" + exe.ToString());
                log.Info(exe);

                return new TmriResponse();
            }
            log.Debug("调用写入接口" + request.GetXtlb() + ";" + request.GetJkxlh() + ";" + request.GetJkid() + ";" + request.ToXml() + "返回的文本为:" + responseText);
            TestLog.Log("调用写入接口" + request.GetXtlb() + ";" + request.GetJkxlh() + ";" + request.GetJkid() + ";" + request.ToXml() + "返回的文本为:" + responseText);
            TmriResponse response = new TmriResponse();
            response.ParseFromXml(responseText);
            log.Debug("返回的结果code为:"+response.Code);
            //TestLog.Log("返回的结果code为:" + response.Code);
            return response;
        }
        public static TmriResponse WriteDrvBaseTmriRequest(string xtlb,string jkxlh,string jkid,string xml)
        {
            log.Debug("预约写入接口的xtlb:" + xtlb);
            log.Debug("预约写入接口的jkxlh:" + jkxlh);
            log.Debug("预约写入接口的jkid:" + jkid);
            log.Debug("预约写入接口的文本为:" + xml);

            string responseText = "";
            try
            {
                responseText = GetNewService().writeObjectOut(xtlb,jkxlh,jkid,xml);
            }
            catch (Exception exe)
            {
                log.Info(exe);
                return new TmriResponse();
            }
            log.Debug("调用写入接口返回的文本为:" + responseText);
            TmriResponse response = new TmriResponse();
            response.ParseFromXml(responseText);
            log.Debug("返回的结果code为:" + response.Code);
            return response;
        }
 public static TmriResponse ReadStudentInfo(DrvStudentInfoRequest request)
 {
     string responseText = "";
     try
     {
         responseText = GetNewService().queryObjectOut(request.GetXtlb(), request.GetJkxlh(), request.GetJkid(), request.ToXml());
     }
     catch (Exception exe)
     {
         log.Info(exe);
         TmriResponse err = new TmriResponse();
         err.Message = exe.Message;
         return err;
     }
     TmriResponse response = new TmriResponse();
     response.ParseFromXml(responseText);
     return response;
 }