Dura Soft
.NET-75
Compiling the Web Service
•Packaging into DLL Module: useful to call from ASP.NET or rich clients
•Visual Studio .NET makes it easier to build a web service.
•Click on File, New, Project
•Select Visual C# Projects, and ASP.NET Web Service under Templates:.
•Modify Location to http://localhost/WeatherInfo
•Delete the created service1.asmx and create a new web service by right clicking WeatherInfo in solutions explorer, clicking on Add, Add Web Service.
•Give the name as TemperatureProvider.asmx and modify the code to add a method named temperature as shown in previous page.
•Right click on TemperatureProvider.asmx in solutions explorer and select “Set as start page.”
•Press Ctrl+F5 to test it!