O'Reilly logo

Microsoft® Visual Studio® 2010 Unleashed by Lars Powers, Mike Snell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required