Tech Ed North America 2010 1/2/2018 8:56 PM Required Slide

Slides:



Advertisements
Similar presentations
Faith Allington Program Manager Microsoft Corporation Session Code: WSV304.
Advertisements

What’s New with IIS 8: Open Web Platform for Cloud
2010 Microsoft BI Conference
Tech Ed North America /27/ :46 PM SESSION CODE: ASI203
Tech·Ed North America /6/2018 2:20 AM
Tech·Ed  North America /11/ :01 AM SESSION CODE: DEV405
6/12/ :53 PM DEV311 Deep Dive into Microsoft Visual Studio Team Foundation Server 2010 Reporting Steven Borg, Principal ALM Consultant Northwest.
2010 Microsoft BI Conference
9/11/2018 5:53 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
MDOP: Advanced Group Policy Management 4.0
Tech Ed North America /13/ :13 AM Required Slide
Tech·Ed North America /14/2018 7:13 PM
Excel Services Deployment and Administration
Microsoft Visual Studio IDE Futures
Overview of Social Computing in Microsoft SharePoint 2010
Integrating Microsoft SharePoint 2010 with Windows Azure
Customer Experiences With Business Intelligence
Implementing RESTful Services Using the Microsoft .NET Framework
Windows PowerShell Remoting: Definitely NOT Just for Servers
TechEd /14/2018 6:26 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Sysinternals Tutorials
T-SQL Power! The OVER Clause: Your Key to No-Sweat Problem Solving
Tech·Ed North America /19/ :44 PM
What’s New In ASP.NET MVC 2
11/22/2018 8:05 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Matt Masson Software Development Engineer Microsoft Corporation
Advanced Dashboard Creation Using Microsoft SharePoint Server 2010
Jason Zander Unplugged
Delivering an End-to-End Business Intelligence Solution
Manage Your Enterprise from a Single Seat: Windows PowerShell Remoting
Code Walkthrough of a Cloud Application Running on the Windows Azure Platform
12/5/2018 3:24 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Tech·Ed North America /5/2018 6:43 PM
Windows 7 Deployment en Masse
Best Practices: Creating OData Services using WCF Data Services
Tech·Ed North America /7/2018 2:51 PM
Team Foundation Server 2010 for Everyone
Introducing Microsoft SQL Server 2008 R2 Master Data Services
Authoring for Microsoft Silverlight 4 with Microsoft Expression Blend
Tech Ed North America /1/ :36 AM Required Slide
Tech Ed North America /1/2019 2:58 AM Required Slide
Intro to Workflow Services and Windows Server AppFabric
Tech·Ed North America /2/2019 4:47 PM
TechEd /11/ :54 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Microsoft Visual Studio 2010 for Web Deployment
TechEd /18/2019 2:43 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Microsoft SharePoint Conference 2009 Jon Flanders
2010 Microsoft BI Conference
2/22/2019 7:48 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Tech·Ed North America /22/2019 7:40 PM
Vittorio Bertocci Principal Technical Evangelist Microsoft
Building Silverlight Apps with RIA Services
Developing Advanced Applications with Windows Azure
2/27/2019 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Tech·Ed North America /28/ :49 PM
Developing for Windows Azure
Tech Ed North America /12/2019 6:45 AM Required Slide
A Lap Around Internet Explorer 9 For Developers
2010 Microsoft BI Conference
Tech·Ed North America /25/ :53 PM
Hack-proofing your Clients using Windows 7 Security!
How and When to Use MEF: Too Much Is Never Enough
Tech Ed North America /27/ :04 AM Required Slide
Lap Around the Windows Azure Platform
Code First Development in Microsoft ADO.NET Entity Framework 4.1
Building BI applications using PowerPivot for Excel
6/20/2019 1:09 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Tech Ed North America /6/2019 2:07 PM Required Slide
Tech·Ed North America /7/2019 2:30 PM
利用IIS部署與維護 SOA應用程式的技巧
Presentation transcript:

Tech Ed North America 2010 1/2/2018 8:56 PM Required Slide SESSION CODE: ASI310 WCF Made Easy with Microsoft .NET Framework 4 and Windows Server AppFabric Michele Leroux Bustamante Chief Architect, IDesign Chief Security Architect, BiTKOO Microsoft Regional Director © 2010 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.

