RESTful .NET
Publisher: O'Reilly Media
Release Date: November 2008
Pages: 310
Read on Safari with a 10-day trial
Start your free trial now Buy on AmazonWhere’s the cart? Now you can get everything on Safari. To purchase books, visit Amazon or your favorite retailer. Questions? See our FAQ or contact customer service:
1-800-889-8969 / 707-827-7019
support@oreilly.com
RESTful architecture offers a simpler approach to building web services than SOAP, SOA, and the cumbersome WS-* stack. And WCF has proven to be a flexible technology for building distributed systems not necessarily tied to WS-* standards. RESTful .NET provides you with a complete guide to the WCF REST programming model for building web services consumed either by machines or humans. You'll learn how to:
- Program Read-Only (GET) services
- Program READ/WRITE services
- Host REST services
- Program REST feeds
- Program AJAX REST clients
- Secure REST endpoints
- Use workflow to deliver REST services
- Consume RESTful XML services using WCF
- Work with HTTP
- Work with ADO.NET Data Services (Astoria)
RESTful .NET introduces you to the ideas of REST and RESTful architecture, and includes a detailed discussion of how the Web/REST model plugs into the WCF architecture. If you develop with .NET, it's time to jump on the RESTful bandwagon. This book explains how.
"While REST is simple, WCF is not. To really understand and exploit this part of WCF requires a knowledgeable and experienced guide. I don't know anybody who's better suited for this role than Jon Flanders. ...Jon is first-rate at explaining complicated things. This book is the best introduction I've seen to creating and using these services with WCF."
--David Chappell, Chappell & Associates
Table of Contents
-
Chapter 1 REST Basics
-
Architecture of the World Wide Web
-
SOAP
-
REST
-
Implementing a Simple RESTful Service Example
-
Processes
-
Summary
-
-
Chapter 2 WCF RESTful Programming Model
-
Isn’t WCF All About SOAP?
-
Channels and Dispatching
-
HTTP Programming with WCF 3.0
-
Web Programming in WCF 3.5
-
UriTemplate
-
Summary
-
-
Chapter 3 Programming Read-Only Services
-
Using WebGetAttribute and UriTemplate
-
Data Formats
-
Summary
-
-
Chapter 4 Programming Read/Write Services
-
POST, PUT, and DELETE
-
Using WebInvokeAttribute
-
Summary
-
-
Chapter 5 Hosting WCF RESTful Services
-
WCF REST Hosting Isn’t a Special Case
-
Self-Hosting
-
Hosting in IIS
-
Custom ServiceHostFactory
-
Hosting Wrap-Up
-
Summary
-
-
Chapter 6 Programming Feeds
-
Building a Feed with WCF
-
Exposing a Feed on a Live URI
-
Feed Validation
-
Adding Links to a Feed
-
Summary
-
-
Chapter 7 Programming Ajax and Silverlight Clients
-
WCF Web Services and Ajax
-
JSON
-
ASP.NET Ajax
-
Silverlight 1.0
-
Silverlight 2.0
-
Returning JSON and XML Conditionally with a Single Method
-
Summary
-
-
Chapter 8 Securing REST Endpoints
-
Authenticating: Self-Hosted Endpoints
-
Authenticating: Managed Hosting Endpoints
-
Authorizing Endpoints
-
Summary
-
-
Chapter 9 Using Workflow to Deliver REST Services
-
Consuming REST Services from WF
-
The SendActivity Instance
-
The ReceiveActivity Instance
-
Stateless Workflow Services
-
Stateful Workflow Services
-
Summary
-
-
Chapter 10 Consuming RESTful XML Services Using WCF
-
Defining the Client
-
Client Extensibility
-
Summary
-
-
Chapter 11 Working with HTTP
-
Programming HTTP with WCF
-
Status Codes
-
Conditional GET
-
Caching
-
Summary
-
-
Appendix WCF 3.5 SP1
-
Atom Publishing Protocol
-
UriTemplate Changes
-
Attribute-Free DataContract Serialization
-
Summary
-
-
Appendix ADO.NET Data Services
-
Building an ADO.NET Data Service
-
ADO.NET Data Services and AtomPub
-
Summary
-
-
Appendix ADO.NET Entity Framework Walkthrough
-
Creating the Data Model
-
-
Colophon