fbpx
Wikipedia

Windows Communication Foundation

The Windows Communication Foundation (WCF), previously known as Indigo, is a free and open-source runtime and a set of APIs in the .NET Framework for building connected, service-oriented applications.[1][2]

Windows Communication Foundation (WCF)
Original author(s)Microsoft
Developer(s).NET Foundation
Initial releaseNovember 21, 2006; 17 years ago (2006-11-21)
Stable release
v3.4.0 / August 18, 2022; 15 months ago (2022-08-18)
Repositorygithub.com/dotnet/wcf
Written inC#
Operating systemLinux, macOS, Windows
Platform.NET Framework, .NET
PredecessorWeb Services Enhancements
TypeSoftware framework
LicenseMIT License
Websitedocs.microsoft.com/en-us/dotnet/framework/wcf/index

.NET Core 1.0, released 2016, did not support WCF server side code. WCF support was added to the platform with support for .NET Core 3.1, .NET 5, and .NET 6 in 2022.[3]

The architecture edit

 
This subsystem is a part of .NET Framework 3.0

WCF is a tool often used to implement and deploy a service-oriented architecture (SOA). It is designed using service-oriented architecture principles to support distributed computing where services have remote consumers. Clients can consume multiple services; services can be consumed by multiple clients. Services are loosely coupled to each other. Services typically have a WSDL interface (Web Services Description Language) that any WCF client can use to consume the service, regardless of which platform the service is hosted on. WCF implements many advanced Web services (WS) standards such as WS-Addressing, WS-ReliableMessaging and WS-Security. With the release of .NET Framework 4.0, WCF also provides RSS Syndication Services, WS-Discovery, routing and better support for REST services.

Endpoints edit

A WCF client connects to a WCF service via an endpoint. Each service exposes its contract via one or more endpoints. An endpoint has an address (which is a URL specifying where the endpoint can be accessed) and binding properties that specify how the data will be transferred.

The mnemonic "ABC" can be used to remember address/binding/contract. Binding specifies what communication protocols are used to access the service, whether security mechanisms are to be used, and the like. WCF includes predefined bindings for most common communication protocols such as SOAP over HTTP, SOAP over TCP, and SOAP over Message Queues, etc. Interaction between WCF endpoint and client is done using a SOAP envelope. SOAP envelopes are in simple XML form, which makes WCF platform-independent. When a client wants to access the service via an endpoint, it not only needs to know the contract, but it also has to adhere to the binding specified by the endpoint. Thus, both client and server must have compatible endpoints.

With the release of the .NET Framework 3.5 in November 2007, Microsoft released an encoder that added support for the JSON serialization format to WCF.[4]

Behaviors edit

Behaviors are types that modify or extend service or client functionality. Behaviors allow the developer to create custom processing, transformation, or inspection that is applied to messages as they are sent or received. Some examples of uses for behaviors are:

  • Controlling whether metadata is published with a service.
  • Adding security features to a service, such as impersonation, authorization,[5] or managing tokens
  • Recording information about messages, such as tracking, tracing, or logging
  • Message or parameter validation
  • Invoking all additional operations when messages are received—such as notifying users when certain messages arrive

Behaviors implement the IServiceBehavior interface for service extensions, the IEndpointBehavior for endpoints, the IContractBehavior interface for service contracts, or the IOperationBehavior for operations. Service behaviors are used for message processing across a service, rather than processing that would be specific to a single operation.

Interoperability edit

WCF supports interoperability with WCF applications running on the same Windows machine or WCF running on a different Windows machines or standard Web services built on platforms such as Java running on Windows or other operating systems. In addition to SOAP, WCF 4 supports non-SOAP XML, RSS, JSON, and binary formats for external communication via HTTP or HTTPS.[6]

See also edit

References edit

  1. ^ Michele Leroux Bustamante. "Hosting WCF Services". CODE Magazine.
  2. ^ "Deploying an Internet Information Services-Hosted WCF Service". Microsoft Developer Network (MSDN). 15 September 2021.
  3. ^ "CoreWCF 1.0 has been Released, WCF for .NET Core and .NET 5+". .NET Blog. 2022-04-28. Retrieved 2022-06-06.
  4. ^ "AJAX Integration and JSON Support". Microsoft. Retrieved 2008-04-24.
  5. ^ "Custom Authentication and Authorization in WCF". TatvaSoft UK. Retrieved 2018-11-14.
  6. ^ "Introducing Windows Communication Foundation in .NET Framework 4". Microsoft. Retrieved 2011-07-17.
  • "What Is Windows Communication Foundation". MSDN. Microsoft. 10 August 2023.
  • "Windows Communication Foundation Architecture". MSDN. Microsoft. 15 September 2021.

