Steps to Create a Web Service
1. Create (or use an existing) virtual directory for any folder on your computer.
2. Create an empty file called “test.asmx” in the folder.
3. Edit the file and add the following text:
<%@ WebService Language="C#" Class="MyMath" %> using System.Web.Services; public class MyMath { [WebMethod] public int Add(int num1, int num2) { return num1+num2; } }
Thanks yarr, my doubt's are clear now. Need more help, I will tell you later..
ReplyDelete