Explain WebMethod Attribute in Web Services
| We Use WebMethod attribute to a Public method to expose method as a part of the XML Web service. This WebMethod attribute talks .NET that a particular public method should be exposed as a web-callable method. This WebMethod attribute has six associated properties to document and change the behavior of our web method.First two properties are used to document a web method and rest four affect its behavior. These are as follows
(1)Description (2)Mess |
|
| ageName
(3)EnableSession (4)CacheDuration(5)TransactionOption (6)BufferResponse | |
