连接到 Dynamics CRM Web 服务时如何指定凭据?
有人可以向我解释如何指定 Dynamics CRM Web 服务的身份验证吗?我目前的尝试没有任何成果:
var svc = new CrmServiceSoapClient("CrmServiceSoap");
svc.ClientCredentials.UserName.UserName = Resources.UserName;
svc.ClientCredentials.UserName.Password = Resources.Password;
svc.ClientCredentials.Windows.ClientCredential.UserName = Resources.UserName;
svc.ClientCredentials.Windows.ClientCredential.UserName = Resources.Password;
return svc;
谢谢!
Can someone explain to me how to specify authentication for the Dynamics CRM web service? My current attempts have yielded nothing:
var svc = new CrmServiceSoapClient("CrmServiceSoap");
svc.ClientCredentials.UserName.UserName = Resources.UserName;
svc.ClientCredentials.UserName.Password = Resources.Password;
svc.ClientCredentials.Windows.ClientCredential.UserName = Resources.UserName;
svc.ClientCredentials.Windows.ClientCredential.UserName = Resources.Password;
return svc;
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我做了其中之一(可能不是确切的代码,但你明白了):
I do one of these (might not be the exact code, but you get the idea):