A Web service created using Visual Studio .NET has two parts :
The WebService directive present in the .asmx file specifies the public class that implements the Web service logic. In ASP.NET, the .asmx file references code in pre-compiled assemblies, a code-behind file, or the code contained in the .asmx file itself. The Web service class contains one or more public methods for exposure in a Web service. These Web service methods are prefaced with the WebMethod attribute. By default, Visual Studio .NET uses code-behind files ”for instance, Service1.asmx.cs or Service1.asmx.vb ”when you develop a Web service with the ASP.NET Web service project template. |