Michele Leroux Bustamante http://www.idesign.net 1/2/2018 Michele Leroux Bustamante Chief Architect, IDesign (www.idesign.net) Chief Security Architect, BiTKOO (www.bitkoo.com) Microsoft Regional Director, MVP Connected Systems Published Author: Dev Connections Magazine (Federated Security Column), MSDN, CoDe Magazine, Microsoft whitepapers Learning WCF (O’Reilly 2007/2009) Speaker: Tech Ed, PDC, Dev Connections, NDC, etc. Blogs: www.michelelerouxbustamante.com, www.learningwcf.com ©2007 Michele Leroux Bustamante, IDesign Inc. All rights reserved

Agenda What’s new in WCF 4? Default endpoints Default bindings and behaviors Recommendations for defaults What is Windows Server AppFabric? Simplified WCF configuration and troubleshooting

Who Is This Session For?

WCF 4 WCF 4 released April 2010 WCF 4 enhancements Part of Visual Studio 2010 and .NET Framework 4 WCF 4 enhancements Configuration defaults, default endpoints High performance tracing with ETW New features for REST-based services Queued messaging enhancements WCF Workflow Services New protocols Basic Profile 1.2 WS-Discovery and DiscoveryService RouterService New DataContractResolver, extensibility Our focus + AppFabric

Is WCF Hard?

ASMX and WCF 4 ASMX Generate a web service class, modify namespace Expose web methods Use complex types, serialize public members Generate web reference (proxy) Create proxy and call methods WCF 4 Generate a service interface and class, modify namespace Expose service operations Use complex types, serialize public members (POCO) Generate service reference (proxy) Create proxy and call operations

DEMO WCF Simplified Tech Ed North America 2010 1/2/2018 8:56 PM © 2010 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.

ASMX Equivalence In WCF 4 POCO types introduced with .NET Framework 3.5 SP1 No need to produce data contracts or serializable types for WCF WCF 4 introduces features to simplify the ASMX equivalent path Protocol mappings Default endpoints Default bindings and behaviors

Protocol Mappings Protocol mappings match Protocol scheme Binding Binding configuration (default “”) Binding defaults are provided by the service model NOTE: See Machine.config.comments

Default Endpoints Generate one endpoint per base address, per contract Only one base address per protocol (http, net.tcp, net.pipe, net.msmq) IIS-hosting Base address is .svc endpoint HTTP protocol provided by default Protocols added in IIS Manager Self-hosting Supply base address per protocol in config or code Explicitly call ServiceHost.CreateDefaultEndpoints() MetadataExchange endpoint added by default Supports proxy generation

DEMO Default Endpoints Tech Ed North America 2010 1/2/2018 8:56 PM © 2010 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.

Are default endpoints a good thing?

Default Endpoints Feel good ASMX-equivalent experience No need to touch configuration Administer protocols via IIS Manager However… Default bindings usually require some tweaking BasicHttpBinding is pretty close, could be quota issues Might want to map HTTP to WSHttp or WebHttp Developer ultimately has to come up with the right binding configuration Sometimes want/need more control over endpoints Which contracts exposed over multiple protocols Suppressing metadata endpoints (Look ma! I can do WCF!)

Default Bindings and Behaviors Supply better defaults in the machine or application config Protocol mappings Map http protocol to WS2007HttpBinding or WebHttpBinding And then use default binding Binding configurations Provide new defaults for each binding Behaviors Provide a default service behavior All services must share settings

What makes a better default?

Default Bindings And Behaviors Tech Ed North America 2010 1/2/2018 8:56 PM Default Bindings And Behaviors DEMO © 2010 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.

Default Bindings and Behaviors Heavily influenced by security model Common scenarios: Classic Intranet Anonymous over HTTP Anonymous over HTTPS/SSL UserName over SSL UserName for Certificate Trusted subsystem / Windows or Certificate Federated identity

Tech Ed North America 2010 http://wcf4templates.codeplex.com 1/2/2018 8:56 PM WCF 4 Templates http://wcf4templates.codeplex.com DEMO © 2010 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.

Recommendations: Endpoints, Bindings and Behaviors Automatic endpoints, default bindings and default behaviors are very useful for early prototyping and productivity You will necessarily make adjustments for protocol requirements Unless all you want is ASMX You will control endpoints Visibility Not all contracts may be exposed over all protocols You may choose a few default bindings per protocol Configure in application config (visibility) Allow default configuration to be used per endpoint You may be able to share service behaviors across services If security behavior is equivalent

Configuring WCF Services For developers Easier with default endpoints, default bindings, default behaviors Easier with templates illustrating recommended practices For IT How does IT know to adjust relevant settings? What tools can they use?

Troubleshooting WCF Services For developers Exceptions during development Enable trace in configuration Test again Search through trace logs (cumbersome) Difficult to resolve problems involving multiple service calls For IT File-based logs inefficient Performance counters are heavy May not be able to reproduce issue Need a way to control monitoring and diagnostic settings Must not affect system performance

