Jon Flanders INT303. About Me  Jon Flanders –  Independent consultant/trainer  BizTalk MVP.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

Background REST (Representational State Transfer) What does it mean to be RESTful? Why REST? WCF How does WCF support REST? What are the pieces we need.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
demo Default WANGPSLookup Default WANGPS.
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
Co- location Mass Market Managed Hosting ISV Hosting.
Multitenant Model Request/Response General Model.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
 Bertrand Le Roy Senior Program Manager Lead Microsoft Corporation PC32.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
NEXT: Overview – Sharing skills & code.
Visual Studio 2008 and.NET 3.5 provide seamless support for all of the protocols and techniques popular in Web 2.0-style applications. Visual Studio.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
1 ADO.NET Data Services Mike Taulty Developer & Platform Group Microsoft Ltd
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
06 | HTTP Services with Web API Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Sr. Dir. – Systems Architecture Inlet Technologies.
Janakiram MSV Developer Evangelist Microsoft Corporation.

Возможности Excel 2010, о которых следует знать
Adventures in Haacking
Implementing RESTful Services Using the Microsoft .NET Framework
Driving Experiences via Services Using the Microsoft .NET Framework
Office Mac /30/2018 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Title of Presentation 12/2/2018 3:48 PM
Brian Keller Sr. Technical Evangelist Microsoft Session Code: DEV310
MIX 09 12/9/2018 6:08 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Brian Keller Sr. Technical Evangelist Microsoft Session Code: DEV310
The OpenRasta framework for building RESTful applications
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
Microsoft .NET Developer's Guide to WCF, SOA, and Success
Presentation transcript:

Jon Flanders INT303

About Me  Jon Flanders –  Independent consultant/trainer  BizTalk MVP

3 Storytime: Once upon time…

4 REST Representational State Transfer introduced by Roy Fielding Architectural style A set of constraints distilled from the architecture of the Web URIs represent resources Clients interact via with resources via a uniform interface (GET, POST, PUT, DELETE) Services are stateless

5 Why should you care? Microsoft Live Services.NET Services ADO.NET Data Services EVERYBODY that isn’t Microsoft (Twitter,Google, Yahoo, Facebook, MySpace) More to come from Microsoft and others – but why let them have all the fun (and rewards)?

6 REST Advantages GET responses can be cached Using URIs build on experience using the Web Uniform interface simplifies building and using services Statelessness constraint eases scalability GET is safe, can be called N times without causing change PUT and DELETE are idempotent (same effect no matter how many times called)

7 Building a RESTful service Design your resource(s) Determine the URI for each resource Determine what part of the uniform interface each resource should implement

8 Uniform Interface

9 Windows Communication Foundation (WCF) Framework for building applications that communicate Client-Server Message oriented Service oriented WCF abstracts away network complexities, developer concentrates on code Most of WCF is highly geared toward SOAP REST support added in 3.5 and improved in 3.5 sp1

10 WCF Messages to Methods In WCF developers write methods in classes that respond to network messages SOAP support in 3.0/3.5 routes messages to methods based on SOAP Action URI always the same Always uses POST Done by the default dispatcher

11 WCF 3.5 Web Programming Messages are routed to methods based on: URI HTTP Verb Same programming model as “SOAP” ServiceContract, OperationContract, DataContract New dispatcher that maps URIs/Verbs to methods

12 WCF 3.5 REST infrastructure UriTemplate & UriTemplateTable URI parsing WebGet & WebInvoke attributes UriTemplate defines URI WebGet + UriTemplate maps GET requests to methods WebInvoke + UriTemplate maps remainder of uniform interface to methods, Method property determines verb (POST is default) WebHttpBinding/WebServiceHost/WebServiceH ostFactory Eases use and configuration

WCF Dispatching Network Message Transport Channel Message Encoder Protocol Channel (1-N) Your Code Dispatcher (Action) Dispatcher (Action) Dispatcher (URI + VERB) Dispatcher (URI + VERB) Transport Channel (HTTP) Transport Channel (HTTP) Message Encoder (Text + No SOAP) Message Encoder (Text + No SOAP)

14 AJAX Support Many RESTful clients are JavaScript based AJAX clients JavaScript Object Notation (JSON) is the preferred resource representation Smaller footprint than XML No parsing necessary WCF has support for AJAX applications at two levels JSONDataContractSerializer for JSON parsing and generation JavaScript “proxy” build on ASP.NET AJAX

15 Web Feeds Web Feeds are endpoints that expose machine consumable resource representations Commonly used for web logs (blogs), news etc. Expansion into enterprise data is happening

16 WCF support for Feeds Built on top of WCF REST support (WebGet/UriTemplate) Feed specific feature is feed-format neutral object model Transform your data into the WCF OM OM serialized to either RSS or Atom (or other future formats – extensible formatting capabilities) OM is closer to Atom model (Atom is richer than RSS)

17 Know the rules, bend when necessary “…REST isn’t an all or nothing proposition. One can get significant value from partial adoption. “ Sam Ruby - Author RESTFul Web Services Don’t underestimate the power of GET!

18 Summary REST is an architectural style that encourages interoperable, scalable web services Builds on the existing architecture of the web WCF 3.5 adds support for this architecture

Complete an evaluation on CommNet and enter to win an Xbox 360 Elite!

© 2009 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. Required Slide