Tuesday, 11 August 2015

How to create a web service in Asp.net

In this article I'll create a Web Service with four web methods,which will perform addition,subtraction, multiplication and division operations.

Now open the visual studio and follow the steps.


File >> New >> Project




Web >> ASP.NET Empty Web Application 


Right click on project >> Select Add >> New Item


Select Web Service and give a meaning full name  as CalculateWebService.asmx



Now I have added four Web Methods in our Web Service.


Now just debug the application or press F5 to show the output of our Web Service.




No comments:

Post a Comment

Join US Our Community
×