This document summarizes a presentation about Windows Communication Foundation (WCF) services for web developers. It discusses WCF programming models including SOAP and RESTful services. It provides an overview of SOAP and REST architectures and common bindings. Examples are given of calling SOAP and REST services. The document also discusses OData and WCF Data Services for exposing data via REST.
Report
Share
Report
Share
1 of 20
More Related Content
Wcf for the web developer
1. WCF for the web developerFlorin Cardașim, caf@rms.rotwitter: @cardasim, @CodeCampIasiRomSoft, www.rms.roIași, 8th of May 2010
2. AgendaWCF today: an overviewWCF Services for the WEB 2.0SOAP & RESTWCF Data Services
4. WCF Architecture - ChannelsWCF ServiceWCF ClientChannel A Channel A Channel B Channel B Channel C Channel C Transport Channel Transport Channel HTTP, TCP, MSMQ, etc.
7. What is SOAPSOAP = Simple(?!!) ObjectAccessProtocol=protocol, =standardsadvanced features: security, reliable messaging, transactionstransport neutrality (http, tcp, ipc, msmq …)uses POST when used over HTTProots in enterprise applications
11. What is RESTREST = REpresentationalState Transfer! protocol, ! format, ! standard= architectural styleeverything is a resource: Account, Balance …address: www.quickbank.com/Accounts/2uniform interface: HTTP GET, POST, PUT, DELETEroots in WEB facing services (for example Google Search)
12. A REST requestWCF ClientWCF ServiceGET www.quickbank.com/Accounts/2Account 1Account 2Account 3
15. When to SOAP? When to REST?Exposing data OR operations?Need for WS-*?Who will be using your service?What are you/your developers comfortable with?REST seems to be preferred in the clouds: Amazon S3Windows AzureGoogle…
16. OData: WCF Data ServicesOpen Data ProtocolREST-based protocol for CRUD-style operationsBased on AtomPubFormats: Atom, Xml, JSONDEMO
17. OData: Existing clients and serversClientsBrowser.NET 3.5, 4.0Java ScriptJava Restlet 2.0PHPASP.NET AJAXExcel 2010 Power PivotLINQPadServers
22. Your WCF Data ServiceResourcesAaron Skonnard, www.pluralsight.comDavid Chappel, www.davidchappel.comhttp://wildermuth.comMichele Bustamante, www.thatindigogirl.comMSDN REST Starter Kit
23. Please fill the evaluation formThank you very much!Florin Cardașim, caf@rms.rotwitter: @cardasim, @CodeCampIasiRomSoft, www.rms.roIași, 8th of May 2010
24. Demo: REST in .NET 4.0CachingAutomatic format selectionREST Starter Kit:Client APIPaste as Xml
Core Services: SOAP over any transport channelOperation-centric servicesWS-* standardsWeb HTTP Services: REST over HTTPWEB Facing services over HTTPXml/JSON/ATOM/RSSWCF Data Services (ADO.Net Data Services)Exposing data over Open Data Protocol (REST interface)WCF RIA Services (.NET RIA Services)Building end-to-end Silverlight applicationWCF Workflow ServicesLong running, durable operations or where the specification and enforcement of operation sequencing is important
Start with an example showing a service with the following endpoints:SOAP (basicHttp or wsHttp)REST POX (xml)REST JsonREST ATOMClients consuming these endpoints:?????What is SOAP? small demo, explain basic principlesWhat is REST? small demo, explain basic principlesMain differences between SOAP and RESThttp://www.devx.com/DevX/Article/8155 (beton!!!!)
Start with an example showing a service with the following endpoints:SOAP (basicHttp or wsHttp)REST POX (xml)REST JsonREST ATOMClients consuming these endpoints:?????What is SOAP? small demo, explain basic principlesWhat is REST? small demo, explain basic principlesMain differences between SOAP and RESThttp://www.devx.com/DevX/Article/8155 (beton!!!!)
Start with an example showing a service with the following endpoints:SOAP (basicHttp or wsHttp)REST POX (xml)REST JsonREST ATOMClients consuming these endpoints:?????What is SOAP? small demo, explain basic principlesWhat is REST? small demo, explain basic principlesMain differences between SOAP and RESThttp://www.devx.com/DevX/Article/8155 (beton!!!!)
Demo:Simple REST service using wcf 4.0 (help page, etc – veziwcf 4.0)Simple ATOM feed service &client using wcf 4.0
Demo:Simple REST service using wcf 4.0 (help page, etc – veziwcf 4.0)Simple ATOM feed service &client using wcf 4.0
Demo:Simple REST service using wcf 4.0 (help page, etc – veziwcf 4.0)Simple ATOM feed service &client using wcf 4.0
Demo:Simple REST service using wcf 4.0 (help page, etc – veziwcf 4.0)Simple ATOM feed service &client using wcf 4.0
Demo:Simple REST service using wcf 4.0 (help page, etc – veziwcf 4.0)Simple ATOM feed service &client using wcf 4.0
Demo:Simple REST service using wcf 4.0 (help page, etc – veziwcf 4.0)Simple ATOM feed service &client using wcf 4.0