Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ystem.ServiceModel.Security.MessageSecurityException" в mscorlib.dll
- Дополнительные сведения: Запрос HTTP не разрешен для схемы аутентификации клиента "Anonymous". От сервера получен заголовок аутентификации "Digest realm="http://bankrot.fedresurs.ru/MessageService/WebService.svc", nonce="WeV4+tuehEuzjB/KyZ8SFg==", opaque="ElC4Gn57aEW50veVtLfagA==", stale=false, algorithm="MD5", qop="auth"".
- client.ClientCredentials.HttpDigest.ClientCredential.UserName = Properties.Settings.Default.Login;
- client.ClientCredentials.HttpDigest.ClientCredential.Password = Properties.Settings.Default.Password;
- client.ClientCredentials.HttpDigest.AllowedImpersonationLevel = TokenImpersonationLevel.Impersonation;
- MessageServiceClient client = new MessageServiceClient();
- client.ClientCredentials.HttpDigest.ClientCredential.UserName = "Lomatov1";
- client.ClientCredentials.HttpDigest.ClientCredential.Password = "QbZGH7";
- client.ClientCredentials.HttpDigest.AllowedImpersonationLevel = TokenImpersonationLevel.Impersonation;
- client.Open();
Add Comment
Please, Sign In to add comment