Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Windows Communication Foundation

From Wikipedia, the free encyclopedia
Software framework
Windows Communication Foundation (WCF)
Original authorMicrosoft
Developer.NET Foundation
Initial releaseNovember 21, 2006; 19 years ago (2006-11-21)
Stable release
v3.4.0 / August 18, 2022; 3 years 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

TheWindows Communication Foundation (WCF), previously known asIndigo, is afree and open-sourceruntime and a set ofAPIs in the.NET Framework for building connected,service-oriented applications.[1][2]

.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]
dot net three point windows stack diagram
Thissubsystem is a part of.NET Framework 3.0

WCF is a tool often used to implement and deploy aservice-oriented architecture (SOA).It is designed using service-oriented architecture principles to supportdistributed computing whereservices have remoteconsumers. Clients can consume multiple services; services can be consumed by multiple clients. Services areloosely coupled to each other. Services typically have aWSDLinterface (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 asWS-Addressing,WS-ReliableMessaging andWS-Security. With the release of.NET Framework 4.0, WCF also providesRSS Syndication Services,WS-Discovery, routing and better support forREST services.

Endpoints

[edit]

A WCF client connects to a WCF service via anendpoint. 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.

Themnemonic "ABC" can be used to rememberaddress/binding/contract. Binding specifies whatcommunication 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 asSOAP 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 theJSONserialization 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 theIServiceBehavior interface for service extensions, theIEndpointBehavior for endpoints, theIContractBehavior interface for service contracts, or theIOperationBehavior 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 asJava 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 orHTTPS.[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. Retrieved2022-06-06.
  4. ^"AJAX Integration and JSON Support". Microsoft. Retrieved2008-04-24.
  5. ^"Custom Authentication and Authorization in WCF". TatvaSoft UK. Retrieved2018-11-14.
  6. ^"Introducing Windows Communication Foundation in .NET Framework 4". Microsoft. Retrieved2011-07-17.

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]
Wikibooks has a book on the topic of:.NET Development Foundation
Implementations
Architecture
Components
Tools
Decompilers
Obfuscators
IDEs
Organizations
Graphics and UI
Audio
Multimedia
Web
Data access
Networking
Communication
Administration and
management
Component model
Libraries
Device drivers
Security
.NET
Software factories
IPC
Accessibility
Text and multilingual
support
Overview
Software
Applications
Video games
Programming
languages
Frameworks,
development tools
Operating systems
Other
Licenses
Forges
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Windows_Communication_Foundation&oldid=1279399744"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp