Building Web Services with Microsoft Azure
eBook - ePub

Building Web Services with Microsoft Azure

Alex Belotserkovskiy, Stephen Kaufman, Nikhil Sachdeva

Share book
  1. 322 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Building Web Services with Microsoft Azure

Alex Belotserkovskiy, Stephen Kaufman, Nikhil Sachdeva

Book details
Book preview
Table of contents
Citations

About This Book

About This Book

  • Explore the tools to rapidly build, deploy, and manage cloud solutions using Microsoft Azure
  • Learn how to utilize Entity Framework, SQL Azure database, and other storage mechanisms to build out the data tier of your solution
  • A step-by-step guide focused on delivering solutions to your cloud development lifecycle with the best practices for web services and APIs

Who This Book Is For

If you are a.NET developer who wants to develop end-to-end RESTful applications in the cloud, then this book is for you. A working knowledge of C# will help you get the most out of this book.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Building Web Services with Microsoft Azure an online PDF/ePUB?
Yes, you can access Building Web Services with Microsoft Azure by Alex Belotserkovskiy, Stephen Kaufman, Nikhil Sachdeva in PDF and/or ePUB format, as well as other popular books in Ciencia de la computación & Computación en la nube. We have over one million books available in our catalogue for you to explore.

Information

Building Web Services with Microsoft Azure


Table of Contents

Building Web Services with Microsoft Azure
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
Introduction
Getting to know HTTP
An HTTP request/response
HTTP methods
HTTP status codes
Other HTTP goodies
Header field definitions
Content negotiation
HTTP 2.0
HTTP and .NET
The rise of REST
The REST style of services
Web API and Microsoft Azure
Summary
1. Getting Started with the ASP.NET Web API
The ASP.NET Web API framework
Background
Building blocks
Design principles behind the ASP.NET Web API
Application scenarios
Behind the scenes with the ASP.NET Web API
Anatomy of the API of ASP.NET Web API
DelegatingHandler
HttpRequestMessage
HttpResponseMessage
ApiController
Other important types
Message lifecycle
Host listener
Routing and dispatching
Controller processing
Creating our first ASP.NET Web API
Prerequisites
Creating the ASP.NET Web API project
Defininig an ASP.NET data model
Defining an ASP.NET Web API controller
Testing the Web API
Testing in a browser
Testing with HttpClient
Committing changes to Git
Deploying the ASP.NET Web API using Azure Websites
Deploying to Azure Websites
Continuous Deployment using Azure Websites
Summary
2. Extending the ASP.NET Web API
Attribute routing
Custom route discovery using IDirectRouteProvider
Content negotiation
Customizing content negotiation
Customizing media formatters
Securing the ASP.NET Web API
Authentication and Authorization filters
Creating an Azure AD directory
Enabling authentication for the Web API project
Configuring the Web API in Azure AD
Enabling Authorization for the controller
Testing our secure Web API
Creating the test client
Configuring the test client in Azure AD
Updating the test client
Hosting
Summary
3. API Management
Azure API Management
Managing a Web API
Creating an API Management service
Configuring the API Management service
Creating API operations
Adding an operation
Adding an authorization server
Configuring an API with an authorization server
Adding a product
Consuming the Web API
Summary
4. Developing a Web API for Mobile Apps
Azure Mobile Services
Features of Azure Mobile Services
Core services
The API of Azure Mobile Services
TableController
ApiServices
EntityData
Domain Manager
Creating a Web API using Mobile Services
Creating the project
Defining the data model
Record
Doctor
Creating the controller
Testing the mobile service
Testing in a browser
Testing using a Windows 8.1 application
Deploying to Azure Mobile Services
Leftovers
Summary
5. Connecting Applications with Microsoft Azure Service Bus
Azure Service Bus
What is Azure Service Bus?
Patterns
Publish/Subscribe
Messaging bridge
Dead Letter Channel and Invalid Message Channel
Content Based Router and Recipient List
Splitter and Aggregator
Resequencer
The BrokeredMessage object
How do you create elements of the Service Bus?
Creating a Service Bus Queue
Interacting with the Queue
Sending a message to the Queue
Receiving a message from the Queue
Receiving different message types from a Queue
Creating a Service Bus Topic
Creating a rule with Visual Studio's Server Explorer
Creating a rule with code
Interacting with the Topic
Sending a message to a Topic
Receiving a message from a Topic
Creating an event hub
Sending data to an event hub
Reading data from an event hub
Service Bus Security
Summary
6. Creating Hybrid Services
Service Bus Relay Service
Bindings
Creating Relay Service in Azure
Creating the WCF service
Creating the client
BizTalk Hybrid Connect
Hybrid Connect security
Summary
7. Data Services in the Cloud – an Overview of ADO.NET and Entity Framework
Key layers of distributed applications
The data layer
The business logic layer
The server layer
The user interface layer
Data and data access technologies
ADO.NET and ADO.NET Entity Framework
Creating a data source for a Web API application
Creating a Microsoft Azure SQL database
Using the Microsoft Azure SQL database management portal
Populating a Microsoft Azure SQL database table with test data
Adding a Microsoft Azure SQL database to the project
Creating an Entity Data Model
Testing the Web API with Entity Framework and Microsoft Azure SQL database
Testing an insert operation
Summary
8. Data Services in the Cloud – Microsoft Azure Storage
Microsoft Azure Storage
The Microsoft Azure Storage Blobs service
Security
The Microsoft Azure Storage Queues service
The Microsoft Azure Storage Tables service
Tables and entities
Using Microsoft Azure Storage in the Web API application
Creating storage accounts
Adding storage support to the Web API application
Viewing data from the table
Summary
9. Data Services in the Cloud – NoSQL in Microsoft Azure
Understanding NoSQL
An overview of Microsoft Azure NoSQL technologies
Microsoft DocumentDB
The Microsoft DocumentDB object model
DocumentDB in a Web API application
Creating the DocumentDB database account
Using DocumentDB in the Web API application
Testing the Web API with the DocumentDB database account
Microsoft Azure Marketplace
MongoLab MongoDB on Microsoft Azure
Creating a MongoLab MongoDB subscription
Summary
Index

Building Web Services with Microsoft Azure

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the info...

Table of contents