Пример #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
 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
        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);
        }