I need to call a WebService from a distant server with ajax
in order to send some informations stored in the sessionStorage
of the navigator, this is my code:
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "http://10.7.138.42:6061/CatchEvent.asmx/CollectData",
data: JSON.stringify({ "pDataDictionnary": lDataCollected }),
dataType: "json",
async: true,
success: function (data, textStatus) {
if (textStatus == "success") {
alert('success');
}
},
error: function (exception) {
alert('Exeption : ' + exception);
}
});
The pool that I'm using is under https
and when I change the calling request to https
it doesn't work. I need somtehing to ignore the calling method because I can't change it for the reason that the application is on a distant server that I cannot configure.