Hi.
I have created a Web Service which returns object compatible with JSON.
When I try to call this web service from same machine where it's published, everything works fine.
But when I try to call elsewhere then I get error ( AjaxError )
This is how I call Web Service in JavaSript:
function GetTypes() {
$.ajax({
type: "POST",
url: $('#BaseUrl').val() + "Types.asmx/Gettypes",
cache: false,
contentType: "application/json; charset=utf-8",
data: '{}',
dataType: "json",
success: AjaxSuccess,
error: AjaxError
});
}
So I'm a little bit confused - aren't Web Services meant to be called by ...
Go to the complete details ...