System.ServiceModel Namespace in WCF

In Windows Communication Foundation, the System.ServiceModel namespace is used to model and develop the service application and how it communicates. This namespace provides a large number of classes that allow developers to be flexible with respect to how their service will be developed. From the outset, a developer can model… Continue reading

Behaviors in WCF

This post has mentioned service behaviors on many occasions, so it closes out by discussing the different types of service runtime behaviors. A behavior controls the runtime characteristics of a service or endpoint. Behaviors are grouped according to their scope, in that they control aspects relevant to the object to… Continue reading

Contracts in WCF

Contracts define certain aspects of the service such as the format and structure of the message, and equally important, the behavior of the service. Service contracts are well-formed XML documents, typically found in the format of WSDL or XSD. Windows Communication Foundation supports the following three types of contracts: Service… Continue reading

Transports in WCF

Windows Communication Foundation supports four different transports: HTTP TCP MSMQ Named Pipes These transports are the medium in which communication takes place in a channel. Some of these transports have built-in security, and others do not. For example, HTTP has HTTPS. The HTTP transport is useful when connection state does… Continue reading

Messaging Patterns in WCF

Messaging patterns basically describe how programs exchange messages. When a program sends a message, it must conform to one of several patterns in order for it to successfully communicate with the destination program. Likewise, the destination program must conform to the same basic patterns. There are three basic messaging patterns… Continue reading

Relationship between Service-Oriented Architectures (SOA) and Windows Communication Foundation (WCF)

By using WCF, we can quickly build services that we can integrate into any enterprise solutions. Apart from writing entirely new functionality, we can use WCF to implement services that wrap existing applications, and connect them together in ways that were previously difficult to achieve. WCF can act as the… Continue reading

Difference between WCF SOAP and WCF REST

This post shows a WCF service with a method exposed both as a SOAP-based and REST-based endpoint. WCF SOAP WCF REST Abbreviation SOAP stands for Simple Object Access Protocol REST stands for Representational State Transfer Definition The Simple Object Access Protocol (SOAP) is an attempt to define a standard for… Continue reading

Purpose of Windows Communication Foundation (WCF)

By using Visual Studio, .NET Framework and WSE, we can quickly build Web services and client applications that can communicate and interoperate with Web services and client applications running on other operating systems. So why do we need WCF? Well, as we have already seen, Web services are just one… Continue reading

What is OData Library?

The OData library is a .NET Framework serialization library that supports the Open Data Protocol (OData). This library is a set of programming interfaces that support advanced serialization and deserialization scenarios in applications and processes where it is not desirable to use WCF Data Services. When you use the OData… Continue reading