SlideShare a Scribd company logo
WCF made easy with Microsoft .NET Framework 4 and Windows Server AppFabric
Robert MacLeanTechnology SpecialistBB&DWCF Made Easy with .NET 4 & Windows Server AppFabric
Who am I?Robert MacLeanMicrosoft ALM MVPMicrosoft ALM RangerProud Community Lead Information WorkerS.A. Architectwww.sadev.co.za@rmaclean
OvertureLevel 300What is new in WCF 4 to make it easy?What is AppFabric?WCF + AppFabric = EasyWarning: Excessive use of implicit, explicit and angle brackets ahead
The big picture of WCF 4What is new?Configuration defaults, default endpointsWorkflow ServicesHigh performance tracing with ETWNew features for REST-based servicesQueued messaging enhancementsNew protocolsBasic Profile 1.2WS-Discovery and DiscoveryServiceRouterServiceNew DataContractResolver, extensibility
My thoughts on WCFWCF is hardCompared to ASMXConfigurationBindingsEndpoints
Building ServicesASMXWCF SexyWrite class, add attributeInterface + AttributeExpose web methodsWrite class, add attribute“old” WCFJust work with POCOJust work with POCOInterface + AttributeWrite class, add attributeData ContractsConfigConfig Fixes
WCF SexyDemo
Protocol MappingsThis is your bindingStart with thisEg: http://demoDefault binding config!!!
Default Endpoints & HostsSelf HostSupply base address via code or configExplicit: ServiceHost.AddDefaultEndPoints() Implicit: ServiceHost.Open() IISBase address is .svc endpointHTTP protocol is provided by defaultProtocols can be added in IIS Manager
Are Default Endpoints A Good Thing?Designed to cater for the current majorityYou may be specialQuota issuesWSHttp or WebHttpMEXLimiting which contracts on which protocolsYou can override in machine.config (bad – mostly) or app.config (better – mostly)
Refined Default Config<system.serviceModel>  <behaviors>    <serviceBehaviors>      <behavior>        <serviceMetadatahttpGetEnabled="true"/>        <serviceDebugincludeExceptionDetailInFaults="false"/>      </behavior>    </serviceBehaviors>  </behaviors>  <serviceHostingEnvironmentmultipleSiteBindingsEnabled="true" /></system.serviceModel>
POCO BEFORE .NET 3.5 SP1Explicit[DataContract]publicclassUser{  [DataMember]  publicstringFirstName { get; set; }  [DataMember]  publicstringLastName { get; set; }  [DataMember]  publicstring Username { get; set; }  publicstring Password { get; set; } // do not share}
POCO FROM .NET 3.5 SP1IMPLICITpublicclassUser{  publicstringFirstName { get; set; }  publicstringLastName { get; set; }  publicstring Username { get; set; }  [IgnoreDataMember]  publicstring Password { get; set; } // do not share}
Been to my other talks?
A rose by any other name…Windows Server AppFabric Contains two key componentsHostingEndPoint, Windows App Server Extensions, DublinCachingVelocityNot to be confused with Azure AppFabric
N.B. AppFabricRequires .NET 4 on ServerApplications for not need .NET 4, depends on featuresStandalone download or Web Platform InstallerHigh Availability is only in Windows Server 2008 Enterprise & Data Centre
Windows Server AppFabric ArchitectureWindows Server AppFabricWindows Activation Services.NET FrameworkSQL ServerToolingLoggingIISWCFWFASP.NETVisual StudioSCOMPowerShellEvent Tracing for WindowsPersistenceMonitoringCaching
AppFabric + WCF = EasyDemo
SummaryWCF 4 can be as easy as ASMXFor majority of simple scenariosAbility to break the mould is thereAppFabric & WCFThe tools to configure and manage servicesScalable, manageable solution for hosting services on Windows
Questionsrobert@sadev.co.za@rmacleanMeet me at the community lounge
ResourcesRequired SlideLearningSessions On-Demand & CommunityMicrosoft Certification & Training Resourceswww.microsoft.com/techedwww.microsoft.com/learningResources for IT ProfessionalsResources for Developershttp://microsoft.com/msdnhttp://microsoft.com/technetNeed more Information?SMS [ Your Name ] and the word “AppServer” to 41491
Complete an evaluation via CommNet and Tag to win amazing prizes!
© 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.

More Related Content

PPT
Getting Started with Flex and PHP
PPT
Adobe Flex 4 Overview
PPT
Flex Framework Presentation PPT
PPTX
Wpf4 july2010
PPT
Adobe Flex Introduction
PPTX
Rits Brown Bag - Salesforce Lightning
PPTX
Windows Presentation Foundation
PPTX
Presentation on adobe Flex
Getting Started with Flex and PHP
Adobe Flex 4 Overview
Flex Framework Presentation PPT
Wpf4 july2010
Adobe Flex Introduction
Rits Brown Bag - Salesforce Lightning
Windows Presentation Foundation
Presentation on adobe Flex

What's hot (20)

PPTX
Windows Presentation Foundation & XAML
PPTX
Salesforce Lightning workshop
PPTX
Force.com Friday - Intro to Visualforce
PPT
Apache Flex: Overview
PPTX
Windows Phone Garage - Application Jumpstart
PPT
MikeTaulty_Ux_Update
PPTX
Migrating to Salesforce Lightning - A Personal Experience Presented to EA For...
PPTX
Intro to Salesforce Lightning Web Components (LWC)
PPTX
Tcs3 stc creating e pub and apps with tcs3
ODP
Salesforce Super Slider Lightning Component ppt
PPT
An Overview Of Wpf
PPTX
Salesforce Lightning Experience Overview by Brainiate
PPTX
Discover Salesforce Lightning 1
PPTX
Salesforce Winter Release
PPTX
Lightning web components
PPTX
Force.com Friday - Intro to Force.com
PPTX
Not Just Better, Faster - Expression and Sketchflow
PPT
Session 2: Office as a development platform with Visual Studio 2008
PPTX
Lightning web components - Introduction, component Lifecycle, Events, decorat...
PPTX
Novidades sobre o Silverlight 4
Windows Presentation Foundation & XAML
Salesforce Lightning workshop
Force.com Friday - Intro to Visualforce
Apache Flex: Overview
Windows Phone Garage - Application Jumpstart
MikeTaulty_Ux_Update
Migrating to Salesforce Lightning - A Personal Experience Presented to EA For...
Intro to Salesforce Lightning Web Components (LWC)
Tcs3 stc creating e pub and apps with tcs3
Salesforce Super Slider Lightning Component ppt
An Overview Of Wpf
Salesforce Lightning Experience Overview by Brainiate
Discover Salesforce Lightning 1
Salesforce Winter Release
Lightning web components
Force.com Friday - Intro to Force.com
Not Just Better, Faster - Expression and Sketchflow
Session 2: Office as a development platform with Visual Studio 2008
Lightning web components - Introduction, component Lifecycle, Events, decorat...
Novidades sobre o Silverlight 4
Ad

Viewers also liked (6)

PPTX
Don't Get Stung
PPTX
Azure best practices2
PPS
Wcf Transaction Handling
PPTX
Entity Framework 4 and WCF
PPTX
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
PPTX
What's New in WCF 4.5
Don't Get Stung
Azure best practices2
Wcf Transaction Handling
Entity Framework 4 and WCF
Advancio, Inc. Academy: Web Sevices, WCF & SOAPUI
What's New in WCF 4.5
Ad

Similar to WCF made easy with Microsoft .NET Framework 4 and Windows Server AppFabric (20)

PPT
What's New for Presentation in Visual Studio 2008 SP1
PPT
Daniel Egan Msdn Tech Days Oc Day2
PPTX
Tech·Ed 2010 Survival Guide
PPTX
MS Day EPITA 2010: Visual Studio 2010 et Framework .NET 4.0
PPT
Biztalk Server 2006
PPTX
Mike Taulty MIX10 Silverlight Frameworks and Patterns
PPTX
Office 365 for Developers
PDF
Primavera integration possibilities Technical overview - Oracle Primavera Col...
PPTX
SharePoint 2010 developer overview (in Visual Studio 2010)
PPT
WPF Applications, It's all about XAML these days
PPT
Soprex framework on .net in action
PPTX
Hands-On Workshop: Introduction to Development on Force.com for Developers
PPTX
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
PPTX
Introducing Windows Azure BizTalk Services
PPTX
A SharePoint Developers Guide to Project Server
PPTX
Visual Studio 2010 RTMtoSP1
PDF
Skype for business cloud connector edition v1.0
PPT
Building Data Centric Apps in WPF
PPT
Top 10 Things in Visual Studio 2008 since 2005
PPT
ASPNET for PHP Developers
What's New for Presentation in Visual Studio 2008 SP1
Daniel Egan Msdn Tech Days Oc Day2
Tech·Ed 2010 Survival Guide
MS Day EPITA 2010: Visual Studio 2010 et Framework .NET 4.0
Biztalk Server 2006
Mike Taulty MIX10 Silverlight Frameworks and Patterns
Office 365 for Developers
Primavera integration possibilities Technical overview - Oracle Primavera Col...
SharePoint 2010 developer overview (in Visual Studio 2010)
WPF Applications, It's all about XAML these days
Soprex framework on .net in action
Hands-On Workshop: Introduction to Development on Force.com for Developers
MSDN Presents: Visual Studio 2010, .NET 4, SharePoint 2010 for Developers
Introducing Windows Azure BizTalk Services
A SharePoint Developers Guide to Project Server
Visual Studio 2010 RTMtoSP1
Skype for business cloud connector edition v1.0
Building Data Centric Apps in WPF
Top 10 Things in Visual Studio 2008 since 2005
ASPNET for PHP Developers

More from Robert MacLean (20)

PPTX
Deno ...................................
PPTX
14 things you need to be a successful software developer (v3)
PPTX
OWASP TOP 10
PPTX
Building a µservice with Kotlin, Micronaut & GCP
PPTX
Looking at the Vue
PPTX
Kotlin 101
PPTX
Features of Kotlin I find exciting
PPTX
JavaScript Gotchas
PPTX
DevConf Survival Guide
PPTX
The state of testing @ Microsoft
PPTX
Visual Studio ❤ JavaScript
PPTX
What is new in C# 6?
PPTX
Putting the DOT in .NET - Dev/Ops/Test
PPTX
A Developer Day 2014 - Durban
PPTX
Agile lessons learned in the Microsoft ALM Rangers
PPTX
Hour of code - Train the trainer
PPTX
Building services for apps on a shoestring budget
PPTX
3 things your app API is doing WRONG
PPTX
Deno ...................................
14 things you need to be a successful software developer (v3)
OWASP TOP 10
Building a µservice with Kotlin, Micronaut & GCP
Looking at the Vue
Kotlin 101
Features of Kotlin I find exciting
JavaScript Gotchas
DevConf Survival Guide
The state of testing @ Microsoft
Visual Studio ❤ JavaScript
What is new in C# 6?
Putting the DOT in .NET - Dev/Ops/Test
A Developer Day 2014 - Durban
Agile lessons learned in the Microsoft ALM Rangers
Hour of code - Train the trainer
Building services for apps on a shoestring budget
3 things your app API is doing WRONG

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
cuic standard and advanced reporting.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Machine Learning_overview_presentation.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Approach and Philosophy of On baking technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Cloud computing and distributed systems.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Big Data Technologies - Introduction.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Reach Out and Touch Someone: Haptics and Empathic Computing
cuic standard and advanced reporting.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Machine Learning_overview_presentation.pptx
A Presentation on Artificial Intelligence
Building Integrated photovoltaic BIPV_UPV.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
A comparative analysis of optical character recognition models for extracting...
Approach and Philosophy of On baking technology
Unlocking AI with Model Context Protocol (MCP)
Cloud computing and distributed systems.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Big Data Technologies - Introduction.pptx

WCF made easy with Microsoft .NET Framework 4 and Windows Server AppFabric

  • 2. Robert MacLeanTechnology SpecialistBB&DWCF Made Easy with .NET 4 & Windows Server AppFabric
  • 3. Who am I?Robert MacLeanMicrosoft ALM MVPMicrosoft ALM RangerProud Community Lead Information WorkerS.A. Architectwww.sadev.co.za@rmaclean
  • 4. OvertureLevel 300What is new in WCF 4 to make it easy?What is AppFabric?WCF + AppFabric = EasyWarning: Excessive use of implicit, explicit and angle brackets ahead
  • 5. The big picture of WCF 4What is new?Configuration defaults, default endpointsWorkflow ServicesHigh performance tracing with ETWNew features for REST-based servicesQueued messaging enhancementsNew protocolsBasic Profile 1.2WS-Discovery and DiscoveryServiceRouterServiceNew DataContractResolver, extensibility
  • 6. My thoughts on WCFWCF is hardCompared to ASMXConfigurationBindingsEndpoints
  • 7. Building ServicesASMXWCF SexyWrite class, add attributeInterface + AttributeExpose web methodsWrite class, add attribute“old” WCFJust work with POCOJust work with POCOInterface + AttributeWrite class, add attributeData ContractsConfigConfig Fixes
  • 9. Protocol MappingsThis is your bindingStart with thisEg: http://demoDefault binding config!!!
  • 10. Default Endpoints & HostsSelf HostSupply base address via code or configExplicit: ServiceHost.AddDefaultEndPoints() Implicit: ServiceHost.Open() IISBase address is .svc endpointHTTP protocol is provided by defaultProtocols can be added in IIS Manager
  • 11. Are Default Endpoints A Good Thing?Designed to cater for the current majorityYou may be specialQuota issuesWSHttp or WebHttpMEXLimiting which contracts on which protocolsYou can override in machine.config (bad – mostly) or app.config (better – mostly)
  • 12. Refined Default Config<system.serviceModel> <behaviors> <serviceBehaviors> <behavior> <serviceMetadatahttpGetEnabled="true"/> <serviceDebugincludeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironmentmultipleSiteBindingsEnabled="true" /></system.serviceModel>
  • 13. POCO BEFORE .NET 3.5 SP1Explicit[DataContract]publicclassUser{ [DataMember] publicstringFirstName { get; set; } [DataMember] publicstringLastName { get; set; } [DataMember] publicstring Username { get; set; } publicstring Password { get; set; } // do not share}
  • 14. POCO FROM .NET 3.5 SP1IMPLICITpublicclassUser{ publicstringFirstName { get; set; } publicstringLastName { get; set; } publicstring Username { get; set; } [IgnoreDataMember] publicstring Password { get; set; } // do not share}
  • 15. Been to my other talks?
  • 16. A rose by any other name…Windows Server AppFabric Contains two key componentsHostingEndPoint, Windows App Server Extensions, DublinCachingVelocityNot to be confused with Azure AppFabric
  • 17. N.B. AppFabricRequires .NET 4 on ServerApplications for not need .NET 4, depends on featuresStandalone download or Web Platform InstallerHigh Availability is only in Windows Server 2008 Enterprise & Data Centre
  • 18. Windows Server AppFabric ArchitectureWindows Server AppFabricWindows Activation Services.NET FrameworkSQL ServerToolingLoggingIISWCFWFASP.NETVisual StudioSCOMPowerShellEvent Tracing for WindowsPersistenceMonitoringCaching
  • 19. AppFabric + WCF = EasyDemo
  • 20. SummaryWCF 4 can be as easy as ASMXFor majority of simple scenariosAbility to break the mould is thereAppFabric & WCFThe tools to configure and manage servicesScalable, manageable solution for hosting services on Windows
  • 22. ResourcesRequired SlideLearningSessions On-Demand & CommunityMicrosoft Certification & Training Resourceswww.microsoft.com/techedwww.microsoft.com/learningResources for IT ProfessionalsResources for Developershttp://microsoft.com/msdnhttp://microsoft.com/technetNeed more Information?SMS [ Your Name ] and the word “AppServer” to 41491
  • 23. Complete an evaluation via CommNet and Tag to win amazing prizes!
  • 24. © 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.
  • 26. AgendaAgenda SubtitleAgenda item 1Agenda subheadingAgenda Item 2Agenda subheadingAgenda item 3Agenda subheadingEtc…
  • 28. PowerPoint TemplateSubtitle colorExample of a slide with a subheadSet the slide header to “Title Case”Set subheads in “sentence case”Generally set subhead to 36pt or smaller so it will fit on asingle lineThe subhead color is defined for this template but mustbe selected
  • 29. Sample FillSample FillPowerPoint GuidelinesFont, size, and color for text have been formatted for you in the Slide MasterUse the color palette shown belowHyperlink color: www.microsoft.comSample FillSample FillSample FillSample Fill
  • 30. Slide for Showing Software CodeUse this layout to show software codeThe font is Consolas, a monospace fontThe slide doesn’t use bullets but levels can be indented using the “Increase List Level” icon on the Home menuTo use straight quotes " instead of smart quotes ”, do this:Click on the Office Button in the upper left cornerAt the bottom of the menu, choose PowerPoint OptionsFrom the left pane, select ProofingClick on the AutoCorrect Options buttonSelect the AutoFormat As You Type tab, and deselect “Straight quotes” with “smart quotes”. Then Click OK.
  • 34. Breakout sessionsBreakout sessionsBreakout sessionsBreakout sessionsRelated Content