SlideShare a Scribd company logo
Connecting to Data from
Windows Phone 8
Chris Woodruff
Senior Trainer
Telerik
Level: Intermediate to Advanced
Who I am?
Chris Woodruff
MVP, Visual C#
Trainer at Telerik
Co-host of Deep Fried Bytes Podcast
@cwoodruff / cwoodruff@live.com /
Skype: cwoodruff
You will learn:
• Understand the benefits of using REST web
services for your mobile apps
• Be able to use develop solutions against
OData that will give better experiences for
your users
• How to shape your data queries to give the
best performance for your mobile apps
• A glimpse into using Windows Azure Mobile
Services to also get to your data in the cloud.
LETS TAKE A REST
• REST is an architectural style for
distributed hypermedia systems
• REpresentational State Transfer
• The term originated in 2000 by Roy
Fielding for his PhD thesis
• REST states that the existing protocols
and principles of the web are enough to
create robust Web Services – no SOAP
is needed
What is REST?
What does REST consist of?
REST is a very simple architecture:
• Application state and functionality is
divided into resources.
• Every resource is uniquely addressable
using a universal syntax for hypermedia
links
• All resources share a uniform interface for
the transfer of state between a client and a
resource
What does REST consist of?
Characteristics of REST
• Client–server
• Stateless
• Cacheable
• Uniform Interface
• Named Resources
• Interconnected
Resource
Representations
• Layered System
Operations of REST
• GET
• POST
• PUT
• DELETE
Example of REST
Query a Resource
http://www.parts-depot.com/parts/getPart?id=00345
http://www.parts-depot.com/parts/00345
http://restbucks.com/PlaceOrder?coffee={type}&size
={size}&milk={milk}&location={location}
DIGGING INTO ODATA
Open Data Protocol (OData)
• “RESTful” Web protocol
• Designed to work with data across HTTP
• Built on existing Web standards
• Uses popular formats to return data
payloads to consumer
• Uses self-describing metadata
• Has multiple options to build
implementation based on standard
protocol
• Soon to be a full web standard
The Basics
• Feeds, which are Collections of
typed Entries
• OData services can expose
Service Operations
• OData services expose all these
constructs via URIs
• OData service may also expose a
Service Metadata Document
Full SQL like Query “Language”
HTTP Command
(Verb)
SQL
Command
GET SELECT
PUT UPDATE
POST INSERT
DELETE DELETE
http://services.odata.org/OData/OData.svc
_______________________________________/
|
service root URI
http://services.odata.org/OData/OData.svc/Category(1)/Products?$top=2&$orderby=
name
_______________________________________/ __________________/
_________________/
| | |
service root URI resource path query options
What is a URI?
OData Best Practices (Producer)
• Always design your OData feed will
server-side paging if your entity
collections hold large amounts of data.
• Looks at server-side validation of queries
and data updates based on the user
credentials sent through HTTP
Why are we excited!!
ODATA AND HOW TO
CONSUME IT IN WINDOWS
PHONE
DEMO
Windows Phone and OData
OData Best Practices (Consumer)
• Use Query Projection to only bring back
the entity properties you or your app
needs.
• Think about client-side paging even if their
exists server-side paging.
• Design and implement a client-side data
caching function in your app (unless
sensitive data).
AZURE MOBILE SERVICES
AND HOW TO CONSUME IT
IN WINDOWS PHONE
DEMO
Windows Phone and Azure Windows Services
The demo projects can be found at:
github.com/cwoodruff/
Resources
REST
http://www.ics.uci.edu/~taylor/documents/
2002-REST-TOIT.pdf
OData
http://odata.org
http://odataprimer.com
Azure Mobile Services
http://www.windowsazure.com/en-
us/develop/mobile/
Contact Me
Chris “Woody” Woodruff
cwoodruff@live.com
Twitter @cwoodruff
Skype cwoodruff
http://chriswoodruff.com
http://deepfriedbytes.com

More Related Content

What's hot (20)

PPTX
Mule MMC Integration with LDAP
Sanjeet Pandey
 
PPTX
Learning How to Shape and Configure an OData Feed for High Performing Web Sit...
Woodruff Solutions LLC
 
PPT
Entity Framework Overview
ukdpe
 
PPT
Rest introduction
Manav Prasad
 
PPTX
UDDI in Mule Esb
Anand kalla
 
PPTX
Microsoft SQL Server 2008
Hossein Zahed
 
PDF
Introduction to Restful Web Services
weili_at_slideshare
 
PPT
Introduction to REST
kumar gaurav
 
PPTX
ReSTfulAPIs
Claudine Bruyns
 
PPTX
FaunaDB security
alialaei7
 
PPTX
Springs_Training
KAMALA KOLLURI
 
PPTX
.Net Fundamentals
Sunny Sharma
 
PPT
Anypoint connector dev kit
D.Rajesh Kumar
 
PPT
Web server
Priyanka Kundu
 
