90 likes | 215 Vues
Explore the fundamentals of Windows Communication Foundation (WCF) in this comprehensive overview. Understand the key elements of WCF, including the concepts of Address, Binding, Contract, and Hosting. Learn about various hosting options such as IIS, Windows Activation Service (WAS), and self-hosting. This guide covers essential WCF features, common bindings like basicHttpBinding and netTcpBinding, and provides practical demonstrations. Whether you're developing for retail or financial services, this introduction will enhance your understanding of WCF architecture and integration.
E N D
Windows Communication Foundation Hosting & Endpoints Winter 2006 Introducing the ABCs of Windows Communication Foundation |Feb 2006 rickgaribay.net
WCF Hosting & Endpoints • Agenda • Address, Binding, Contract & Hosting • WCF Endpoints • Architecture • Hosting Options • basicHttpBinding Demo • netTcpBinding & netMsmqBinding Demo Introducing the ABCs of Windows Communication Foundation |Feb 2006 rickgaribay.net
About Me • Microsoft Certified Professional .NET, MCAD, .NET • 7+ years professional experience developing Microsoft solutions for the retail, financial services and environmental, health & safety industries. • Primary focus on Enterprise Application Integration architectures: • .NET Framework • BizTalk Server • Host Integration Server Introducing the ABCs of Windows Communication Foundation |Feb 2006 rickgaribay.net
Address, Binding, Contract & Hosting • The ABCs of Windows Communication Foundation: An Addressuniquely identifies a service. Provides the transport protocol, name of target machine (host) and port if applicable. Expressed as an explicit path or URI: [transport]://[machine][:optional port] http://localhost http://localhost:8081 http://localhost:8081/Service net.tcp://localhost:8082/Service net.pipe://localhost/Pipe Bindings provide “canned” policies that implement the WCF features required to support the design goals of the service. Some common bindings include: basicHttpBinding netTcpBinding wsHttpBinding netMsqmqBinding WCF services must be hosted by a Windows Process (host process). Hosting options include: IIS 5 & 6 IIS 7 & Windows Activation Service (WAS) SmartClient, Console or Windows Service (also called “Self-Hosting”) All services expose a Contract. WCF uses 3 types of contracts: Service Contract – Exposes the service. Operation Contract- Exposes the service members. Data Contract – Describes service parameters. Fault Contracts – Defines error handling semantics. Introducing the ABCs of Windows Communication Foundation |Feb 2006 rickgaribay.net
WCF Endpoints • WCF Services are deployed, discovered and consumed as endpoints. Introducing the ABCs of Windows Communication Foundation |Feb 2006 rickgaribay.net
Architecture Introducing the ABCs of Windows Communication Foundation |Feb 2006 rickgaribay.net
Hosting Options Introducing the ABCs of Windows Communication Foundation |Feb 2006 rickgaribay.net
Demos • IIS Hosting with basicHttpBinding • Self Hosting with multiple endpoints Introducing the ABCs of Windows Communication Foundation |Feb 2006 rickgaribay.net
Questions? • References • IDesign WCF Master Class, Microsoft Silicon Valley Campus, San Jose, CA. June 2006. • IDesign WCF Standard • Programming WCF Services, Juval Lowy, 2007 O’Reilly Press. Introducing the ABCs of Windows Communication Foundation |Feb 2006 rickgaribay.net