Agenda What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services.

Slides:



Advertisements
Similar presentations
Indigo Jonathan Turnbull Nick Cartwright Ivan Konontsev Chris Bright.
Advertisements

Michael S. Chan xLM Solutions, LLC
WCF Intro Scott Reed Owner - Brain Hz Software Instructor – DevelopMentor
Nima Dilmaghani nimad.wordpress.com Developer & Platform Evangelism.
 Introduction  WCF Definition  WCF Architecture  Implementation  WCF Demo Overview.
Windows Communication Foundation and Web Services.
Copyright © 2007 CA. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. 5C The Plex SOA Strategy.
Darryl Burling Developer Evangelist Microsoft The age of connected applications Whats new in VS2008 WCF Background: WS*,.Net 3.0 and WCF ABC’s & improvments.
The Microsoft Technical Roadshow 2006 Windows Communication Foundation Mike Taulty Developer & Platform Group Microsoft Ltd
J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)
Web Services (ASMX 2.0 and WSE 3.0) Mike Taulty Developer & Platform Group Microsoft Ltd
Module 13: WCF Receive Adapters. Overview Lesson 1: Introduction to WCF Receive Adapters Lesson 2: Configuring a WCF Receive Adapter Lesson 3: Using the.
Getting Started with Windows Communication Foundation 4.5 Ed Jones, MCT, MCPD, MCTS Consultant RBA Inc.
Getting Started with WCF Windows Communication Foundation 4.0 Development Chapter 1.
Copyright ©2004 Virtusa Corporation | CONFIDENTIAL Introduction to Windows Communication Foundation Ruwan Wijesinghe.
[Title of the course] WCF
CON 307 Developing Manageable WCF Services Chris Peiris | Avanade Rory Primrose | Avanade
Integrating CFML with ASP.NET Vince Bonfanti President New Atlanta Communications, LLC.
Introduction to .NET Rui Ye.
Agenda What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
1 Windows Communication Foundation: Integrating COM+ and MSMQ Applications Andy Milligan COM305 Program Manager Microsoft Corporation.
Microsoft Visual Studio 2010 Muhammad Zubair MS (FAST-NU) Experience: 5+ Years Contact:- Cell#:
1 IIS and Windows Communication Foundation: Hosting Services Steve Maine COM 413 Program Manager Microsoft Corporation
Microsoft Visual Studio 2010 Muhammad Zubair MS (FAST-NU) Experience: 5+ Years Contact:- Cell#:
Intro to WCF From the beginning and uses Steve AppRochester.
Random Logic l Forum.NET l Web Services Enhancements for Microsoft.NET (WSE) Forum.NET ● October 4th, 2006.
A Deep Dive into Best Practices with the Windows Communication Foundation John Justice COM415 Program Manager Microsoft Corporation.
Developing Web Services Using ASP.NET and WSE That Interoperate with the Windows Communications Foundation ("Indigo") Mark Fussell COM432 Lead Program.
.NET Enterprise Services COM+ 1.5 麥超俊 Bobby Mak 架構技術推廣經理開發工具暨平台推廣處台灣微軟股份有限公司.
Mahesh Krishnan, Senior Consultant, Readify Slide 1.
Telerik Software Academy Web Services & Cloud.
Introducing the ABCs of Windows Communication Foundation | Feb 2006 rickgaribay.net Windows Communication Foundation Hosting & Endpoints Winter 2006.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Windows Communication Foundation David Anderson Independent Software Developer DCOM Productions.
Presentation 24: Windows Communication Foundation Introduced Objektorienteret Netværkskommunikation.
.NET Mobile Application Development XML Web Services.
Dhananjay Kumar MVP-Connected System 1. WCF  Agenda What is WCF ? Why WCF? Address, Binding, Contract End Points Hosting Message Patterns Programming.
Christian Weyer thinktecture.
Introduction to.NET FX 3.0 (+ sneak preview of.NET FX 3.5) Martin Parry Developer & Platform Group Microsoft Ltd
The SOAP Story Martin Parry Developer & Platform Group Microsoft Ltd
Welcome Auckland Brent Colbert Director | Marketing Microsoft NZ.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
For Developers Martin Parry Developer and Platform Group Microsoft
Windows Communication Foundation António Cruz Freelancer (SAPO/PT.COM)
.NET Framework Enterprise. Agenda WCF Overview WCF Solutions WF Overview WF Solutions Card Spaces Bringit it all together: Dinner Now Scenario.
Shani Raba Team Leader & Software Architect
OE-NIK HP Advanced Programming WCF WCF SOAP service, host, client Exception handling (NOT required)
Windows Communication Foundation Stipe Ivan Latković.
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
Windows Communication Foundation. Agenda How We Got Here ASMX vs WCF Throwdown WCF Contracts Service Data Message Bindings Security Reliability Declarative.
January 14 th -15 th 2004 Recap of Day 1 Daragh Byrne – EPCC.
Microsoft Confidential Risman Adnan ISV Lead, Microsoft Indonesia
Jeremy Boyd - Intergen MSDN Regional Director WinFX Managed APIs for Windows.
Windows Communication Foundation and Web Services
Windows Communication Foundation
Segments Introduction: slides 2–7 10 minutes
4/12/2018 2:37 PM Windows Communication Foundation: Migration, interop, upgrade, and integration Risman Adnan ISV Lead, Microsoft Indonesia
Windows Communication Foundation
Windows Communication Foundation
Window Communication Foundation
WCF.
Windows Communication Foundation (WCF)
Windows Communication Foundation and Web Services
Windows Communication Foundation
for Developers Martin Parry Developer and Platform Group Microsoft
Windows Communication Foundation (WCF)
Distributed Applications on Windows Vista
The SOAP Story Martin Parry Developer & Platform Group Microsoft Ltd
Web Services Enhancements 2.0
Presentation transcript:

Agenda What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services in ASP.NET How WCF works inside of ASP.NET

WCF is Our next-generation platform for distributed systems A set of extensions to the Microsoft.NET Framework 2.0 Build WCF services in Visual Studio 2005 using any.NET Language Intelligent code editing, IDE Extensions for WCF, debugging, re-factoring, code snippets, etc. Visual Basic.NET, Visual C#, etc. Runs on Microsoft Windows Vista Microsoft Windows XP Microsoft Windows Server 2003

.NET at the core The Unified Framework For Rapidly Building Service-Oriented Applications

Windows Communication Foundation Unifies today’s distributed technologies Lets you develop/deploy/manage one model Visual Studio 2005 integration Broad support for Web services (WS-*) specifications Compatible with existing Microsoft- distributed application technologies Enables development of loosely-coupled services Config-based communication

Unified Programming Model Interop with other platforms ASMX Attribute-BasedProgramming Enterprise Services WS-*ProtocolSupport WSE Message-OrientedProgramming System.Messaging Extensibility Location transparency.NET Remoting

Agenda What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services in ASP.NET How WCF works inside of ASP.NET

How does it work? Endpoints ClientService Message EndpointEndpoint Endpoint

How does it work? Address, Binding, Contract ClientService Message ABCABC ABC AddressBindingContract (Where)(How)(What)

How does it work? Behaviours and Metadata ClientService Message ABCABC ABC Metadata BvBv BvBv Proxy ServiceHost()

Agenda What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services in ASP.NET How WCF works inside of ASP.NET

How do I use it? Generate Proxy Pick Endpoint Define Contract Implement Service Define Endpoints Host ServiceClient Service

How do I deploy it? For HTTP services on Windows XP ® SP2 & WS2K3 For any service on Windows Vista ® and Windows Server ® “Longhorn” Proven reliability, scalability, and security Requires a.svc file to identify the Service Type Web Host within IIS: Self-Host within any.NET process: Available for any service Console apps, windowed apps,.NET NT Services …

