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


ASP.NET Web API: Build RESTful web applications and services on the .NET framework
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

Book Details

Language : English
Paperback : 224 pages [ 235mm x 191mm ]
Release Date : December 2013
ISBN : 1849689741
ISBN 13 : 9781849689748
Author(s) : Joydip Kanjilal
Topics and Technologies : All Books, Application Development, Enterprise


Table of Contents

Preface
Chapter 1: Understanding Representational State Transfer Services
Chapter 2: Understanding Resource and Service Oriented Architectures
Chapter 3: Working with RESTful Services
Chapter 4: Consuming RESTful services
Chapter 5: Working with ASP.NET 4.5
Chapter 6: Working with RESTful Data Using Silverlight
Chapter 7: Advanced Features
Appendix: Library References
Index
  • Chapter 1: Understanding Representational State Transfer Services
    • Understanding REST
      • Resources in REST-based architecture
      • The REST architectural constraints
        • Client-server
        • Stateless
        • Cacheable
        • Code on demand
        • Uniform interface
        • Resource management
      • SOAP, REST, and XML-RPC – a closer look
      • Understanding Windows Communication Foundation
      • REST attributes
        • WebServiceHost
        • WebHttpBinding
        • WebHttpBehavior
        • WebOperationContext
        • WebMessageFormat
        • WebGet
        • WebInvoke
        • UriTemplate
      • REST-based web services
      • Learning RESTful web services
    • Implementing RESTful services in .NET 4.5
      • The UserNamePasswordValidator class
      • Simplified configuration
      • Standard endpoints
      • Discovery
      • Simplified IIS hosting
      • Improvements in REST
      • Implementing a RESTful service using WCF 4.5
        • Creating a WCF service
        • Making the service RESTful
      • Specifying the binding information
      • Hosting the RESTful WCF service
        • Hosting the service inside the console application
      • Returning JSON data
      • Consuming the RESTful service
    • Summary
  • Chapter 2: Understanding Resource and Service Oriented Architectures
    • Understanding SOA
      • Service
      • Service provider
      • Service consumer
      • Service registry
      • Service contract
      • Service proxy
      • Service lease
      • Message
      • Service description
      • Advertising and discovery
      • From object orientation to SOA to ROA to REST
    • A look at ROA
      • Basic properties of ROAs
        • Basic concepts of ROAs
      • Fundamental HTTP concepts
    • Resource Oriented and Service Oriented Architecture
      • Resource
      • Uniform resource identifier
      • Addressability
      • Statelessness
      • Representations
    • 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
      • Enhancements in the WCF framework
      • Simplified configuration
      • Standard endpoints
      • Discovery
      • Simplified IIS hosting
      • REST improvements
      • Routing service
      • The automatic Help page
        • Bindings in WCF
        • Choosing the correct binding
        • Security in WCF – securing your WCF services
      • Implementing RESTful services using WCF
        • Creating the security database
        • Creating SecurityService
    • Making the service RESTful
      • Hosting SecurityService
    • Summary
  • Chapter 4: Consuming RESTful services
    • Understanding AJAX
    • Introducing JSON and jQuery
    • Understanding Language Integrated Query (LINQ)
      • Data source controls
        • ObjectDataSource
        • SqlDataSource
        • SiteMapDataSource
        • XMLDataSource
        • LinqDataSource
      • LINQ to XML
      • LINQ to SQL
      • LINQ to Objects
      • LINQ to Entities
        • Working with service operations in LINQ
    • Security Service
    • Consuming Security Service
      • ASP.NET
        • Consuming Security Service using ASP.NET 4.5
      • The ASP.NET MVC Framework
        • Consuming Security Service using ASP.NET MVC
        • Asynchronous operations
    • Understanding Windows Presentation Foundation
      • Consuming Security Service using WPF
    • References
    • Summary
  • Chapter 5: Working with ASP.NET 4.5
    • Working with the OData protocol
      • Working with the ASP.NET Web API and OData
    • New features in the .NET Framework 4.x
      • Supporting asynchronous programming in the .NET Framework 4.x
    • Introducing the new features in ASP.NET 4.5
      • Enhanced state management features
      • Performance monitoring
      • Extensible Output Caching
      • Search Engine Optimization (SEO)
      • Other notable enhancements
    • Working with the ASP.NET Web API
      • The ASP.NET Web API architecture
      • Routing in the ASP.NET Web API
      • Implementing the ASP.NET Web API for the Security database
    • Summary
  • Chapter 7: Advanced Features
    • Best practices in using WCF
      • WCF security issues
        • Bindings
      • WCF security
        • Message-level security
        • Transport-level security
    • Best practices in using WCF services
    • Best practices in using ASP.NET Web API
    • References
    • Summary
  • Appendix: Library References
    • Section A
      • Popular REST-based service frameworks
      • Ruby on Rails
      • Restlet
      • Django REST
      • The Flickr REST API
      • The Google API
      • Yahoo! Social REST APIs
    • Section B
    • Working with the Visual Studio 2013 IDE
      • Installing Visual Studio 2013
      • New features in the Visual Studio 2013 IDE
      • HTTP requests and response code
      • Abbreviations
      • The ASP.NET Web API library reference (based on .NET Framework Version 4.5)
    • References

Joydip Kanjilal

Joydip Kanjilal is a Microsoft Most Valuable Professional in ASP.NET, a speaker, and the author of several books and articles. He has over 16 years of experience in the IT industry, with more than 10 years using Microsoft .NET and its related technologies. He was selected as the MSDN Featured Developer of the Fortnight a number of times and also as the Community Credit Winner by www.communitycredit. com several times. He has authored the following books:

  • Visual Studio Six in One (Wrox Publishers)
  • ASP.NET 4.0 Programming (Mc-Graw Hill Publishing)
  • Entity Framework Tutorial (Packt Publishing)
  • Pro Sync Framework (APRESS)
  • Sams Teach Yourself ASP.NET Ajax in 24 Hours (Sams Publishing)
  • ASP.NET Data Presentation Controls Essentials (Packt Publishing)

He has also authored more than 250 articles for some of the most reputable sites, such as www.msdn.microsoft.com, www.code-magazine.com, www.asptoday.com, www.devx.com, www.ddj.com, www.aspalliance.com, www.aspnetpro.com, www.sql-server-performance.com, and www.sswug.com. A lot of these articles have been selected at www.asp.net—Microsoft's official website on ASP.NET.

He has years of experience in designing and architecting solutions for various domains. His technical strengths include C, C++, VC++, Java, C#, Microsoft .NET, Ajax, WCF, REST, SOA, Design Patterns, SQL Server, Operating Systems, and Computer Architecture.

For more details, please refer to the following links:

  • Blog: http://aspadvice.com/blogs/joydip
  • Website: www.joydipkanjilal.com
  • Twitter: https://twitter.com/joydipkanjilal
  • Facebook: https://www.facebook.com/joydipkanjilal
  • LinkedIn: http://in.linkedin.com/in/joydipkanjilal
Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

ASP.NET Web API: Build RESTful web applications and services on the .NET framework +    Oracle Application Express 4.0 with Ext JS =
50% Off
the second eBook
Price for both: $43.05

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • 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.

Approach

This book is a step-by-step, practical tutorial with a simple approach to help you build RESTful web applications and services on the .NET framework quickly and efficiently.

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.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software