Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating REST Services with WCF and EF. About Me: Architect with CEI > concentration is ALM practice. 10 years experience developing with Microsoft Tools.

Similar presentations


Presentation on theme: "Creating REST Services with WCF and EF. About Me: Architect with CEI > concentration is ALM practice. 10 years experience developing with Microsoft Tools."— Presentation transcript:

1 Creating REST Services with WCF and EF

2 About Me: Architect with CEI > concentration is ALM practice. 10 years experience developing with Microsoft Tools and Technologies. President of the Innsbrook.Net User Group Richmond Code Camp Planning Committee Local Regional and National Speaking engagements Visual Studio ALM MVP

3 Creating REST Services with WCF and EF

4 What We Will Cover An overview/discussion of REST as an architectural pattern Environment Setup Demo and code discussion – Building a RESTful service with WCF/EF Practical Usage Pattern Questions

5 Creating REST Services with WCF and EF REST as an architectural pattern REST or nothing!!!! SOA is all I wanna knowa!

6 Creating REST Services with WCF and EF REST as an architectural pattern REpresentational State Transfer Pattern given name in a dissertation by Dr. Roy Fielding at the University of California in 2000 States that web should be less about machine-to-machine interaction (SOA) and more about machine-to-human interaction. Based on the concept of resources (sources of specific information). Client Server We’ve been using REST for years…ever heard of Google? Amazon? Request Resource Return Representation

7 Creating REST Services with WCF and EF REST as an architectural pattern Uses HTTP/HTTPS transport protocols HTTPCRUD POSTCreate, Update, Delete GETRead PUTCreate, Update DELETEDelete Different uri patterns – may also present a RESTful uri pattern: http://mysite/Customer.svc?country=USA http://mysite/Customer/Country/USA

8 Creating REST Services with WCF and EF Building WCF REST Services – Environment Setup

9 Creating REST Services with WCF and EF Building WCF REST Services – Environment Setup

10 Creating REST Services with WCF and EF

11 DEMO – Code Walkthrough Service Side

12 Creating REST Services with WCF and EF Key take aways VS 2010.NET 4.0 – download WCF template Not limited to syndication models can use POX, JSON, text, just about anything. Uses the HTTP transport protocol. WCF maps Uri to methods Parameters passed in via query string are auto mapped by WCF to method parameters as long as they are same name. Can use EF in a layered model.

13 Creating REST Services with WCF and EF DEMO – Consuming a REST Service

14 Creating REST Services with WCF and EF Practical Usage Scenarios REST is a suitable choice for services that exchange data over HTTP and have no requirement to use the advanced protocol capabilities of WCF (SOAP and WS-*) such as: non-HTTP transports message exchange patterns other than request/response message-based security, reliability, and transactions REST is not suitable for “chatty” messaging. REST is not suitable for high security scenarios. REST is not practical for certain B2B scenarios.

15 Creating REST Services with WCF and EF Questions?

16 Creating REST Services with WCF and EF Contact Information: Blog – http://www.vsteamsystemcentral.com/cs21/blogs/kevin_israel/default.aspx http://www.vsteamsystemcentral.com/cs21/blogs/kevin_israel/default.aspx Email – kevdadev@gmail.comkevdadev@gmail.com Site – http://www.kevinisrael.com Twitter - @kevdadev


Download ppt "Creating REST Services with WCF and EF. About Me: Architect with CEI > concentration is ALM practice. 10 years experience developing with Microsoft Tools."

Similar presentations


Ads by Google