Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
We already have discussed working with web services in earlier hours, but those web services were directly associated with the server controls in the Toolkit, which used the ASP.NET Ajax extensions and the Client Library. In this hour, we’ll explore web services, which are created in order to be invoked and executed from the client. We will use the example of returning the list of items in the Items.xml file to the client. Therefore, the web service will have a method FetchItems, which will return an array of items to the client script.
First, let’s take a look at the asmx file, as follows: