Esempio n. 1
0
        private void FillClientCredentials()
        {
            WCFServiceCient client = new WCFServiceCient();

            client.ClientCredentials.User.UserName = "******";
            client.ClientCredentials.User.Password = "******";
        }
Esempio n. 2
0
        private void FillClientCredentialsWithWindowsAuthentication()
        {
            NetworkCredential credentials = new NetworkCredential();

            credentials.Domain   = "windows domain";
            credentials.UserName = "******";
            credentials.Password = "******";
            WCFServiceCient client = new WCFServiceCient();

            client.ClientCredentials.Windows.ClientCredential = credentials;
        }