Example #1
0
 public SysTools()
 {
     try
     {
         string serverIP = Tiger.Tools.ReflectionHelper.GetUrl("ServerIP");
         if (serverIP.Trim() == "")
         {
             serverIP = "localhost";
         }
         Tiger.Tools.WebServiceConfig.SetWebURL(serverIP);
         BasicSer  = new WangDaDll.BaseSerReference.BaseSerSoapClient(WebServiceConfig.BuildBinding(), new System.ServiceModel.EndpointAddress(WebServiceConfig.BaseSerURL));
         WangDaSer = new WangDaDll.WangDaReference.WangDaSerSoapClient(WebServiceConfig.BuildBinding(), new System.ServiceModel.EndpointAddress(WebServiceConfig.WangDaSerURL));
         UserSer   = new WangDaDll.UserSerReference.UserSerSoapClient(WebServiceConfig.BuildBinding(), new System.ServiceModel.EndpointAddress(WebServiceConfig.UserSerURL));
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #2
0
        static SysTools()
        {
            try
            {
                string serverIP = ReflectionHelper.GetUrl("ServerIP");
                if (serverIP.Trim() == "")
                {
                    serverIP = "localhost";
                }
                WebServiceConfig.SetWebURL(serverIP);
                basicSer = new BaseSerReference.BaseSerSoapClient(WebServiceConfig.BuildBinding(), new System.ServiceModel.EndpointAddress(WebServiceConfig.BaseSerURL));

                basicService = new BasicServiceReference.BasicServiceSoapClient(WebServiceConfig.BuildBinding(), new System.ServiceModel.EndpointAddress(WebServiceConfig.BasicServiceURL));

                userSer = new UserSerReference.UserSerSoapClient(WebServiceConfig.BuildBinding(), new System.ServiceModel.EndpointAddress(WebServiceConfig.UserSerURL));

                config = new ConfigReference.ConfigSoapClient(WebServiceConfig.BuildBinding(), new System.ServiceModel.EndpointAddress(WebServiceConfig.ConfigURL));
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }