ASP.NET Web API: Build RESTful web applications and services on the .NET framework

An opportunity for ASP.NET web developers to advance their knowledge with a practical course, designed from the ground up, to help you investigate REST-based services with C# 5. An essential, real-world tutorial.

ASP.NET Web API: Build RESTful web applications and services on the .NET framework

Progressing
Joydip Kanjilal

An opportunity for ASP.NET web developers to advance their knowledge with a practical course, designed from the ground up, to help you investigate REST-based services with C# 5. An essential, real-world tutorial.
$10.00
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781849689748
Paperback224 pages

About This Book

  • Clear and concise guide to the ASP.NET Web API with plentiful code examples
  • Learn about the advanced concepts of the WCF-windows communication foundation
  • Explore ways to consume Web API services using ASP.NET, ASP.NET MVC, WPF, and Silverlight clients

Who This Book Is For

This book is for ASP.NET web developers who want to explore REST-based services with C# 5. This book contains many real-world code examples with explanations whenever necessary. Some experience with C# and ASP.NET 4 is expected.

Table of Contents

Chapter 1: Understanding Representational State Transfer Services
Understanding REST
Implementing RESTful services in .NET 4.5
Summary
Chapter 2: Understanding Resource and Service Oriented Architectures
Understanding SOA
A look at ROA
Resource Oriented and Service Oriented Architecture
Comparison of the three architectural styles
Summary
Chapter 3: Working with RESTful Services
Exploring Windows Communication Foundation (WCF)
Applying service behavior
New features in WCF 4.5
Making the service RESTful
Summary
Chapter 4: Consuming RESTful Services
Understanding AJAX
Introducing JSON and jQuery
Understanding Language Integrated Query (LINQ)
Security Service
Consuming Security Service
Understanding Windows Presentation Foundation
References
Summary
Chapter 5: Working with ASP.NET 4.5
Working with the OData protocol
New features in the .NET Framework 4.x
Introducing the new features in ASP.NET 4.5
Working with the ASP.NET Web API
Summary
Chapter 6: Working with RESTful Data Using Silverlight
Introducing Silverlight 5
WCF 4.5 RIA Services
Implementing a sample application
Summary
Chapter 7: Advanced Features
Best practices in using WCF
Best practices in using WCF services
Best practices in using the ASP.NET Web API
References
Summary

What You Will Learn

  • Build scalable REST-based services using the .NET framework
  • Build HTTP-based web services on the .NET platform
  • Explore the new features in Entity Framework 5 and how to work with them
  • Use the ASP.NET Web API with ASP.NET MVC 4 clients
  • Learn about the ADO.NET Entity Framework and write programs against the Entity Data Model using LINQ to perform CRUD operations
  • Implement Web API services using ASP.NET, ASP.NET MVC, WPF, and Silverlight clients

In Detail

The ASP.NET Web API was designed from the ground up to meet the need of developers who want to build HTTP/RESTful services. ASP.NET Web API is an HTTP service that uses HTTP as the application protocol and can return data based on the data format requested by the client. It is a lightweight web-based architecture that provides an easy-to-use set of default options while providing a deep extensibility infrastructure to meet the demands of any scenario using HTTP.

This book is a step-by-step, practical tutorial with a simple approach to help you build RESTful web applications and Web API services based on the .NET framework quickly and efficiently. This book provides complete coverage of RESTful services and the ASP.NET Web API in a lucid language with plenty of hands-on code examples.

The book starts with a description of REST-based architecture and WCF. It then explores the new features in ASP.NET 4.5 and introduces you to the new concepts in the ASP.NET Web API. There are also plentiful code examples throughout these sections to help you learn effectively.

You will then learn how to work with WCF REST-based services and the ASP.NET Web API and how to consume those services using various clients such as ASP.NET, ASP.NET MVC, WPF, and Silverlight.

In the second half of this book, we discuss the more advanced concepts of the ASP.NET Web API, best practices, and asynchronous programming concepts and how it can be implemented in C# 5.The most important thing you will take home from reading this book is a working knowledge on RESTful services, their architecture, how to build them, and also how to consume them with plenty of tips and techniques to better utilize this technology.

Authors

Table of Contents

Chapter 1: Understanding Representational State Transfer Services
Understanding REST
Implementing RESTful services in .NET 4.5
Summary
Chapter 2: Understanding Resource and Service Oriented Architectures
Understanding SOA
A look at ROA
Resource Oriented and Service Oriented Architecture
Comparison of the three architectural styles
Summary
Chapter 3: Working with RESTful Services
Exploring Windows Communication Foundation (WCF)
Applying service behavior
New features in WCF 4.5
Making the service RESTful
Summary
Chapter 4: Consuming RESTful Services
Understanding AJAX
Introducing JSON and jQuery
Understanding Language Integrated Query (LINQ)
Security Service
Consuming Security Service
Understanding Windows Presentation Foundation
References
Summary
Chapter 5: Working with ASP.NET 4.5
Working with the OData protocol
New features in the .NET Framework 4.x
Introducing the new features in ASP.NET 4.5
Working with the ASP.NET Web API
Summary
Chapter 6: Working with RESTful Data Using Silverlight
Introducing Silverlight 5
WCF 4.5 RIA Services
Implementing a sample application
Summary
Chapter 7: Advanced Features
Best practices in using WCF
Best practices in using WCF services
Best practices in using the ASP.NET Web API
References
Summary

Book Details

ISBN 139781849689748
Paperback224 pages
Read More