Windows Server AppFabric Technologies for deploying, managing and scaling applications deployed on Internet Information Services (IIS) 7 Manage and monitor services and workflows via IIS Manager and Windows PowerShell (formerly codename “Dublin”) Distributed in-memory cache (formerly codename “Velocity”) AppFabric and WCF Empowers the IT role Through dashboard can access necessary WCF configuration Provides immediate visibility into application metrics Enable monitoring and diagnostics Leverages high performance ETW tracing View relevant execution statistics

Configuring WCF and WF Settings Per machine, disable metadata browsing Per application, enable as desired Enable or disable metadata endpoints

Configuring WCF and WF Settings Per machine, enable Health Monitoring Per application, use Troubleshooting as needed Enable message logging as needed NOTE: can customize profiles!

Configuring WCF and WF Settings Per machine, disable auto-start to conserve resources Per application, likely to opt-in depending on availability requirements Required for services hosted with the Windows Azure AppFabric Service Bus

Configuring WCF and WF Settings Per machine, set defaults for throttling Per application, may require adjustments for load Throttles are very important to WCF service scalability and throughput! WCF 4 throttling defaults are much better

Configuring WCF and WF Settings Per machine, not likely to set certificate Per web site, good place to set default cert for site Per application, may adjust per application

WCF and Windows Server AppFabric Tech Ed North America 2010 1/2/2018 8:56 PM WCF and Windows Server AppFabric DEMO © 2010 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.

Summary WCF can be as easy as ASMX WCF 4 simplifies configuration If you don’t need additional features WCF 4 simplifies configuration Reduced footprint Centralize defaults (and customize them) AppFabric provides useful administrative and troubleshooting tools IT administrator can configure appropriate settings Developers can troubleshoot code locally, more easily Easier to track down issues on production servers

Resources Learning WCF Book blog: www.learningwcf.com http://www.idesign.net 1/2/2018 Resources Learning WCF Michele Leroux Bustamante, O’Reilly 2007/2009 Second Edition in progress, 2010 Book blog: www.learningwcf.com My Blog: www.michelelerouxbustamante.com Look for session resources on my blog! ©2007 Michele Leroux Bustamante, IDesign Inc. All rights reserved

Required Slide Speakers, please list the Breakout Sessions, Interactive Sessions, Labs and Demo Stations that are related to your session. Tech Ed North America 2010 1/2/2018 8:56 PM Related Content ASI201 Intro to Workflow Services and Windows Server AppFabric ASI313 Windows Server AppFabric Caching: What It Is and When You Should Use It ASI203 Understanding the Microsoft Application Server: AppFabric, WF, WCF, and More TO70E7 Debug WCF Endpoints like a Freaking Genius TD1064 So You’re Just Getting Into WCF TE7322 What's New in WCF/WF 4.0 and AppFabric TLC-05 Windows Server AppFabric : WF and WCF © 2010 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.

ASI Track Resources Website – www.Microsoft.com/WindowsAzure/AppFabric Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Tech Ed North America 2010 1/2/2018 8:56 PM ASI Track Resources Website – www.Microsoft.com/WindowsAzure/AppFabric MSDN Developer Center – http://msdn.microsoft.com/en-us/azure/netservices.aspx Blog – http://blogs.msdn.com/b/netservices/ Twitter – http://twitter.com/azure_appfabric Website – http://www.microsoft.com/biztalk/ Website – http://msdn.microsoft.com/biztalk/ Blog – http://blogs.msdn.com/biztalk_server_team_blog Blog – http://www.biztalkblogs.com/ Application Infrastructure Virtual Launch Event – www.appinfrastructure.com AppFabric on Microsoft.com – http://www.microsoft.com/appfabric Developer Center – http://msdn.microsoft.com/appfabric © 2010 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.

Resources Learning Required Slide www.microsoft.com/teched Tech Ed North America 2010 1/2/2018 8:56 PM Required Slide Resources 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/technet http://microsoft.com/msdn © 2010 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.

Complete an evaluation on CommNet and enter to win! Tech Ed North America 2010 1/2/2018 8:56 PM Required Slide Complete an evaluation on CommNet and enter to win! © 2010 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.

Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st http://northamerica.msteched.com/registration   You can also register at the North America 2011 kiosk located at registration Join us in Atlanta next year

Tech Ed North America 2010 1/2/2018 8:56 PM © 2010 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. © 2010 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 Tech Ed North America 2010 1/2/2018 8:56 PM © 2010 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.