In this brief tutorial, we'll see how to leverage the ASP.NET AJAX infrastructure to call remote JSON web services from client script.
In the first part, JSON and its main advantages will be introduced,
in the second part, we'll see how to call a remote JSON web service from client script, with the use of a proxy service. We'll see how the ASP.NET AJAX framework makes calling local web services from client script a very easy task, and how tidily this is done. We'll also get introduced to some useful methods of the AJAX Client Library.
Finally, in the third part, we'll see how to elaborate the JSON response returned from the web service in the server side code of our proxy, before sending it back to the client. To do this, we'll see how to leverage the ASP.NET AJAX infrastructure both on the server and on the client side, to serialize / deserialize data to / from JSON.
- JSON in ASP.NET Ajax: First words
- JSON in ASP.NET Ajax: Part 2. Calling a remote JSON Web Service from client script
- JSON in ASP.NET Ajax: Part 3. Server side deserialization and elaboration of JSON data returned from a Web Service.