Skip to main content

Go Search
Home
Download .NET
infoWire
Articles
Whitepapers
Videos
Podcasts
Webcasts & Events
Virtual Labs
How-To
Tools
Books
  
> Windows Communication Foundation Articles  

Windows Communication Foundation Articles




Modify settings and columns

  
Windows Communication Foundation, WCF
  
View: 
DescriptionFilter
Expand/Collapse Topic : Deployment ‎(1)
Windows Communication Foundation: Application Deployment ScenariosUse SHIFT+ENTER to open the menu (new window).
Windows Communication Foundation (WCF) is Microsoft's platform for SOA. It is a rich technology foundation designed for building distributed service-oriented applications for the enterprise and the web that are secure, reliable, transactional and scalable.
Expand/Collapse Topic : Exception Handling ‎(2)
Specifying and Handling Faults in Contracts and ServicesUse SHIFT+ENTER to open the menu (new window).
Windows Communication Foundation (WCF) applications handle error situations by mapping managed exception objects to SOAP fault objects and SOAP fault objects to managed exception objects. The topics in this section discuss how to design contracts to expose error conditions as custom SOAP faults, how to return such faults as part of service implementation, and how clients catch such faults.
WCF Basic: Create, host and consume with SOAP Faults handlingUse SHIFT+ENTER to open the menu (new window).
An example for creating WCF service, hosting it in a managed code application and consuming it in another application
Expand/Collapse Topic : Extending WCF ‎(4)
Extending WCF with Custom BehaviorsUse SHIFT+ENTER to open the menu (new window).
Windows Communication Foundation (WCF) provides numerous extensibility points that allow developers to customize the runtime behavior for service dispatching and client proxy invocation. This article shows you how this process works.
Building A WCF Router, Part 2Use SHIFT+ENTER to open the menu (new window).
The April 2008 installment of Service Station showed you how to create a simple router that allows messages to flow transparently between the calling client and the target service. The article eviewed important Windows® Communication Foundation (WCF) addressing and message filtering semantics, you learned how to design a router contract to work with untyped messages, and you learned how to configure the bindings and behaviors to allow messages to pass through untouched by the router. This continues the discussion by looking at further implementation details that arise when more practical scenarios for routers are employed.
Building a WCF Router, Part 1Use SHIFT+ENTER to open the menu (new window).
Here we take a look at WCF clients and services, and explain how to tweak the addressing and message filtering behaviors so you can route services between them.
Write an IM App with the .NET Compact FrameworkUse SHIFT+ENTER to open the menu (new window).
The .NET Compact Framework 3.5 provides a subset of Windows Communication Foundation (WCF) functionality that you can harness to communicate between Windows Mobile devices and desktop PCs. This article explains how
Expand/Collapse Topic : Getting Started ‎(11)
Getting Started with Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
This article will walk you through the process of creating and consuming two simple services.
Introduction to Windows Communication Foundation (WCF)Use SHIFT+ENTER to open the menu (new window).
Overview of Windows Communication Foundation with code samples.
Introduction to Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
Windows Communication Foundation is one of main new technologies that are included in .NET 3.0. In this article, as the first part of his Windows Communication Foundation tutorials, Keyvan introduces Windows Communication Foundation and some principles behind it.
Fundamentals of Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
Like all other technologies, Windows Communication Foundation (WCF) has its own fundamental concepts and definitions. Having a good understanding of these fundamentals can be a key to success in learning this new technology. In this article Keyvan talks about all these fundamentals in detail.
Start Development with Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
After writing two articles and introducing Windows Communication Foundation and its fundamentals, Keyvan talks about coding with this new technology in .NET 3.0, its programming model and development process.
Data Representation in Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
How is data sent from a Windows Communication Foundation client to a service? This article explains the involvement of XML serializers to improve control and optimization.
Creating RESTful Web Services with Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
Windows Communication Foundation (WCF) is Microsoft's services-oriented framework for building connected systems using the Microsoft .NET Framework. Although WCF is flexible enough to build arbitrary services-based solutions, its primary story is Web Services. To get the most out of this article, you should have at least a basic understanding of core WCF concepts including messaging, serialization, contracts, and bindings/endpoint configuration. This article was written based on .NET 3.5, the Beta 2 release.
What's New for WCF in Visual Studio 2008 Use SHIFT+ENTER to open the menu (new window).
Visual Studio 2008 and the .NET Framework 3.5 provide new tools and support that extends Windows Communication Foundation (WCF). Visual Studio 2008 also automates a number of manual WCF tasks for the developer as well.
What You Need To Know About One-Way Calls, Callbacks, And EventsUse SHIFT+ENTER to open the menu (new window).
This article discusses:
Invocation models in Windows Communication Foundation, one-way and callback operations, duplex callbacks and events, a publish-subscribe framework
Introduction to WCF TestingUse SHIFT+ENTER to open the menu (new window).
Whether you are new to Windows® Communication Foundation (WCF) or have worked with it a bit, there are some testing techniques and principles that will make your WCF work easier. There are several ways to think about what WCF is—the author tend to think of WCF services as a major extension of Web services. Like Web services, WCF services allow you to create distributed systems using a service-oriented architecture. However, WCF services provide much greater flexibility (such as choice of transport protocol) and additional features (such as transactions and security). WCF is much more than merely an extension of Web services, but if you are new to WCF, initially thinking about WCF services in this way is a reasonable approach.
Writing Smart Clients by Using Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
There are a number of important design constraints that you must accommodate in your application when combining Microsoft Windows Communication Foundation (WCF) and user-interface (UI) applications. This article explains and illustrates these constraints, and shares best practices and design guidelines.
Expand/Collapse Topic : Hosting ‎(1)
Hosting and Consuming WCF ServicesUse SHIFT+ENTER to open the menu (new window).
This article discusses Windows Communication Foundation (WCF) hosting options and consuming WCF services.
Expand/Collapse Topic : Messages ‎(3)
WCF Messaging FundamentalsUse SHIFT+ENTER to open the menu (new window).
MSDN Magazine article covers the basics of WCF Messaging.
SOA'izing MSMQ with WCF (and Why It's Worth It) Use SHIFT+ENTER to open the menu (new window).
Microsoft Message Queuing’s (MSMQ) integration with the Windows Communication Foundation (WCF) is extremely powerful. It enables MSMQ developers to write fault-tolerant, service-oriented applications and provides a robust extensibility model developers can use to improve any system’s capabilities – including MSMQ’s. In this video and corresponding sample we'll convert a System.Messaging application into a WCF Queuing application, enable that application to overcome MSMQ’s 4mb message size limitation with a prototype chunking channel, and integrate it seamlessly with existing MSMQ applications.
Build a Queued WCF Response ServiceUse SHIFT+ENTER to open the menu (new window).
Windows Communication Foundation (WCF) enables disconnected work between clients and services. The client posts messages to a queue and the service processes them later. Such interaction permits a different programming model from the default request/response pattern, enabling possibilities such as load leveling, improved availability, and compensating work, to name just a few. This column starts with a brief introduction to Windows® Communication Foundation queued calls and then presents an interesting problem-how to get results out of a queued call-and the solution via some cool Windows Communication Foundation programming techniques and a few helper classes the author wrote for this purpose.
Expand/Collapse Topic : Other ‎(19)
Serialization in Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
Aaron Skonnard explains the concept of serialilization in  Windows Communication Foundation.
WCF Streaming: Upload files over HTTP Use SHIFT+ENTER to open the menu (new window).
Integrating Windows Workflow Foundation and Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
This article provides an overview of how workflows that are built by using Windows Workflow Foundation (WF) can be hosted inside services that have been created by using Windows Communication Foundation (WCF). The article also describes how we can make use of some of the broad capabilities that are provided by WCF to facilitate client-event callbacks by making use of a duplex channel.
Architecture, WCF Services and CachingUse SHIFT+ENTER to open the menu (new window).
WCF: Duplex Operations and UI ThreadsUse SHIFT+ENTER to open the menu (new window).
Integrating WCF Services with COM+ Use SHIFT+ENTER to open the menu (new window).
This article will detail step by step instructions to consume COM+ application services from WCF clients. We will also discuss how legacy applications can use applications that expose WCF services built on .NET 3.0.
How to: Enable the WCF Role ServiceUse SHIFT+ENTER to open the menu (new window).
Shows how to configure the ASP.NET role service on a Web server to make it available to clients that use the Windows Communication Foundation (WCF).

How to: Enable the WCF Profile ServiceUse SHIFT+ENTER to open the menu (new window).
Shows how to configure the ASP.NET profile service on a Web server to make it available to clients that use the Windows Communication Foundation (WCF).
Using Custom Business Objects with Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
Demonstrates how to work with these custom business objects in WCF.
Asynchronous Pattern in Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
In this article Keyvan shows how to implement an asynchronous pattern in Windows Communication Foundation for services and clients to enable easy execution of long running operations.
Build Office-Based Solutions Using WPF, WCF, And LINQUse SHIFT+ENTER to open the menu (new window).
This article discusses:
How VSTO makes Office development more powerful
Using WCF, WPF, and LINQ in Office solutions
Easily adding advanced features to your Office apps
Building services the easy way 
HTTP Programming with WCF and the .NET Framework 3.5Use SHIFT+ENTER to open the menu (new window).
This article discusses HTTP message basics, Adding information to URIs, WCF and HTTP, and RSS/ATOM with WCF
 
Write an IM App with the .NET Compact FrameworkUse SHIFT+ENTER to open the menu (new window).
This article covers mail transports in the .NET Compact Framework,  writing simple messaging applications, WCF messaging plumbing and consuming a WCF Web service.
Web Service Software Factory Modeling Edition Use SHIFT+ENTER to open the menu (new window).
Web Service Software Factory: Modeling Edition is a collection of resources for modeling and building Web services for Windows Communication Foundation and ASMX.
Integrating the Policy Injection Application Block with WCF Services Use SHIFT+ENTER to open the menu (new window).
Using the PIAB you can enhance WCF services with policies such as validation, performance monitoring, authorization and caching without having to change a line of code.
Managing State With Durable ServicesUse SHIFT+ENTER to open the menu (new window).
Long-running processes are common in distributed computing. Some business processes are made up of multiple execution sequences which may last many days or even weeks. They may involve clients (or even end users) that connect to the application, perform a small amount of work, transition the workflow to a new state, and then disconnect for an indeterminate amount of time before connecting again and continuing the workflow. The clients may at any point decide to terminate the workflow and start a new one, or the back-end workflow service may end it. With this intermittent flow, do you keep proxies and services in memory waiting for the clients to call?
This column will discuss several techniques for supporting such long-running services and answer some of these common questions. It will also present the accompanying Windows Communication Foundation (WCF) facilities and a few helper classes the author has developed.
Synchronization Contexts in WCFUse SHIFT+ENTER to open the menu (new window).
One of the more useful features of the Windows® Communication Foundation (WCF) is its reliance on the Microsoft® .NET Framework synchronization context to marshal calls to the service instance (or to a callback object). This mechanism provides for both productivity-oriented development and for powerful extensibility. This column describes briefly what synchronization contexts are and how WCF uses them, and then proceed to demonstrate various options for extending WCF to use custom synchronization contexts, both programmatically and declaratively. In addition to seeing the merits of custom synchronization contexts, you will also see some advanced .NET programming as well as WCF extensibility techniques.
Service-Driven Apps With Silverlight 2 And WCFUse SHIFT+ENTER to open the menu (new window).
It is true that Silverlight™ 2 makes it easy to build rich internet applications (RIAs) with tremendous graphical prowess. However, it is also true that Silverlight 2 makes it easy to build highly functional line-of-business (LOB) applications. Silverlight 2 supports a subset of the powerful XAML-based data binding that Windows® Presentation Foundation (WPF) enables. The XAML binding markup extensions in Silverlight 2 simplify the process of binding entities to Silverlight controls. Because they run completely on the client computer, Silverlight applications are isolated from the entities that are managed on the server. Therefore service-based communication through technologies such as RSS, Representational State Transfer (REST), and Windows Communication Foundation (WCF) must be available. Fortunately, Silverlight 2 supports interaction with these and other communication pathways, enabling Silverlight applications to interact seamlessly with back-end LOB applications.
Peer-to-Peer Programming with WCF and .NET Framework 3.5Use SHIFT+ENTER to open the menu (new window).
This article explores peer-to-peer (P2P) concepts and how they are supported in Microsoft .NET Framework 3.5. It aims to provide an understanding of P2P fundamentals, as well as show how to use the new features of Windows Communication Foundation (WCF). Finally, it introduces the new features of managing P2P networks, including the use of People Near Me and Windows Address Book—new features released as part of Windows Vista.
Expand/Collapse Topic : Security ‎(13)
Securing Your WCF ServiceUse SHIFT+ENTER to open the menu (new window).
Explains you how you can implement security on a WCF service.
Security in Windows Communication FoundationUse SHIFT+ENTER to open the menu (new window).
Keith Brown provides an overview of WCF Security from MSDN Magazine
Secure Your ASP.NET Apps And WCF Services With Windows CardSpaceUse SHIFT+ENTER to open the menu (new window).
This article discusses Windows CardSpace and information cards, beb browsers and identity selectors, security tokens, and integration with WSFederationHttpBinding and ASP.NET membership
How to: Enable the WCF Authentication ServiceUse SHIFT+ENTER to open the menu (new window).
Shows how to configure the ASP.NET authentication service on a Web server to make it available to clients as a Windows Communication Foundation (WCF) service. The topic also shows how to configure ASP.NET forms authentication.
How To: Configure a Port with An SSL CertificateUse SHIFT+ENTER to open the menu (new window).
WCF: Security Sessions and Service Throttling Use SHIFT+ENTER to open the menu (new window).
Provides an overview of security sessions, which allows secure communication to be faster.
Best Practices for Security in WCFUse SHIFT+ENTER to open the menu (new window).
A short list of the best practices to consider when creating secure applications using Windows Communication Foundation (WCF).
Managing Claims and Authorization with the Identity ModelUse SHIFT+ENTER to open the menu (new window).
WCF uses the Identity Model to create claims from incoming messages; Identity Model classes can be extended to support new claim types for custom authorization schemes. This topic presents an overview of the major programming concepts of the Identity Model feature, as well as a listing of the most important classes the feature uses.
Integrating the Policy Injection Application Block with WCF ServicesUse SHIFT+ENTER to open the menu (new window).
Using the PIAB you can enhance WCF services with policies such as validation, performance monitoring, authorization and caching without having to change a line of code.
Code Access Security in WCF, Part 1 Use SHIFT+ENTER to open the menu (new window).
Here we discuss code-access security in Windows Communication Foundation (WCF) and present a solution for enabling partially trusted clients for WCF services.
Adding Code Access Security to WCF, Part 2Use SHIFT+ENTER to open the menu (new window).
The April 2008 installment of this column discussed the lack of adequate support for code access security (CAS) and the motivation for adding proper CAS support to the Windows® Communication Foundation (WCF). It then proceeded to show how to add that support on the client side, enabling partially trusted clients to call WCF services, all without compromising on security or on the WCF programming model.
This issue will show you what it takes to complete the picture by allowing partially trusted services and partially turreted hosts. As with the client side, you will see not just the mechanics of the solution but also the approach and the thought process leading to it. You will also get to see some advanced programming techniques in the WCF and Microsoft® .NET Framework.
Declarative WCF SecurityUse SHIFT+ENTER to open the menu (new window).
Security is by far the most intricate area of the Windows® Communication Foundation (WCF). In every WCF operation call on the service side, security is governed by the service contract, the operation contract, the fault contract (if present), the service behavior, the operation behavior, the host configuration, and the method configuration and its code. Each of these items may have as many as a dozen or more security-related properties, as illustrated in Figure 1, depicting the security properties of ServiceHostBase (the base of ServiceHost).
Authorization In WCF-Based ServicesUse SHIFT+ENTER to open the menu (new window).
Once you start adopting service-oriented principles for your distributed applications, the security challenges become slightly different. You suddenly realize that you are crossing a security boundary for every service call you make.
Typically—though not necessarily—there will be a network between the sender and the recipient of a service call. While authentication is usually handled automatically by the communication framework, you still have to come up with your own authorization strategy and infrastructure.
Windows Communication Foundation (WCF) provides powerful facilities for implementing authorization in services. You have the choice between an easy-to-use, role-based system as well as a more powerful, but more complex, claims-based API. The remainder of this article will compare both systems and show how to use them to implement robust service authorization.
Expand/Collapse Topic : Transactions ‎(1)
WCF Transaction PropagationUse SHIFT+ENTER to open the menu (new window).
Transactions are the key to building robust, high-quality service-oriented applications. Windows® Communication Foundation provides simple, declarative transaction support for service developers, enabling you to configure parameters such as transaction flow and voting, all outside the scope of your service. In addition, Windows Communication Foundation allows client applications to create transactions and to propagate them across service boundaries. This column takes a closer look at configuring transaction propagation and voting in Windows Communication Foundation and the resulting programming models.
Expand/Collapse Topic : Workflow Foundation Integration ‎(1)
Workflow ServicesUse SHIFT+ENTER to open the menu (new window).
With the NET Framework 3.5, Windows Workflow Foundation can now truly be integrated with Windows Communication Foundation. This column describes how the integration works and how to make use of it effectively.