Support us .Net Basics C# SQL ASP.NET ADO.NET MVC Slides C# Programs Subscribe Buy DVD

Part 4 - WebMethod attribute properties

Suggested Videos
Part 1 - Introduction to asp.net web services
Part 2 - Consuming a web service
Part 3 - Using ASP.NET Session State in a Web Service



In this video, we will discuss different properties of the WebMethod attribute

Description - Use to specify a description for the web service method.

Web service web method description property



BufferResponse - This is a boolean property. Default is true. When this property is true, the response of the XML Web service method is not returned to the client until either the response is completely serialized or the buffer is full. 

On the other hand, when this property is false, the response of the XML Web service method is returned to the client as it is being serialized. 

In general, set BufferResponse to false, only when the XML Web service method returns large amounts of data. For smaller amounts of data, web service performance is better when BufferResponse is set to true.

CacheDuration - Use this property, if you want to cache the results of a web service method. This is an integer property, and specifies the number of seconds that the response should be cached. The response is cached for each unique parameter. 

asp.net webservices tutorial

1 comment:

  1. you r genius sir ...you have described and cleared all the nuts and bolts of the web service topic ...nicely done .Your presentation is outstanding keep on sir
    Thank You so much sir.

    ReplyDelete

If you like this website, please share with your friends on facebook and Google+ and recommend us on google using the g+1 button on the top right hand corner.