Пример #1
0
        public UserManagementIntegration()
        {
            string username = ConfigurationSettings.AppSettings[ConfigurationKey.WebServiceUsername];
            string password = ConfigurationSettings.AppSettings[ConfigurationKey.WebServicePassword];

            _umsEndPointClient = new UmsService.UserManagementServiceEndpointClient();
            _umsEndPointClient.ClientCredentials.UserName.UserName = username;
            _umsEndPointClient.ClientCredentials.UserName.Password = password;

            _emsEndPointClient = new EmsService.EmployeeManagementServiceEndpointClient();
            _emsEndPointClient.ClientCredentials.UserName.UserName = username;
            _emsEndPointClient.ClientCredentials.UserName.Password = password;

            _smsEndPointClient = new SmsService.SkillManagementServiceEndpointClient();
            _smsEndPointClient.ClientCredentials.UserName.UserName = username;
            _smsEndPointClient.ClientCredentials.UserName.Password = password;

            System.Net.ServicePointManager.Expect100Continue = false;
        }
Пример #2
0
        public LookupIntegration()
        {
            string username = ConfigurationSettings.AppSettings[ConfigurationKey.WebServiceUsername];
            string password = ConfigurationSettings.AppSettings[ConfigurationKey.WebServicePassword];

            _cmsEndPointClient = new CmsService.CommonManagementServiceEndpointClient();
            _cmsEndPointClient.ClientCredentials.UserName.UserName = username;
            _cmsEndPointClient.ClientCredentials.UserName.Password = password;

            _emsEndPointClient = new EmsService.EmployeeManagementServiceEndpointClient();
            _emsEndPointClient.ClientCredentials.UserName.UserName = username;
            _emsEndPointClient.ClientCredentials.UserName.Password = password;

            _smsEndPointClient = new SmsService.SkillManagementServiceEndpointClient();
            _smsEndPointClient.ClientCredentials.UserName.UserName = username;
            _smsEndPointClient.ClientCredentials.UserName.Password = password;

            _umsEndPointClient = new UmsService.UserManagementServiceEndpointClient();
            _umsEndPointClient.ClientCredentials.UserName.UserName = username;
            _umsEndPointClient.ClientCredentials.UserName.Password = password;
        }