Integrating SharePoint and Cloud Services in Windows Phone 7 Applications

Version: 1.0.0

Description

Windows Phone 7 applications that that use Windows Azure Services in addition to SharePoint data enable integration between SharePoint data and services with external services hosted in the cloud. In this lab you will learn how to integrate SharePoint data with a Windows Azure Service in a Windows Phone 7 application. You will learn how to create and deploy a Windows Azure Service, and also how to call the Windows Azure Service from a Windows Phone 7 application. You will also learn how to use SharePoint data to supplement the functionality in the Windows Phone 7 application.

Overview

Windows Phone 7 applications that that use Windows Azure Services in addition to SharePoint data enable integration between SharePoint data and services with external services hosted in the cloud. Visual Studio 2010 provides a rich development environment for creating, deploying, and integrating Windows Azure Service with Windows Phone 7 applications.

Objectives

In this hands-on lab, you will learn how to integrate SharePoint data with a Windows Azure Service in a Windows Phone 7 application. You will learn how to create and deploy a Windows Azure Service, and also how to call the Windows Azure Service from a Windows Phone 7 application. You will also learn how to use SharePoint data to supplement the functionality in the Windows Phone 7 application.

  • Learn how to integrate SharePoint data with a Windows Azure Service in a Windows Phone 7 application.
  • See how to create and deploy a Windows Azure Service.
  • See how to call the Windows Azure Service from a Windows Phone 7 application.
  • Learn how to use SharePoint data to supplement the functionality in the Windows Phone 7 application.

Prerequisites

The following is required to complete this hands-on lab:

Note:
See Setting Up A SharePoint and Windows Phone 7 Development Environment Module for instructions that describe how to set up the SharePoint and Windows Phone 7 developer machine.

Note:
The following prerequisites are not included in the Setting Up A SharePoint and Windows Phone 7 Development Environment Module installation instructions. If you are using a development machine built according to the Setting Up A SharePoint and Windows Phone 7 Development Environment Module instructions you must install these components.

Note:
The Windows Azure SDK (included in Windows Azure Tools for Visual Studio) installs a simulation environment on your development machine for testing Azure applications locally before deploying them to the cloud. The simulation environment consists of the development fabric to host web and worker roles, and the development storage which simulates cloud blob, table and queue storage locally.

Development storage uses SQL Server as its underlying storage mechanism, and by default the SDK will attempt to configure it to use SQL Server Express. If you do not have SQL Server Express installed before installing the SDK, or you wish to simply use an existing SQL Server instance to host the development storage database, you must run the dsinit command to select the SQL Server instance where the database will be created.

Please see instructions below for how to run dsinit.

Using dsinit to Configure Development Storage

If you already had SQL Server Express installed before installing the SDK, or you wish to simply use an existing SQL Server instance to host the development storage database follow these steps.

  1. Open a command prompt.
  2. Edit the following command line as appropriate for your environment, where [AzureSDKInstallDrive] is the drive where you installed the Azure SDK (or Windows Azure Tools for Visual Studio), and [YourSqlInstance] is the SqlServer where you want to create the development storage database.[AzureSDKInstallDrive]\ Program Files\Windows Azure SDK\v1.4\bin\devstore\dsinit.exe /sqlinstance:[YourSqlInstance]Example Command Line:“C:\Program Files\Windows Azure SDK\v1.4\bin\devstore\dsinit.exe” /sqlinstance:.
  3. Note that the sample command line above uses the value “.” for the sqlinstance argument, which specifies that the local default SQL instance will be used for development storage.