If you believe that the use of AJAX or a specific library is preventing you from accessing the web service, you can try invoking the web service directly using a native JavaScript XMLHttpRequest
.
For example:
var verb = "GET";
var url = "http://servername/webservice_name";
var xhr = new XMLHttpRequest();
xhr.open(verb, url, true);
xhr.setRequestHeader("Content-Type","application/json");
xhr.onreadystatechange = function(){
if(xhr.readyState == 4){
myCallbackFunction(xhr.status, xhr.responseText);
}
};
xhr.send(data);
function myCallbackFunction(status, text){
// do something with the results based on the status
}
You should also confirm that your Internet Explorer settings are the same for SharePoint as they are for the HTML page where you're able to get the web service to work. Specifically, you'll want to check the browser mode and security settings.
Confirm that the problem still exists when the settings are identical before trying to troubleshoot your network or code.