7.6. WCF Starter Kit Integration

Two great features previously seen in the WCF REST starter kit (www.asp.net/downloads/starter-kits/wcf-rest) have been brought into WCF4:

  • Help pages

  • HTTP caching

7.6.1. Help Pages

Help pages are automatically generated HTML pages that describe how to call your service and the type of response it will return, and can be very helpful for working out how to call the darn thing. Help pages are created automatically when you use the WebServiceHost class (although at the time of writing this doesn't seem to be the case) and when using the HelpEnabled property on WebHttpBehavior.

Let's take a look at this now with a contrived example:

  1. Create a new WCF service library project called Chapter7.WCFWebService.

  2. Add a console ...

Get Introducing .NET 4.0: with Visual Studio 2010 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.