Web Service Programming with WCF 3.5 Eyal Vardi CEO E4D Solutions LTD Microsoft MVP Visual C# blog: www.eVardi.com.

Slides:



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

SOAP Because SOAP uses POST and POST is unsafe to cache *Except Data Caching.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Preface Demo A Quick Thank You How Did We Do It?
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.
© 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.
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
 Stephen Walther ASP.NET MVC Ninja Microsoft Corporation PV31.
Co- location Mass Market Managed Hosting ISV Hosting.
06 | Implementing Web APIs Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
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.
Announcing Demo Announcing.
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.
Connect with life Connect with life
Windows Azure Connect Name Title Microsoft Corporation.
NEXT: Overview – Sharing skills & code.
Project “Astoria” first announced in Mix 2007 Shared early prototypes, got tons of feedback Now we’re talking about the real deal Production quality bits,
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
 Mike Flasko Program Manager Microsoft Corporation TL07.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
SQL Server SQL Azure Visual Studio“Quadrant” SQL Server Modeling Services Entity Framework ADO.NET“M”/EDM Data Services …
announcing Dev Manager Do I understand what we’ve built? Developer Can I bet on using this shared component? Testers What’s changed since I last.
© 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.
Windows Azure SQL Data Sync Name Title Microsoft Corporation.
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.

Возможности Excel 2010, о которых следует знать
Adventures in Haacking
Driving Experiences via Services Using the Microsoft .NET Framework
Title of Presentation 12/2/2018 3:48 PM
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.
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.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
From Start to REST in 60 Minutes (DEV323)
Шитманов Дархан Қаражанұлы Тарих пәнінің
ASP.NET Roadmap: One ASP.NET – Web Forms, MVC, Web API, and more
Title of Presentation 5/24/2019 1:26 PM
7/19/2019 2:53 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Presentation transcript:

Web Service Programming with WCF 3.5 Eyal Vardi CEO E4D Solutions LTD Microsoft MVP Visual C# blog:

Agenda Web Services Future (Cloud Computing) Web Services Customizations with.NET 3.5 – JSON / POX vs. SOAP – GET vs. POST, PUT & DELETE – Cache – URI Template ADO.NET Data Services ( LINQ to URL )

About Consulting Mentoring Projects

Web Services Everywhere…

You know how it starts, But you don’t know how it ends !!! You know how it starts, But you don’t know how it ends !!!

Web Services Customizations

POST SimpleService.asmx/EchoString HTTP/1.1 Host: localhost:1489 User-Agent: Mozilla/5.0 Accept: text/html Content-Type: application/json; Content-Length: XML, JSON, SOAP, AtomPub... HTTP Communication Headers Data VerbURL

POST SimpleService.asmx/EchoString HTTP/1.1 Host: localhost:1489 User-Agent: Mozilla/5.0 Accept: text/html,application/xhtml+xml Content-Type: application/json; Content-Length: JSON vs. SOAP { "Age":37, "FirstName":"Eyal", "ID":"123", "LastName":"Vardi“ } Headers Data VerbURL

Before WCF ( ASMX )

DEMO Web Service ( ASMX ) Customization

ASMX HTTP Options OptionsASMX Data SOAP, XML, JSON, {arg}={value} SOAP, XML, JSON, {arg}={value} Verbs POST, GET POST, GET Headers Help Page Description WebMethod WebMethod Cache JS Proxy ScriptMethod ScriptMethod URI Template NO NO Config

WCF Solutions ( WebGet, WebInvoke )

DEMO Web Service ( WCF ) Customization

ASMX vs. WCF OptionsASMXWCF Data XML, JSON XML, JSON Verbs POST, GET POST, GET GET, POST, HEAD… GET, POST, HEAD… Headers Help Page NO NO Description WebMethod WebMethod NO NO Cache WebMethod WebMethod Headers Headers JS Proxy ScriptMethod ScriptMethod Yes / NO Yes / NO URI Template NO NO Yes Yes Config NO NO NO / Yes NO / Yes

DEMO WCF Dynamic Format ( XML or JSON )

Client Caching The request doesn’t get to the server, unless the data is expires. Browser GET E4D/Demos/Test.svc HTTP/1.1 Cache-Control : private | max-age=5 | no-cache Expires : Sun, 16 Nov :58:18 GT11 GET E4D/Demos/Test.svc HTTP/1.1 Cache-Control : private | max-age=5 | no-cache Expires : Sun, 16 Nov :58:18 GT11 HTTP Response

GET E4D/Demos/Test.svc HTTP/1.1 If-Modified-Since: 16/11/ :58:13 Etag : d06606c5-7fab-46f0-a5cd-6f911e3e51eb GET E4D/Demos/Test.svc HTTP/1.1 If-Modified-Since: 16/11/ :58:13 Etag : d06606c5-7fab-46f0-a5cd-6f911e3e51eb HTTP/ Not Modified Cache-Control: no-cache Connection: Close HTTP/ Not Modified Cache-Control: no-cache Connection: Close Server Caching Request 304 Status Browser HTTP Response GET E4D/Demos/Test.svc HTTP/1.1 Cache-Control : no-cache Expires : Sun, 16 Nov :58:18 GT11 GET E4D/Demos/Test.svc HTTP/1.1 Cache-Control : no-cache Expires : Sun, 16 Nov :58:18 GT11

DEMO Server Caching

ASP.NET Server Caching Request Response Browser SQL Dependency Duration Vary By Param

DEMO ASP.NET Server Caching

ADO.NET Data Services

LINQ to URL AtomPub Win App orBrowser Data Service IQuerable from x in Products where x.ID > 555 select x.Name

Services Platform System.NetSystem.Net WCFWCF Data Services Application / Service

DEMO Data Services Hello World

Summary Get the MAX from the HTTP 1.1 Caching SOAP vs. JSON ADO.NET Data Services

Additional Resources My blog. WCF REST Starter Kit HTTP Protocol (RFC2616) WCF Web Programming Model Overview

Related Sessions DEV401: ASP.NET Ajax Internals Dan Amiga 09:00 – 10:30 DEV309: Building Web Sites with ASP.NET MVC Noam King 16:00 – 17:10 ARC301: “Velocity” Yair Siwek 16:00 – 17:10

© 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.