Communicating with Web Services

Using web services in Xamarin.Forms applications

PDF for offline use

Let us know how you feel about this


last updated: 2017-01

Xamarin.Forms applications can consume web services implemented using a wide variety of technologies, and this guide will examine how to do this.

For an introduction to cross-platform web service consumption on the Xamarin platform, see Introduction to Web Services.

Communicating with Web Services

Understanding the Sample

This article provides a walkthrough of the Xamarin.Forms sample application that demonstrates how to communicate with different web services. Topics covered include the anatomy of the application, the pages, data model, and invoking web service operations.

Consuming Web Services

This guide demonstrates how to communicate with different web services in order to provide create, read, update, and delete (CRUD) functionality to a Xamarin.Forms application. Topics covered include communicating with ASMX services, WCF services, REST services, Azure Mobile Apps, and Amazon Web Services.

Authenticating Access to Web Services

This guide explains how to integrate authentication services into a Xamarin.Forms application to enable users to share a backend while only having access to their own data. Topics covered include using basic authentication with a REST service, using the Xamarin.Auth component to authenticate against OAuth identity providers, and using the inbuilt authentication mechanisms offered by Azure Mobile Apps, and Amazon Web Services.

Synchronizing Data with Web Services

This article explains how to add offline sync functionality to a Xamarin.Forms application. Offline sync allows users to interact with a mobile application, viewing, adding, or modifying data, even where there isn't a network connection. Changes are stored in a local database, and once the device is online, the changes can be synced with the web service.

Sending Push Notifications

This article demonstrates how to add push notifications to a Xamarin.Forms application. Azure Notification Hubs provide a scalable push infrastructure for sending mobile push notifications from any backend to any mobile platform, while eliminating the complexity of a backend having to communicate with different platform notification systems.

Storing Files in the Cloud

This article demonstrates how to use Xamarin.Forms to store text and binary data in Azure Storage, and how to access the data. Azure Storage is a scalable cloud storage solution that can be used for storing unstructured, and structured data.

Searching Data in the Cloud

This article demonstrates how to use the Microsoft Azure Search Library to integrate Azure Search into a Xamarin.Forms application. Azure Search is a cloud service that provides indexing and querying capabilities for uploaded data. This removes the infrastructure requirements and search algorithm complexities traditionally associated with implementing search functionality in an application.

Adding Intelligence with Cognitive Services

This guide explains how to use some of the Microsoft Cognitive Services APIs in a Xamarin.Forms application. Cognitive Services are a set of APIs, SDKs, and services available to developers to make their applications more intelligent by adding features such as facial recognition, speech recognition, and language understanding.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.