I am trying yo make a call to my service but it’s not finding it for some reason and I think its because I am not calling it the right way:
How can I add to the response the possible error?, so that i get a better idea.. all i am getting is call is failed because i have this in both functions:
function successFunc(response) {
if (200 == response.status) {
alert("Call is success");
}
}
function failureFunc(response) {
alert("Call is failed");
}
In order for clients accessing your web service through Ajax, you will have to add this attribute declaration to your web service:
You can read more about it at ScriptServiceAttribute Class