Book Image

iOS Development with Xamarin Cookbook

By : Dimitrios Tavlikos (USD)
Book Image

iOS Development with Xamarin Cookbook

By: Dimitrios Tavlikos (USD)

Overview of this book

Table of Contents (22 chapters)
iOS Development with Xamarin Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using WCF services


In this recipe, we will learn how to consume WCF services with Xamarin.iOS.

Note

The WCF service support is only available in business and enterprise licenses of Xamarin.

Getting ready

For this project, we will need a running WCF service. A WCF service can be found in the code download of this chapter. To start the service, open a terminal and go to the project's directory. Start the service by running the start_wcfservice.sh shell script, as follows:

cd <code_directory>/CH06_code/WcfService/WcfService
./start_wcfservice.sh

After the service is started, create a new Single View Application in Xamarin Studio and name it WcfServiceApp. A machine running on Windows will also be needed.

How to do it...

Perform the following steps:

  1. Add the references to the System.Runtime.Serialization and System.ServiceModel namespaces of the project and their corresponding using directives in the WcfServiceAppViewController.cs file.

  2. Xamarin.iOS does not provide full support for WCF services...