Today I’ll set up a simple application to demonstrate how easy it is to consume a WCF service through a Javascript Library, the popular Jquery to be exact. We opt for this approach as Jquery uses ajax calls for these things which are asynchronous and it limits the postbacks to the server (as Javascript is ran client side).

So let’s get started:

First, you can get JQuery over at the Jquery website:

Once we have that we’ll start up a new project in visual studio. Create a folder scripts, and a folder services and add a new wcf service to the solution (in the services folder). Add the jquery script to the scripts folder.
Once you’ve done that, your solution would look like this:

Read more