rfc 2617身份验证问题, [英] rfc 2617 authentication problem,
本文介绍了rfc 2617身份验证问题,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好:)
我一直在从事Web服务集成的工作,但是对于身份验证,存在一个问题:confused:
它使用rfc -2617,有人可以告诉我实现该目标的方法吗?
我正在使用以下代码:
Hello :)
I''ve been working on web service integration but for authentication there is a problem :confused:
It uses rfc -2617, can somebody tell me the way to achieve this?
I am using following code:
{
//creds = new NetworkCredential("uid", "pwd", "domain");
//objRegistration.Credentials = creds;
//objRegistration.PreAuthenticate = true;
NetworkCredential netCredential = new NetworkCredential("uid", "pwd");
Uri uri = new Uri("http://service-address");
ICredentials credentials = netCredential.GetCredential(uri, "Basic");
objRegistration.Credentials = credentials;
objRegistration.PreAuthenticate = true;
}
推荐答案
此链接帮助我解决了我的问题
http://msdn.microsoft.com/en-us/library/bfazk0tb.aspx [ ^ ]
this link helped me out to solve my problem
http://msdn.microsoft.com/en-us/library/bfazk0tb.aspx[^]
这篇关于rfc 2617身份验证问题,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文