jQuery AJAX[
^] is the best way to make a call from client-side to the service.
Simple ajax call would be:
$.ajax({
url: "your-service-url",
cache: false,
success: function(response){
},
error: function(xhr){
console.log(xhr.responseText);
}
});
-KR