コード例 #1
0
        /*  private DrvService GetService(SystemConfig config)
         * {
         *
         *    if(service==null)
         *    {
         *
         *        service = new DrvService();
         *        service.Url = config.ServiceIp;
         *    }
         *    return service;
         * }
         */

        private TmriJaxRpcOutAccessService GetService(SystemConfig config)
        {
            if (service == null)
            {
                service     = new TmriJaxRpcOutAccessService();
                service.Url = config.ServiceIp;
            }
            return(service);
        }
コード例 #2
0
ファイル: DrvNewInterface.cs プロジェクト: romanu6891/fivemen
 private static TmriJaxRpcOutAccessService GetNewService()
 {
     TmriJaxRpcOutAccessService service = new TmriJaxRpcOutAccessService();
     //service.AllowAutoRedirect
     //service.RequestEncoding = System.Text.Encoding.UTF8;
     // service.SoapVersion
     log.Debug("服务默认的编码是:" + service.RequestEncoding);
     //TestLog.Log("服务的URL:" + service.Url);
     //service
     service.Url = System.Configuration.ConfigurationManager.AppSettings["DrvNewSeriveUrl"];
     log.Debug("服务的URL:" + service.Url);
     // TestLog.LogStep();
     service.Timeout = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["DrvNewSeriveTimeout"]);
     return service;
 }
コード例 #3
0
ファイル: DrvNewInterface.cs プロジェクト: marcellus/fivemen
        private static TmriJaxRpcOutAccessService GetNewService()
        {
            TmriJaxRpcOutAccessService service = new TmriJaxRpcOutAccessService();

            //service.AllowAutoRedirect
            //service.RequestEncoding = System.Text.Encoding.UTF8;
            // service.SoapVersion
            log.Debug("服务默认的编码是:" + service.RequestEncoding);
            //TestLog.Log("服务的URL:" + service.Url);
            //service
            service.Url = System.Configuration.ConfigurationManager.AppSettings["DrvNewSeriveUrl"];
            log.Debug("服务的URL:" + service.Url);
            // TestLog.LogStep();
            service.Timeout = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["DrvNewSeriveTimeout"]);
            return(service);
        }