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

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.
Extending Web Applications with Web Services Mike Taulty Developer & Platform Group Microsoft Ltd
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
Web Services (ASMX 2.0 and WSE 3.0) Mike Taulty Developer & Platform Group Microsoft Ltd
Jon Flanders INT303. About Me  Jon Flanders –  Independent consultant/trainer  BizTalk MVP.
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.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Copyright ©2004 Virtusa Corporation | CONFIDENTIAL Introduction to Windows Communication Foundation Ruwan Wijesinghe.
[Title of the course] WCF
Introduction to .NET Rui Ye.
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#:
Microsoft Visual Studio 2010 Muhammad Zubair MS (FAST-NU) Experience: 5+ Years Contact:- Cell#:
Intro to WCF From the beginning and uses Steve AppRochester.
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
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.
Kemal Baykal Rasim Ismayilov
Windows Communication Foundation David Anderson Independent Software Developer DCOM Productions.
Chapter 7: Creating and Consuming XML Web Services Understanding XML Web Services Creating XML Web Services Deploying and Discovering XML Web Services.
Presentation 24: Windows Communication Foundation Introduced Objektorienteret Netværkskommunikation.
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.
Getting Started with.NET Getting Started with.NET/Lesson 1/Slide 1 of 31 Objectives In this lesson, you will learn to: *Identify the components of the.NET.
.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
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.
O VERVIEW OF SOA AND WCF Jinaldesai.net – My Thouths And Learnings.
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
Windows Communication Foundation and Web Services
Jim Fawcett CSE681 – SW Modeling & Analysis Spring 2005
Windows Communication Foundation
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
Windows Communication Foundation (WCF)
Distribution of functionality Webservice using 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
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 Studiousing 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 WCF combines the functionality from ASP.NET Web Services,.NET Remoting, Message Queuing and Enterprise Services. Windows Communication Foundation (WCF)ASP.NET Web Service WCF supports multiple bindings HTTP, WSHTTP, TCP, MSMQ.ASP.NET Web Services supports only HTTP binding. WCF supports Atomic Transactions*.ASP.NET Web Services does not support Atomic Transactions*. By default WCF uses SOAP for sending and receiving the messages. But WCF can support any kind of message format not only SOAP. ASP.NET Web Services can send and receive messages via the SOAP only. The System.Runtime.Serialization.DataContract and System.Runtime.Serialization.DataMember attributes of the WCF's System.Runtime.Serialization assembly can be added for.NET types to indicate that instances of the type are to be serialized into XML, and which particular fields or properties of the type are to be serialized. ASP.NET Web Services uses XmlSerializer to translate the XML data (Message Send or received) into.NET objects.

Windows Communication Foundation Unifies today’s distributed technologies Lets you develop/deploy/manage one model Visual Studio.NET 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 Client Service Message ABCABC ABC Endpoints - All communications with the WCF service will happen via the endpoints. The endpoint is composed of 3 parts (collectively called as ABC's of endpoint) as defines below: Address: The endpoints specify a Address that defines where the endpoint is hosted. Contract: The endpoints specify a Contract that defines which methods of the Service class will be accessible via the endpoint; each endpoint may expose a different set of methods. Binding: The endpoints also define a binding that specifies how a client will communicate with the service and the address where the endpoint is hosted.Various components of the WCF are depicted in the figure below.

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? 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