Agenda What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services in ASP.NET How WCF works inside of ASP.NET

All About Bindings You can choose a pre-defined binding: <endpoint name=“MyService” address=“MyAddress” binding=“netTcpBinding” contract=“IMyInterface” /> NetPeerTcpBinding NetMSMQBinding NetNamePipesBinding NetTcpBinding WsHttpBinding BasicHttpBinding Binding.NET Peer  Peer.NET .NET via MSMQ.NET .NET across processes Secure, reliable duplexed.NET .NET across processes Secure, reliable duplexed Basis for WS-* interop Supports WS-Security, WS-RM, WS-Tx Basic Profile 1.1 Interop and Intergration w/ASMX Purpose

All About Bindings You can customize a pre-defined binding: <service name=“MyService”> <endpoint address=“MyAddress” binding=“wsHttpBinding” bindingConfiguration=“MyReliableBinding” contract=“IMyInterface” /> <reliableSession enabled=“true” ordered=“true”

All About Bindings You can define custom bindings: <service name=“MyService”> <endpoint address=“MyAddress” binding=“wsHttpBinding” bindingConfiguration=“MyReliableBinding” contract=“IMyInterface” /> <reliableSession enabled=“true” ordered=“true”

Agenda What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services in ASP.NET How WCF works inside of ASP.NET

All about Addresses An endpoint address is relative to a base address: For a Web-Hosted service, the base address is that of its virtual directory <service name=“MyService”> <endpoint address=“MyEndpointAddress” binding=“wsHttpBinding” bindingConfiguration=“MyReliableBinding” contract=“IMyInterface” />

Agenda What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services in ASP.NET How WCF works inside of ASP.NET

All About Contracts Service Contract: Describes the operations a service can perform. Maps CLR types to WSDL. Data Contract: Describes a data structure. Maps CLR types to XSD. Message Contract: Defines the structure of the message on the wire. Maps CLR types to SOAP messages.

Agenda What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services in ASP.NET How WCF works inside of ASP.NET

Hosting Services in ASP.NET Write your service as usual: [ServiceContract] [OperationContract] etc. ServiceHost’s are represented as.svc files: Service attribute is a CLR type name Matches from web.config

Where can I put my service code? Anywhere you can put code in ASP.NET: Inline in the.svc file In a.cs/.vb in App_Code In a class library (.dll) located in \bin WCF plays nicely with ASP.NET’s dynamic compilation system

Which project type should I use? Services can be built in any project type Web projects Class Libraries Class libraries have benefits Decouples implementation from hosting environment Can test services in other hosts (e.g. console apps) during development However, WCF doesn’t care which project type you use…use what makes sense for you

Agenda What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services in ASP.NET How WCF works inside of ASP.NET

IIS Worker Process (w3wp.exe)

w3wp.exe ASP.NET

w3wp.exe ASP.NET Managed Hosting Layer (System.Web.Hosting, System.Web.Compilation) ASP.NET Page Framework, UI, Controls, HTTP Runtime (System.Web, System.Web.UI)

w3wp.exe ASP.NET Managed Hosting Layer (System.Web.Hosting, System.Web.Compilation) ASP.NET Page Framework, UI, Controls, HTTP Runtime (System.Web, System.Web.UI) WCF Service Model (System.ServiceModel) Can share state

WCF and the HTTP Pipeline IIS ASP.NET HTTP Request Service Implementation Process Host WCF HttpModule(grabs *.svc) WCF HTTP Transport Protocol Channels Dispatcher HTTP Response Other HttpModule

Why the split? Two technologies, different priorities WCF: consistency across transports and hosting environments ASP.NET: optimize for HTTP applications hosted in IIS Becomes very important on IIS7/WAS WAS == Windows Process Activation Service

Implications ASP.NET platform features still work for ASP.NET Forms auth Session state File/URL authorization They just don’t apply to WCF by default

Summary What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services in ASP.NET How WCF works inside of ASP.NET