Part 4 WebMethod attribute properties

preview_player
Показать описание
Link for code samples used in the demo

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.

Link for all dot net and sql server video tutorial playlists

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

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

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.
Рекомендации по теме
Комментарии
Автор

Excellent article !
Thank you very much.
your way of teaching is very simple and easy to understand.

amanjain
Автор

Best Tutorial on Youtube.. Thanks for all the videos

johntrovolta
Автор

Crystal clear explanation. Excellent article! Thank you!

shanpalaniram
Автор

thank you sir.. thank u very much.. I'm waiting for this session. Great series sir. thanks thanks a lot sir.. u r awesome sir.

nani
Автор

Hi Venkat Sir,
How do I convert a ASP.NET method to ASP.NET .asmx web service.
e.g.
public ActionResult AddCpty(string Id, string Type)
{
//code for Addcp
return result;
}
How to convert above simple method into web service.
Thanks in advance.

nileshavhad
Автор

I am enjoying this very much ...
Thank u sir ..

raselmahmud
Автор

Can someone assist as to where I can get a SQL to webmethods full tutorial

Trendysparkles
Автор

whether web method supports get request how to achieve it

pavanthatavarthi
Автор

Thank you Sir. I noticw that with CacheDuration=20 if I try to add the same numbers repeatedly in 20 seconds it crashes.

merrua
Автор

Enjoyed it.. can you provide me your email?

muhammadashikuzzamanashik