HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Register your product to gain access to bonus material or receive a coupon.
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
• Supporting Web client operations using Silverlight 2.0, JavaScript, and other technologies
• 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
Foreword xix
Preface xxiii
Acknowledgments xxix
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
Index 413