Synopses & Reviews
Build Web Services Better and Faster with RESTful Techniques and .NET Technologies
Developers are rapidly discovering the power of REST to simplify the development of even the most sophisticated Web services—and today’s .NET platform is packed with tools for effective REST development. Now, for the first time, there’s a complete, practical guide to building REST-based services with .NET development technologies.
Long-time .NET and Web services developers and authors Kenn Scribner and Scott Seely explain why REST fits so smoothly into the Internet ecosystem, why RESTful services are so much easier to build, what it means to be RESTful, and how to identify behaviors that are not RESTful. Next, they review the core Internet standards and .NET technologies used to develop RESTful solutions and show exactly how to apply them on both the client and server side. Using detailed
code examples, Scribner and Seely begin with simple ASP.NET techniques, and then introduce increasingly powerful options—including Windows Communication
Foundation (WCF) and Microsoft’s cloud computing initiative, Azure. Coverage includes
• Accessing RESTful services from desktop applications, using Windows Forms and WPF
• Understanding how IIS 7.0 processes HTTP requests and using that knowledge to build better REST services
• Constructing REST services based on traditional ASP.NET constructs
• Utilizing the ASP.NET MVC Framework to implement RESTful services more effectively
• Taking advantage of WCF 3.5’s powerful REST-specific capabilities
• Creating RESTful data views effortlessly with ADO.NET Data Services
• Leveraging Microsoft’s Azure cloud-computing platform to build innovative new services
• Choosing the right .NET technology for each REST application or service
Effective REST Services via .NET is the first practical guide to building better Web services with easy RESTful techniques and powerful .NET technologies. Long-time .NET and Web services developers Kenn Scribner and Scott Seely begin by explaining why REST is becoming so popular and what it means to be RESTful. Next, they review the Internet standards and .NET technologies used to develop RESTful solutions and show exactly how to apply them on both the client and server side. Using detailed code examples, Scribner and Seely begin with simple ASP.NET techniques, and then introduce increasingly powerful options. Coverage includes designing and architecting efficient REST services; accessing RESTful services from WinForms and WPF desktop applications; supporting Web client operations using Silverlight 2.0; building REST services via traditional ASP.NET constructs; using ASP.NET’s powerful MVC Framework; leveraging WCF 3.5’s REST-specific features; using ADO.NET Data Services to effortlessly create RESTful data views; and leveraging Microsoft’s Azure cloud-computing platform to build services that would otherwise be virtually impossible.
About the Author
Kenn Scribner has been writing cutting-edge, software-based books on Microsoft technologies for more than 10 years. His books include Windows Workflow Foundation Step by Step (Microsoft Press) and Understanding SOAP (SAMS). Kenn is a senior software consultant whose clients have included CBS, Burton, and Microsoft.
Scott Seely, an architect at MySpace, works on the OpenSocial API, one of the world’s most successful REST-based APIs. Before joining MySpace, he was a developer on the Windows Communication Foundation team at Microsoft. His books include Creating and Consuming Web Services in Visual Basic (Addison-Wesley) and SOAP: Cross Platform Web Service Development Using XML (Prentice Hall).
Table of Contents
Aubout the Authors xxxv
Chapter 1 RESTful Systems: Back to the Future 1
Chapter 2 The HyperText Transfer Protocol and the Universal Resource Identifier 39
Chapter 3 Desktop Client Operations 87
Chapter 4 Web Client Operations 125
Chapter 5 IIS and ASP.NET Internals and Instrumentation 165
Chapter 6 Building REST Services using IIS and ASP.NET 205
Chapter 7 Building REST Services using ASP.NET MVC Framework 245
Chapter 8 Building REST Services using WCF 281
Chapter 9 Building REST Services using Azure and .NET Services 339
Appendix A .NET REST Architectural Considerations and Decisions 381
Appendix B HTTP Response Codes 389
Appendix C REST Best Practices 407