private void SetupProxy(Microsoft.Web.Services3.WebServicesClientProtocol proxy,
                                string username, string password)
        {
            // create ES configurator
            string serverUrl = ConfigurationManager.AppSettings["AWStats.WebsitePanelAuthenticationProvider.EnterpriseServer"];

            if (String.IsNullOrEmpty(serverUrl))
            {
                throw new Exception("Enterprise Server URL could not be empty");
            }

            EnterpriseServerProxyConfigurator cnfg = new EnterpriseServerProxyConfigurator();

            cnfg.EnterpriseServerUrl = serverUrl;
            cnfg.Username            = username;
            cnfg.Password            = password;
            cnfg.Configure(proxy);
        }
 private void SetupProxy(Microsoft.Web.Services3.WebServicesClientProtocol proxy)
 {
     SetupProxy(proxy, null, null);
 }