.NET Framework V3.5+ &  RESTful  web services Mike Taulty Developer & Platform Group Microsoft Ltd [email_address] http://...
Agenda <ul><li>Windows Communication Foundation V3.5 </li></ul><ul><ul><li>Released </li></ul></ul><ul><ul><li>Visual Stud...
<ul><li>RESTful?   </li></ul>
RESTful? Resources Res 1 Res 2 Res 3 Res 4 HTTP Request URL VERB Payload HTTP Response Status GET POST PUT DELETE XML JSON...
RESTful? <ul><li>RE presentational  S tate  T ransfer </li></ul><ul><li>In a nutshell; </li></ul><ul><ul><li>Server-side r...
RESTful?
<ul><li>WCF V3.5 </li></ul>
WCF V3.5 and REST <ul><li>New capabilities around RESTful services </li></ul><ul><ul><li>webHttpBinding </li></ul></ul><ul...
WCF V3.5 REST and Syndication
<ul><li>ADO.NET Data Services </li></ul>
Data Services <ul><li>Built on top of WCF V3.5 </li></ul><ul><li>CRUD access to  data  over a RESTful interface </li></ul>...
data? what kind of data? <ul><li>Provide a  type  with public properties which are; </li></ul><ul><ul><li>IQueryable<T>, I...
entity framework? who he?  <ul><li>Extension to the provider model </li></ul><ul><li>Conceptual model </li></ul><ul><ul><l...
ADO.NET Data Services
More Data Services Capabilities <ul><li>Service Operations </li></ul><ul><ul><li>Expose more advanced functionality </li><...
ADO.NET Data Services II
Resources <ul><li>http://www.asp.net </li></ul><ul><li>(looking for “3.5 Extensions preview”)   </li></ul><ul><li>http://m...
MSDN in the UK <ul><li>Visit  http://msdn.co.uk   </li></ul><ul><ul><li>Newsletter </li></ul></ul><ul><ul><li>Events </li>...
 
Upcoming SlideShare
Loading in...5
×

Time for a REST - .NET Framework v3.5 & RESTful Web Services

3,332

Published on


Building Services: .NET FX 3.5, SOAP, REST, and Beyond

Most developers will be aware of various Microsoft technologies to help build SOAP services, the latest of which are WCF and WF in .NET FX 3.5, but there’s another world of services outside SOAP. Recently Microsoft has been very active in its support for, and use of, REST as a mechanism for implementing services. This event will cover recent and forthcoming technologies for building services with SOAP and REST, and we’ll explain REST for the uninitiated.

Agenda:

Session 1: The SOAP Story
In this session we’ll do a lighting quick re-cap of what SOAP is, what specs surround it before looking at how far the SOAP programming model has come in Microsoft’s latest-and-greatest stack – Windows Communication Foundation (WCF) V3.5. We’ll talk about different approaches to building services and we’ll take a good look at the integration between WCF V3.5 and Windows Workflow Foundation (WF) V3.5 which opens up a whole new way of implementing services.

Session 2: Time for a REST
Web applications have evolved; using technologies like AJAX and Silverlight they have rich client-side code that wants to consume services, but they prefer JSON, “plain xml” and REST. In this session we’ll introduce REST for the uninitiated, and we’ll demonstrate some of the new and forthcoming technology that Microsoft has for working with REST: WCF 3.5, Web3S, Windows Live Data, and Codename “Astoria”.

