The ASP.NET Web Service Project Template

A web service can be added to any ASP.NET website or web application project. Visual Studio used to provide a ASP.NET Web Service–specific template in prior versions. However, this template was removed in 2010 (you can still find it if you target 3.5 of the Framework for your project). Removing this template is partly a reaction to the move to WCF (see the next section) and also a realization that you do not need a special website template to create a web service.

If you do plan to create service-layer or separate your services from any user interface elements you might consider creating an empty website to house your ASP.NET web services. You can do so using File, New, Web Site to launch the Add New Project ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.