I want to call a web service with POST method this is the url
https://innovation.spa.uvm.mx:22580/webs-images/rest/imagx
i modified the url because of privacy of the company where i work, this is a example url but the original url has the same structure
I have done it in POSTMAN with this JSON string:
{
"personid" : "20369"
}
in POSTMAN it works fine i get a 200 OK status.
But in my ajax call i get a 500 error. net::ERR_ABORTED 500 Error. This is my ajax call:
$.ajax({
url: "https://innovation.spa.uvm.mx:22580/webs-images/rest/imagx",
type: "POST",
dataType: 'json',
contentType: 'application/json; charset=utf-8',
data: JSON.stringify({
"personid" : "20369"
}),
success: function(result){
console.log(JSON.stringify(result));
},
error: function(exception){
alert("Error" + exception);
}
});