i have a web service: “Service.asmx” that gives me some functions , i use “GetArticolo” to get details of one item, this service is on the main folder of the project.
if i call from a page that is on the same directory (as the example below),** no problem at all**
var webMethod = "Service.asmx/GetArticolo";
var parameters = "{'Codarticolo':" + Codarticolo + "}";
$.ajax({
type: "POST",
url: webMethod,
data: parameters,
the problem is that i am building ad Administration page, that is a folder below, i tried to set all the complete address as parameter
var webMethod = "https://localhost:44378/Service.asmx/GetArticolo";
var parameters = "{'Codarticolo':" + Codarticolo + "}";
$.ajax({
type: "POST",
url: webMethod,
data: parameters,
now questions:
1)as the image below in chrome, how can i see the error in details? it returns error 500, but i need understand more of this.
2) did i do something wrong to call with full address? the code is the same
but keeps giving error