PPTX
Express yourself
Yaniv Rodenski
 
PPT
Proxy server
Dlovan Salih
 
PPTX
Signal rity1
Yaniv Rodenski
 
PDF
Introduction To Spring Enterprise Integration - SpringPeople
SpringPeople
 
PPTX
Node ts1
Yaniv Rodenski
 
PPT
Web services and SOA
Subin Sugunan
 
Mule MMC Integration with LDAP
Sanjeet Pandey
 
Learning How to Shape and Configure an OData Feed for High Performing Web Sit...
Woodruff Solutions LLC
 
Entity Framework Overview
ukdpe
 
Rest introduction
Manav Prasad
 
UDDI in Mule Esb
Anand kalla
 
Microsoft SQL Server 2008
Hossein Zahed
 
Introduction to Restful Web Services
weili_at_slideshare
 
Introduction to REST
kumar gaurav
 
ReSTfulAPIs
Claudine Bruyns
 
FaunaDB security
alialaei7
 
Springs_Training
KAMALA KOLLURI
 
.Net Fundamentals
Sunny Sharma
 
Anypoint connector dev kit
D.Rajesh Kumar
 
Web server
Priyanka Kundu
 
Express yourself
Yaniv Rodenski
 
Proxy server
Dlovan Salih
 
Signal rity1
Yaniv Rodenski
 
Introduction To Spring Enterprise Integration - SpringPeople
SpringPeople
 
Node ts1
Yaniv Rodenski
 
Web services and SOA
Subin Sugunan
 

Viewers also liked (7)

PPTX
Learning How to Shape and Configure an OData Feed for High Performing Web Sit...
Woodruff Solutions LLC
 
PPTX
Connecting to Data from Windows Phone 8
Woodruff Solutions LLC
 
PPT
Cosmetology, trichology courses
dr anil nirale
 
PPTX
Gaining the Knowledge of the Open Data Protocol (OData)
Woodruff Solutions LLC
 
PPT
Parade Plan V1.0
zollida
 
PPTX
Build Conference Highlights: How Windows 8 Metro is Revolutionary
Woodruff Solutions LLC
 
PPT
Beneficial courses for medical profession.
dr anil nirale
 
Learning How to Shape and Configure an OData Feed for High Performing Web Sit...
Woodruff Solutions LLC
 
Connecting to Data from Windows Phone 8
Woodruff Solutions LLC
 
Cosmetology, trichology courses
dr anil nirale
 
Gaining the Knowledge of the Open Data Protocol (OData)
Woodruff Solutions LLC
 
Parade Plan V1.0
zollida
 
Build Conference Highlights: How Windows 8 Metro is Revolutionary
Woodruff Solutions LLC
 
Beneficial courses for medical profession.
dr anil nirale
 
Ad

Similar to Connecting to Data from Windows Phone 8 (20)

PPT
Building RESTful Applications with OData
Todd Anglin
 
PPTX
OData for iOS developers
Glen Gordon
 
PPTX
Building Software Backend (Web API)
Alexander Goida
 
PPTX
Social Photos - My presentation at Microsoft Tech Day
TechMaster Vietnam
 
PDF
RESTfulDay9
Akhil Mittal
 
PPTX
RESTful Web Services @AnkaraPHP meetup
Fatih Karatana
 
PPTX
The Top Tips You need to Learn about Data in your Mobile App
Woodruff Solutions LLC
 
PPTX
RESTful services
Pedram Bashiri
 
PPTX
Gaining the Knowledge of the Open Data Protocol (OData)
Woodruff Solutions LLC
 
PPT
Modified REST Presentation
Alexandros Marinos
 
PPTX
World Azure Day Mobile Services Presentation
Dmitri Artamonov
 
PDF
Enterprise REST
Ganesh Prasad
 
PPTX
RESTful APIs in .NET
Greg Sohl
 
PDF
What are restful web services?
Aparna Sharma
 
PPTX
REST Presentation
Sarwajit Kumar
 
PPTX
Mini-Training: Let's have a rest
Betclic Everest Group Tech Team
 
PPTX
Windows 8 Apps and the Outside World
Microsoft Developer Network (MSDN) - Belgium and Luxembourg
 
PPTX
RESTful_Web_Services_Presentation (1).pptx
onlinesewatest
 
PPTX
Beginner's Guide REST Basics - 101 by Smartbear
Eski2
 
PPTX
Building nTier Applications with Entity Framework Services (Part 2)
David McCarter
 
Building RESTful Applications with OData
Todd Anglin
 
OData for iOS developers
Glen Gordon
 
Building Software Backend (Web API)
Alexander Goida
 
Social Photos - My presentation at Microsoft Tech Day
TechMaster Vietnam
 
RESTfulDay9
Akhil Mittal
 
RESTful Web Services @AnkaraPHP meetup
Fatih Karatana
 
The Top Tips You need to Learn about Data in your Mobile App
Woodruff Solutions LLC
 