Further reading edit

  • Craig McMurtry, Marc Mercuri, and Nigel Watling: Microsoft Windows Communication Foundation: Hands-On, SAMS Publishing, May 26, 2004, ISBN 0-672-32877-1
  • Steve Resnick, Richard Crane, Chris Bowen: Essential Windows Communication Foundation (WCF): For .NET Framework 3.5, Addison-Wesley, February 11, 2008, ISBN 0-321-44006-4
  • Craig McMurtry, Marc Mercuri, Nigel Watling, Matt Winkler: Windows Communication Foundation Unleashed (WCF), Sams Publishing, March 6, 2007, ISBN 0-672-32948-4
  • Juval Löwy: Programming WCF Service, O'Reilly Media, Inc., February 20, 2007, ISBN 0-596-52699-7
  • Pablo Cibraro, Kurt Claeys, Fabio Cozzolino, Johann Grabner: Professional WCF 4: Windows Communication Foundation with .NET 4, Wrox, June 15, 2010, ISBN 0-470-56314-1
  • Andrew Zhu: Microsoft Windows Workflow Foundation 4.0 Cookbook:Chapter 3, Packt Publishing, September 2010, ISBN 978-1-84968-078-3

External links edit

  • , MSDN Windows Communication Foundation portal.
  • MSDN Library: Windows Communication Foundation
  • WCF Security Guide 2011-03-14 at the Wayback Machine, Microsoft Patterns & Practices - Improving Web Services Security: Scenarios and Implementation Guidance for WCF. Released Aug 1, 2008.
  • Understanding WCF Services in Silverlight 2 2011-03-12 at the Wayback Machine - In depth explanation of WCF services for Silverlight clients.
  • David Chappell: "Introduction to WCF" and "Dealing with Diversity", two papers covering WCF. November 2007.
  • Getting Started with WCF RIA Services - part 1 of the series articles on WCF RIA Services