For more details and the original slidedeck visit http://www.microsoft.com/uk/msdn/events/new/Detail.aspx?id=316

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
3,332
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
89
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Time for a REST - .NET Framework v3.5 & RESTful Web Services

  1. 1. .NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd [email_address] http://www.mtaulty.com
  2. 2. Agenda <ul><li>Windows Communication Foundation V3.5 </li></ul><ul><ul><li>Released </li></ul></ul><ul><ul><li>Visual Studio 2008/.NET Framework V3.5 </li></ul></ul><ul><li>ADO.NET Data Services </li></ul><ul><ul><li>Preview – framework and tooling </li></ul></ul><ul><ul><li>Latest is the December CTP, ships H1 2008 </li></ul></ul><ul><ul><li>Has strong links to ADO.NET Entity Framework </li></ul></ul><ul><ul><ul><li>Both are part of ASP.NET 3.5 Extensions Preview </li></ul></ul></ul>
  3. 3. <ul><li>RESTful? </li></ul>
  4. 4. RESTful? Resources Res 1 Res 2 Res 3 Res 4 HTTP Request URL VERB Payload HTTP Response Status GET POST PUT DELETE XML JSON Payload XML JSON
  5. 5. RESTful? <ul><li>RE presentational S tate T ransfer </li></ul><ul><li>In a nutshell; </li></ul><ul><ul><li>Server-side resources identified by a URI </li></ul></ul><ul><ul><li>Access is over HTTP, verb tied to action </li></ul></ul><ul><ul><ul><li>GET to read the value of a resource </li></ul></ul></ul><ul><ul><ul><li>POST to create a new resource* </li></ul></ul></ul><ul><ul><ul><li>PUT to update an existing resource* </li></ul></ul></ul><ul><ul><ul><li>DELETE to delete a resource </li></ul></ul></ul><ul><ul><li>Returned data is “plain” – XML or JSON </li></ul></ul>
  6. 6. RESTful?
  7. 7. <ul><li>WCF V3.5 </li></ul>
  8. 8. WCF V3.5 and REST <ul><li>New capabilities around RESTful services </li></ul><ul><ul><li>webHttpBinding </li></ul></ul><ul><ul><ul><li>HTTP(S) protocol (not new in itself) </li></ul></ul></ul><ul><ul><ul><li>URI based dispatch and parameter passing </li></ul></ul></ul><ul><ul><ul><li>“ Plain” XML/JSON serialisation </li></ul></ul></ul><ul><li>New RSS/Atom publication capabilities </li></ul>
  9. 9. WCF V3.5 REST and Syndication
  10. 10. <ul><li>ADO.NET Data Services </li></ul>
  11. 11. Data Services <ul><li>Built on top of WCF V3.5 </li></ul><ul><li>CRUD access to data over a RESTful interface </li></ul><ul><ul><li>Returns XML (ATOM format) or JSON </li></ul></ul><ul><li>Built-in URI-based query syntax </li></ul><ul><ul><li>selection, filtering, paging, sorting </li></ul></ul><ul><li>Client-side libraries for .NET and AJAX clients </li></ul><ul><ul><li>Desktop .NET and Silverlight .NET </li></ul></ul>
  12. 12. data? what kind of data? <ul><li>Provide a type with public properties which are; </li></ul><ul><ul><li>IQueryable<T>, IEnumerable<T> </li></ul></ul><ul><li>Also get write access if your type implements; </li></ul><ul><ul><li>IUpdatable </li></ul></ul><ul><li>Works well with generated code from; </li></ul><ul><ul><li>ADO.NET Entity Framework ( ObjectContext ) </li></ul></ul><ul><ul><li>LINQ to SQL ( DataContext* ) </li></ul></ul>
  13. 13. entity framework? who he? <ul><li>Extension to the provider model </li></ul><ul><li>Conceptual model </li></ul><ul><ul><li>Inheritance </li></ul></ul><ul><ul><li>Relationships </li></ul></ul><ul><ul><li>Composite Entities </li></ul></ul><ul><li>Abstractions </li></ul><ul><ul><li>Schema of the store </li></ul></ul><ul><ul><li>SQL dialact of the store </li></ul></ul>“ V3.0” Store .NET Provider V2.0 Conceptual Model .NET Provider (EntitySQL) ORM & LINQ Mapping
  14. 14. ADO.NET Data Services
  15. 15. More Data Services Capabilities <ul><li>Service Operations </li></ul><ul><ul><li>Expose more advanced functionality </li></ul></ul><ul><li>Query Interceptors </li></ul><ul><ul><li>Hook into requests for resources and run custom logic </li></ul></ul><ul><li>Update Interceptors </li></ul><ul><ul><li>Hook into modifications for resources and run custom logic </li></ul></ul>
  16. 16. ADO.NET Data Services II
  17. 17. Resources <ul><li>http://www.asp.net </li></ul><ul><li>(looking for “3.5 Extensions preview”) </li></ul><ul><li>http://msdn.co.uk </li></ul><ul><li>(looking for WCF V3.5 screencasts) </li></ul>
  18. 18. MSDN in the UK <ul><li>Visit http://msdn.co.uk </li></ul><ul><ul><li>Newsletter </li></ul></ul><ul><ul><li>Events </li></ul></ul><ul><ul><li>Screencasts </li></ul></ul><ul><ul><li>Blogs </li></ul></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×