Before you begin

This class uses labs based on Xamarin.Forms to demonstrate cross-platform capabilities on iOS, Android and Windows. To complete the coding exercises, you will need a Xamarin development environment with either a simulator/emulator or a device to run the exercise on. Please read the setup requirements if you need help installing the Xamarin development environment.

Overview

This is the second of two classes on consuming web services in your mobile applications. This class covers consuming SOAP-based services with the built-in WCF network stack.

Note: This class utilizes WCF which is only available in the business edition of the Xamarin tools. You must have a business license, or be running a trial in order to complete the exercises in this class. In addition, to generate the proxy code on your own, you will need access to a Windows machine with the Silverlight SDK. A sample proxy file is included with these materials if you do not have access to a Windows development machine.

Objectives

  1. Working with SOAP Services

Lecture

XAM151 - Consuming SOAP-based Web Services.

Exercises

Exercise materials are available from GitHub. The code can be cloned through a desktop Git client or downloaded directly as a ZIP file.

  1. Calling a SOAP Book Service
    Exercise
    In this exercise, we will use WCF to interact with an online book service using SOAP.

Additional resources

In this class we will be utilizing Microsoft's Windows Communication Foundation framework (WCF), here are some additional tips on working with WCF.

Introduction to Web Services (Xamarin) Introduction to Windows Communication Foundation (MSDN) Using SLSvcUtil.exe to Access a Service

Tutorials and walkthroughs (for more experience)

Xamarin WCF Walkthrough