When I call the any of the Sharepoint Webservices using Internet Explorer, the Browser ask me for credentials... but when I'm using Firefox or Chrome I get a "401 Unauthorized" error.
I'm writing a Firefox extension, so I need to know how to pass the credentials using JQuery....
$.ajax({
url: "http://sharepoint.xxxx.com/_vti_bin/search.asmx",
type: "POST",
dataType: "xml",
data: soapEnv,
complete: processResult,
contentType: "text/xml; charset=utf-8"
});
$.ajax({
url: "http://sharepoint.xxxx.com/_vti_bin/lists.asmx",
beforeSend: function(xhr) {
xhr.setRequestHeader("SOAPAction",
"http://schemas.microsoft.com/sharepoint/soap/UpdateListItems");
},
type: "POST",
dataType: "xml",
data: soapEnv,
complete: processResult,
contentType: "text/xml; charset=utf-8"
});