Category Archive for: Windows Communication Foundation

Duplex Communication

The next sample application shows how a duplex communication can be done between the client and the service. The client starts the connection to the service. After the client connects to the service, the service can call back into the client. For duplex communication, a contract must be specified that is implemented in the client. Here the contract…

Read More →

Clients

A client application needs a proxy to access a service. There are three ways to create a proxy for the client: Visual Studio Add Service Reference – This utility creates a proxy class from the metadata of the service. ServiceModel Metadata Utility tool (Svcutil.exe) – You can create a proxy class with the svcutil utility. This utility reads…

Read More →

Binding

A binding describes now a ,service wants to communicate. With binding, you can specify the following features: Transport protocol Security Encoding format Transaction flow Reliability Shape change Transport upgrade A binding is composed of multiple binding elements that describe all binding requirements. You can create a custom binding or use one of the predefined bindings that are…

Read More →

Service Implementation

The implementation of the service can be marked with the attribute (ServiceBehavior), as shown with the class Room Reservation Service: The attribute [ServiceBehavior] is used to describe behavior as is offered by WC services to intercept the code for required functionality, as shown in the following table. To demonstrate a service behavior, the interface IStateService defines a service…

Read More →

Contracts

A contract defines what functionality a service offers and what functionality can be used by the client. The contract can be completely independent of the implementation of the service. The contracts defined by WCF can be grouped into three different contract types: data, service, and message. The contracts can be specified by using .NET attributes: Data contract…

Read More →

WCF Overview

WCF combines the functionality from ASP.NET Web services, .NET Remoting, Message Queuing, and Enterprise Services. What you get from WCF is: Hosting for components and services – Just as you can use custom hosts with .NET Remoting and WSE, you can host a WCF service in the ASP.NET runtime, a Windows service, a COM process, just a…

Read More →

Windows Communication Foundation

Previous to .NET 3.0,several communication technologies were required in a single enterprise solution. For platform-independent communication, ASP.NET Web services were used. For more advanced Web services, technologies such as reliability, platform-independent security, and atomic transactions, Web Services Enhancements added a complexity layer to ASP.NET Web services. If the communication needed to be faster, and both the client and service…

Read More →

Back to Top