且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何...从Forms身份验证的ASP.NET站点调用Windows身份验证的RESTful WCF

更新时间:2023-11-30 19:00:46

.ajax({
type: GET
url:surl,
dataType: json
contentType:' application / json; charset = utf- 8'
数据: JSON .stringify({Login_User: xxxx.xxxx}),
xhrFields:{
withCredentials: true
},
成功:功能(数据){
alert( JSON .stringify(data));
},
错误: function (a){
alert( JSON .stringify(a));
}
});
.ajax({ type: "GET", url: surl, dataType: "json", contentType: 'application/json; charset=utf-8', data: JSON.stringify({ Login_User: "xxxx.xxxx" }), xhrFields: { withCredentials: true }, success: function (data) { alert(JSON.stringify(data)); }, error: function (a) { alert(JSON.stringify(a)); } });



我甚至试过N TLM.js但没有结果。请帮忙解决这个问题。


I even tried the NTLM.js but no result. Please help get past this.


通过这个: http://***.com/questions/22460150/401-client-negotiate-server-negotiate-ntlm-when-calling-wcf-server-to-serve [ ^ ]







http://forums.asp.net/t/1165237 .aspx?+远程+服务器+返回+ +错误+ 401 +未授权+ ASP + net2005 + [ ^ ]
Go through this : http://***.com/questions/22460150/401-client-negotiate-server-negotiate-ntlm-when-calling-wcf-server-to-serve[^]

and

http://forums.asp.net/t/1165237.aspx?The+remote+server+returned+an+error+401+Unauthorized+ASP+net2005+[^]