Implementation shows the way to consume web service using jQuery.
The client side AJAX with HTTP POST request is significant when it comes to loading speed and responsiveness.
Following is the service created that return’s string in JSON.
Consuming the webservice
Remember to reference jQuery library on the page.