Thursday, March 3, 2011


Web Methods

Attaching the WebMethod attribute to a Public method indicates that you want the method exposed as part of the XML Web service. The WebMethod attribute tells .NET that a particular public method should be exposed as a web-callable method. The WebMethod attribute has six associated properties to document and change the behavior of your web method. They are:

1.  Description
2.  MessageName
3.  EnableSession
4.  CacheDuration
5.  TransactionOption
6.  BufferResponse

The first two properties are used to document a web method, while the others affect its behavior.

No comments: