WebMethods make the development of XML Web Services easier by encapsulating a good deal of functionality. Attaching the WebMethod attribute to a Public method indicates that you want the method exposed as part of the XML Web service. You can also use the properties of this attribute to further configure the behavior of the XML Web service method. The WebMethod attribute is added to each method we want to expose as a Web Service. ASP.NET makes it possible to map traditional methods to Web Service operations through the System.Web.Services.WebMethod attribute and it supports a number of properties that control the behavior of the methods.
The following properties are available.