Odata und WCF Data Services unter der Lupe… Mario Szpuszta Senior Architect, Microsoft Enterprise Services Microsoft Corporation (Austria)

Download Report

Transcript Odata und WCF Data Services unter der Lupe… Mario Szpuszta Senior Architect, Microsoft Enterprise Services Microsoft Corporation (Austria)

Odata und WCF Data
Services unter der Lupe…
Mario Szpuszta
Senior Architect, Microsoft Enterprise Services
Microsoft Corporation (Austria)
WCF Data Services
Framework, services based on OData
OData – Open Data Protocol
HTTP-based data services
Resouces (data) identified using URIs
Data as AtomPub or JSON
Operations map to HTTP-verbs
www.odata.org
www.odata.org/producers
www.odata.org/consumers
Creating WCF Data Services?
Create your queryable model
Add the WCF data service to provide access
Define access rights and public artifacts
Test the services with the browser
Consuming a WCF Data Service
WCF Data Services client library
.NET Framework,
Silverlight, Windows Phone 7
Proxyies generated based
on OData metadata document
http://www.odata.org/developers/
protocols/overview#ServiceMetadataDocument
Query, update, deferred loading,
paging, batching, sync/async
Securing WCF Data Services
Simplest possiblity – Windows Authentication
Forms-based authentication
Server: <authenticationService enabled="true" />
Client: retrieve & include cookie with every request
Claims-based security and WCF Data Services
Separate authentication out into security token service
OAuth and SWT (simple web tokens)
More Functionality to WCF Data Services
[QueryInterceptor] and [ChangeInterceptor]
Security-checks before exposing / changing data
More logic before exposing / changing data
Service operations [WebGet] or [WebInvoke]
Complex validation and logic
Advanced query-operations and update-operations
Options for dealing with Large Data
Deep nestings and hierarchies
Expand(); in LINQ-queries
LoadProperty(); for in-memory-objects
Large amounts of results retrieved – Paging
Page-size defined on server
Client works with continuation-tokens
Large binary objects (BLOB) – streaming provider
Resources and Links
All about OData: http://odata.org
New services
Netflix: http://odata.netflix.com
TwitPic: http://odata.twitpic.com
eBay: http://ebayodata.cloudapp.net/Docs
Facebook insights: http://apps.facebook.com/insightsodata
Windows Phone 7 library: http://odata.codeplex.com
iOS library: http://odataobjc.codeplex.com
Ruby library: http://github.com/visoft/ruby_odata
Access Control Service “labs” version:
© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.