windows, communication, foundation, previously, known, indigo, free, open, source, runtime, apis, framework, building, connected, service, oriented, applications, original, author, microsoftdeveloper, foundationinitial, releasenovember, 2006, years, 2006, stab. The Windows Communication Foundation WCF previously known as Indigo is a free and open source runtime and a set of APIs in the NET Framework for building connected service oriented applications 1 2 Windows Communication Foundation WCF Original author s MicrosoftDeveloper s NET FoundationInitial releaseNovember 21 2006 17 years ago 2006 11 21 Stable releasev3 4 0 August 18 2022 15 months ago 2022 08 18 Repositorygithub wbr com wbr dotnet wbr wcfWritten inC Operating systemLinux macOS WindowsPlatform NET Framework NETPredecessorWeb Services EnhancementsTypeSoftware frameworkLicenseMIT LicenseWebsitedocs wbr microsoft wbr com wbr en us wbr dotnet wbr framework wbr wcf wbr index NET Core 1 0 released 2016 did not support WCF server side code WCF support was added to the platform with support for NET Core 3 1 NET 5 and NET 6 in 2022 3 Contents 1 The architecture 1 1 Endpoints 1 2 Behaviors 2 Interoperability 3 See also 4 References 5 Further reading 6 External linksThe architecture edit nbsp This subsystem is a part of NET Framework 3 0WCF is a tool often used to implement and deploy a service oriented architecture SOA It is designed using service oriented architecture principles to support distributed computing where services have remote consumers Clients can consume multiple services services can be consumed by multiple clients Services are loosely coupled to each other Services typically have a WSDL interface Web Services Description Language that any WCF client can use to consume the service regardless of which platform the service is hosted on WCF implements many advanced Web services WS standards such as WS Addressing WS ReliableMessaging and WS Security With the release of NET Framework 4 0 WCF also provides RSS Syndication Services WS Discovery routing and better support for REST services Endpoints edit A WCF client connects to a WCF service via an endpoint Each service exposes its contract via one or more endpoints An endpoint has an address which is a URL specifying where the endpoint can be accessed and binding properties that specify how the data will be transferred The mnemonic ABC can be used to remember address binding contract Binding specifies what communication protocols are used to access the service whether security mechanisms are to be used and the like WCF includes predefined bindings for most common communication protocols such as SOAP over HTTP SOAP over TCP and SOAP over Message Queues etc Interaction between WCF endpoint and client is done using a SOAP envelope SOAP envelopes are in simple XML form which makes WCF platform independent When a client wants to access the service via an endpoint it not only needs to know the contract but it also has to adhere to the binding specified by the endpoint Thus both client and server must have compatible endpoints With the release of the NET Framework 3 5 in November 2007 Microsoft released an encoder that added support for the JSON serialization format to WCF 4 Behaviors edit Behaviors are types that modify or extend service or client functionality Behaviors allow the developer to create custom processing transformation or inspection that is applied to messages as they are sent or received Some examples of uses for behaviors are Controlling whether metadata is published with a service Adding security features to a service such as impersonation authorization 5 or managing tokens Recording information about messages such as tracking tracing or logging Message or parameter validation Invoking all additional operations when messages are received such as notifying users when certain messages arriveBehaviors implement the IServiceBehavior interface for service extensions the IEndpointBehavior for endpoints the IContractBehavior interface for service contracts or the IOperationBehavior for operations Service behaviors are used for message processing across a service rather than processing that would be specific to a single operation Interoperability editWCF supports interoperability with WCF applications running on the same Windows machine or WCF running on a different Windows machines or standard Web services built on platforms such as Java running on Windows or other operating systems In addition to SOAP WCF 4 supports non SOAP XML RSS JSON and binary formats for external communication via HTTP or HTTPS 6 See also edit nbsp Free and open source software portalMicrosoft Connected Services Framework Web Services Enhancements Service Component Architecture SCA and Service Data Objects SDO which are alternatives to WCF in the Java world standardized by OASIS WCF Data ServicesReferences edit Michele Leroux Bustamante Hosting WCF Services CODE Magazine Deploying an Internet Information Services Hosted WCF Service Microsoft Developer Network MSDN 15 September 2021 CoreWCF 1 0 has been Released WCF for NET Core and NET 5 NET Blog 2022 04 28 Retrieved 2022 06 06 AJAX Integration and JSON Support Microsoft Retrieved 2008 04 24 Custom Authentication and Authorization in WCF TatvaSoft UK Retrieved 2018 11 14 Introducing Windows Communication Foundation in NET Framework 4 Microsoft Retrieved 2011 07 17 What Is Windows Communication Foundation MSDN Microsoft 10 August 2023 Windows Communication Foundation Architecture MSDN Microsoft 15 September 2021 Further reading editCraig McMurtry Marc Mercuri and Nigel Watling Microsoft Windows Communication Foundation Hands On SAMS Publishing May 26 2004 ISBN 0 672 32877 1 Steve Resnick Richard Crane Chris Bowen Essential Windows Communication Foundation WCF For NET Framework 3 5 Addison Wesley February 11 2008 ISBN 0 321 44006 4 Craig McMurtry Marc Mercuri Nigel Watling Matt Winkler Windows Communication Foundation Unleashed WCF Sams Publishing March 6 2007 ISBN 0 672 32948 4 Juval Lowy Programming WCF Service O Reilly Media Inc February 20 2007 ISBN 0 596 52699 7 Pablo Cibraro Kurt Claeys Fabio Cozzolino Johann Grabner Professional WCF 4 Windows Communication Foundation with NET 4 Wrox June 15 2010 ISBN 0 470 56314 1 Andrew Zhu Microsoft Windows Workflow Foundation 4 0 Cookbook Chapter 3 Packt Publishing September 2010 ISBN 978 1 84968 078 3External links edit nbsp Wikibooks has a book on the topic of NET Development Foundation Windows Communication Foundation MSDN Windows Communication Foundation portal MSDN Library Windows Communication Foundation WCF Security Guide Archived 2011 03 14 at the Wayback Machine Microsoft Patterns amp Practices Improving Web Services Security Scenarios and Implementation Guidance for WCF Released Aug 1 2008 Understanding WCF Services in Silverlight 2 Archived 2011 03 12 at the Wayback Machine In depth explanation of WCF services for Silverlight clients David Chappell Introduction to WCF and Dealing with Diversity two papers covering WCF November 2007 Getting Started with WCF RIA Services part 1 of the series articles on WCF RIA Services Retrieved from https en wikipedia org w index php title Windows Communication Foundation amp oldid 1171112115, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.