This document provides an overview of Windows Communication Foundation (WCF) and Windows Server AppFabric. It discusses new features in WCF 4 that make it easier to use, such as default endpoints and configuration. It also explains what AppFabric is and how it can be used with WCF to provide a scalable and manageable solution for hosting services on Windows. The document contains examples of using Plain Old CLR Objects (POCO) with WCF and demonstrates how WCF and AppFabric can work together easily.
3. Who am I? Robert MacLean Microsoft ALM MVP Microsoft ALM Ranger Proud Community Lead Information Worker S.A. Architect www.sadev.co.za @rmaclean
4. Overture Level 300 What is new in WCF 4 to make it easy? What is AppFabric? WCF + AppFabric = Easy Warning: Excessive use of implicit, explicit and angle brackets ahead
5. The big picture of WCF 4 What is new? Configuration defaults, default endpoints Workflow Services High performance tracing with ETW New features for REST-based services Queued messaging enhancements New protocols Basic Profile 1.2 WS-Discovery and DiscoveryService RouterService New DataContractResolver, extensibility
6. My thoughts on WCF WCF is hard Compared to ASMX Configuration Bindings Endpoints
7. Building Services ASMX WCF Sexy Write class, add attribute Interface + Attribute Expose web methods Write class, add attribute “old” WCF Just work with POCO Just work with POCO Interface + Attribute Write class, add attribute Data Contracts Config Config Fixes
9. Protocol Mappings This is your binding Start with this Eg: http://demo Default binding config!!!
10. Default Endpoints & Hosts Self Host Supply base address via code or config Explicit: ServiceHost.AddDefaultEndPoints() Implicit: ServiceHost.Open() IIS Base address is .svc endpoint HTTP protocol is provided by default Protocols can be added in IIS Manager
11. Are Default Endpoints A Good Thing? Designed to cater for the current majority You may be special Quota issues WSHttp or WebHttp MEX Limiting which contracts on which protocols You can override in machine.config (bad – mostly) or app.config (better – mostly)
16. A rose by any other name… Windows Server AppFabric Contains two key components Hosting EndPoint, Windows App Server Extensions, Dublin Caching Velocity Not to be confused with Azure AppFabric
17. N.B. AppFabric Requires .NET 4 on Server Applications for not need .NET 4, depends on features Standalone download or Web Platform Installer High Availability is only in Windows Server 2008 Enterprise & Data Centre
18. Windows Server AppFabric Architecture Windows Server AppFabric Windows Activation Services .NET Framework SQL Server Tooling Logging IIS WCF WF ASP.NET Visual Studio SCOM PowerShell Event Tracing for Windows Persistence Monitoring Caching
20. Summary WCF 4 can be as easy as ASMX For majority of simple scenarios Ability to break the mould is there AppFabric & WCF The tools to configure and manage services Scalable, manageable solution for hosting services on Windows
22. Resources Required Slide Learning Sessions On-Demand & Community Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning Resources for IT Professionals Resources for Developers http://microsoft.com/msdn http://microsoft.com/technet Need more Information? SMS [ Your Name ] and the word “AppServer” to 41491
28. PowerPoint TemplateSubtitle color Example of a slide with a subhead Set the slide header to “Title Case” Set subheads in “sentence case” Generally set subhead to 36pt or smaller so it will fit on asingle line The subhead color is defined for this template but mustbe selected
29. Sample Fill Sample Fill PowerPoint Guidelines Font, size, and color for text have been formatted for you in the Slide Master Use the color palette shown below Hyperlink color: www.microsoft.com Sample Fill Sample Fill Sample Fill Sample Fill
30. Slide for Showing Software Code Use this layout to show software code The font is Consolas, a monospace font The slide doesn’t use bullets but levels can be indented using the “Increase List Level” icon on the Home menu To use straight quotes " instead of smart quotes ”, do this: Click on the Office Button in the upper left corner At the bottom of the menu, choose PowerPoint Options From the left pane, select Proofing Click on the AutoCorrect Options button Select the AutoFormat As You Type tab, and deselect “Straight quotes” with “smart quotes”. Then Click OK.