Presentation is loading. Please wait.

Presentation is loading. Please wait.

Building and Consuming REST-based Data Services for the Web

Similar presentations


Presentation on theme: "Building and Consuming REST-based Data Services for the Web"— Presentation transcript:

1

2 Building and Consuming REST-based Data Services for the Web
Session Code: WUX313 Building and Consuming REST-based Data Services for the Web Mike Flasko Program Manager Microsoft

3 Agenda Why data services Characteristics of a data service
Creating and consuming services Summary: A data platform for the web

4 Silverlight Applications
Why Data Services? HTML + Javascript Data (XML, etc) DLL + XAML Data (XML, etc) Data (XML, etc) Mashup UI Data Feeds AJAX Applications Silverlight Applications Online Services Mashups

5 Exploring Data Services
Clients (Tools, Libraries, etc) HTTP (AtomPub) ADO.NET Data Services Framework SQL Data Services SQL Server (Cloud data service) (On premises data service)

6 A REST Interface for Data
Entity Data Model URIs Every resource is addressable via a URI Flexible URI scheme for data retrieval HTTP Data as resources, HTTP verbs to manipulate it Leverage caching, proxies, authentication, … Formats AtomPub, JSON The underlying model Entities and associations  resources and links

7 Creating Data Services
HTTP Create services directly from Visual Studio Various data sources Entity Framework LINQ providers Model-driven Structural description in Entity Data Model Schema shapes the service contract Hosting/HTTP Listener Data Services Runtime IQueryable [+ IUpdatable] Data Access Layer Entity Framework Custom LINQ provider Relational database Other sources

8 Refining and Securing Services
Visibility Per-container visibility control Read, Query and Write options Authentication Integrate with hosting environment ASP.NET, WCF or custom authentication schemes Interceptors Execute before HTTP GET/PUT/POST/DELETE Enable validation, custom row-level security policies Maintain the REST interface Service Operations Custom entry points, e.g. /MyTags?startDate=' ' Composable, follow URI scheme

9 Additional Service Considerations….
Optimistic Concurrency Integrates with EF notion of concurrency tokens per type Uses existing HTTP semantics (ETags) Batching Create responsive, operation intensive applications Enables “all or nothing” groups of CUD operations Versioning Simple versioning scheme Error Handling & Contracts Map exceptions in service-tier to platform independent, HTTP-friendly responses Debug mode to control verbosity of error information on the wire

10 Consuming Data Services
An HTTP stack is enough AtomPub clients .NET Framework & Silverlight 2 LINQ to ADO.NET Data Services Framework AJAX (CodePlex) ASP.NET Data Source Control

11 Summary Data Service Clients Tools HTTP (AtomPub, …) Domain Specific
(Visual Studio, …) Data Service Clients (Any HTTP client, .NET, SL, ASP.NET, ASP.NET AJAX, …) HTTP (AtomPub, …) Windows Azure Tables ADO.NET Data Services Framework (on premise or hosted) SQL Data Services Domain Specific Building Block

12 Roadmap ADO.NET Data Services Framework shipped as part of .NET FX 3.5 SP1 Updated AJAX client for data services released just before PDC08 Windows Azure Tables & SQL Data Services CTPs announced at PDC 08 Working on the design of data services V2 features now – let us know what you think! “Astoria Offline” Alpha Preview by EOY

13 What do you think? Transparent Design Process
Design notes posted to the team blog as we go ( Jump on a post early and its more likely your comments will shape the product Watch team members describe features in an uncomfortable setting

14 Q & A FRIDAY - DAY 5 12:45 - 13:15 Meet me in the
Ask-the-Experts pavilion! FRIDAY - DAY 5 12: :15

15 Resources Team blog: ADO.NET Data Services Forum
ADO.NET Data Services Forum Data developer center: me:

16 Related Content Data Services Chalk Talk
WUX09-IS Creating hybrid application/platform web properties using REST services (Friday Room 134) Entity Framework Sessions DAT Learning the Entity Framework DAT 307 – An In Depth Look at the Entity Framework

17 Now extended from 2 to 24 hours after session for more chance to WIN
Don’t forget to complete your session feedback forms via the CommNet terminals or the Registered Delegate Pages for your chance to win a HTC Touch Dual! With an amazing line up of international speakers, there are even more chances to win an evaluation prize! So make sure you submit feedback for all the sessions you attend!

18 Your feedback is important to us
Your feedback is important to us! Help us to understand what really matters to you! Submit your Overall Conference Feedback via the CommNet terminals or the Registered Delegate Pages for your chance to win an Inspiron Mini Notebook!

19

20 © 2008 Microsoft Corporation. All rights reserved
© 2008 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.


Download ppt "Building and Consuming REST-based Data Services for the Web"

Similar presentations


Ads by Google