RESTful services
Pedram Bashiri
 
Gaining the Knowledge of the Open Data Protocol (OData)
Woodruff Solutions LLC
 
Modified REST Presentation
Alexandros Marinos
 
World Azure Day Mobile Services Presentation
Dmitri Artamonov
 
Enterprise REST
Ganesh Prasad
 
RESTful APIs in .NET
Greg Sohl
 
What are restful web services?
Aparna Sharma
 
REST Presentation
Sarwajit Kumar
 
Mini-Training: Let's have a rest
Betclic Everest Group Tech Team
 
RESTful_Web_Services_Presentation (1).pptx
onlinesewatest
 
Beginner's Guide REST Basics - 101 by Smartbear
Eski2
 
Building nTier Applications with Entity Framework Services (Part 2)
David McCarter
 
Ad

More from Woodruff Solutions LLC (12)

PDF
A Look at OData
Woodruff Solutions LLC
 
PPTX
Learning How to Shape and Configure an OData Service for High Performing Web ...
Woodruff Solutions LLC
 
PPTX
Gaining the Knowledge of the Open Data Protocol (OData) - Prairie Dev Con
Woodruff Solutions LLC
 
PPTX
Developing Mobile Solutions with Azure Mobile Services in Windows 8.1 and Win...
Woodruff Solutions LLC
 
PPTX
Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013
Woodruff Solutions LLC
 
PPTX
Developing Mobile Solutions with Azure and Windows Phone VSLive! Redmond 2013
Woodruff Solutions LLC
 
PPTX
AzureConf 2013 Developing Cross Platform Mobile Solutions with Azure Mobile...
Woodruff Solutions LLC
 
PPTX
Sql Azure Data Sync
Woodruff Solutions LLC
 
PPTX
Producing an OData feed in 10 minutes
Woodruff Solutions LLC
 
PPTX
Sailing on the ocean of 1s and 0s
Woodruff Solutions LLC
 
PPTX
Breaking down data silos with OData
Woodruff Solutions LLC
 
PPTX
Breaking down data silos with the open data protocol
Woodruff Solutions LLC
 
A Look at OData
Woodruff Solutions LLC
 
Learning How to Shape and Configure an OData Service for High Performing Web ...
Woodruff Solutions LLC
 
Gaining the Knowledge of the Open Data Protocol (OData) - Prairie Dev Con
Woodruff Solutions LLC
 
Developing Mobile Solutions with Azure Mobile Services in Windows 8.1 and Win...
Woodruff Solutions LLC
 
Pushing Data to and from the Cloud with SQL Azure Data Sync -- TechEd NA 2013
Woodruff Solutions LLC
 
Developing Mobile Solutions with Azure and Windows Phone VSLive! Redmond 2013
Woodruff Solutions LLC
 
AzureConf 2013 Developing Cross Platform Mobile Solutions with Azure Mobile...
Woodruff Solutions LLC
 
Sql Azure Data Sync
Woodruff Solutions LLC
 
Producing an OData feed in 10 minutes
Woodruff Solutions LLC
 
Sailing on the ocean of 1s and 0s
Woodruff Solutions LLC
 
Breaking down data silos with OData
Woodruff Solutions LLC
 
Breaking down data silos with the open data protocol
Woodruff Solutions LLC
 

Recently uploaded (20)

PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
PDF
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
PPTX
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
PPTX
Wondershare Filmora Crack Free Download 2025
josanj305
 
PPTX
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
PDF
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
PDF
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PDF
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
Wondershare Filmora Crack Free Download 2025
josanj305
 
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 

Connecting to Data from Windows Phone 8

Editor's Notes

  • #6: Representational State Transfer (REST) is defined as an architectural style, which means that it is not a concrete systems architecture, but instead a set of constraints that are applied when designing a systems architecture. We briefly discuss these constraints, but then focus on explaining how the Web is one such systems architecture that implements REST. In particular, the mechanisms of the Uniform Resource Identifiers (URIs), the Hypertext Transfer Protocol (HTTP), media types, and markup languages such as the Hypertext Markup Language (HTML) and the Extensible Markup Language (XML). We also introduce Atom and the Atom Publishing Protocol (AtomPub) as two established ways on how RESTful services are already provided and used on today's Web.
  • #7: Client-Server: a pull-based interaction style: consuming components pull representations.Stateless: each request from client to server must contain all the information necessary to understand the request, and cannot take advantage of any stored context on the server.Cache: to improve network efficiency responses must be capable of being labeled as cacheable or non-cacheable.Uniform interface: all resources are accessed with a generic interface (e.g., HTTP GET, POST, PUT, DELETE).Named resources - the system is comprised of resources which are named using a URL.Interconnected resource representations - the representations of the resources are interconnected using URLs, thereby enabling a client to progress from one state to another.Layered components - intermediaries, such as proxy servers, cache servers, gateways, etc, can be inserted between clients and resources to support performance, security, etc.