IIS, create a virtual folder. Create a bin directory in the physical path of the virtual folder and copy the dll file in the bin folder.
Create a file TestService.asmx in the physical path of and paste the following code in it:
<%@ WebService Language="C#" Class="Service1" %>
using System.Web.Services;
public class Service1 : System.Web.Services.WebService { [WebMethod Description="This method converts a temperature in " + "degrees Fahrenheit to a temperature in degrees Celsius.")]
Code:
public double ConvertTemperature(double dFahrenheit)
{ testComNet.myClass obj=new testComNet.myClass();
double dC=obj.ConverFtoC(ref dFahrenheit);
obj=null;
return dC
}
}
Bookmarks