In this chapter, you will learn how to:
Cache responses using the CacheDuration property of the WebMethod attribute.
Cache data using the System.Web.Cache object.
Use the Global.asax file to process application events.
Use application events to simplify XML Web service code files.
In Chapter 10, we explained how you can use features of the ASP.NET platform to build a stateful XML Web service. In this chapter, we look at two other useful ASP.NET features—caching and application events—that can be used to simplify XML Web service development and increase performance.
A cache allows you to store information in memory to speed up future requests. The principle behind caching is that retrieving data from ...