.net

Difference between BasicHttpBinding and WsHttpBinding

Posted on

Microsoft Windows Communication Foundation comes with a set of built-in bindings and each binding is designed to fulfill some specific need. So, if interoperability is our concern and we need to communicate with non-WCF system, then, we should go for basicHttpBinding or wsHttpBinding. BasicHttpBinding WsHttpBinding Primarily BasicHttpBinding is designed to exchange SOAP over HTTP(s) only, […]

.net

WCF – Validating WCF Configuration

Posted on

Validating configuration is another new features in Windows Communication Foundation v4.5.   Basically, it can be considered as an enhancement to Visual Studio as well. Previously, config files were not validated if we build our WCF project.   Now with WCF 4.5, if we build our project and our configuration file has some validation issue, […]

.net

WCF – Simplified Generated Configuration

Posted on

Windows Communication Foundation is a great programming platform for building service-oriented applications. However, you will find out that most of WCF developers had a concern that it has lengthy and complex configuration settings. If you ever workedwithprevious versionsofWCF,youmust be familiar with following configuration.

Above configuration is the default binding configuration generated on client-side when you add […]

.net

WCF – Contract First Development

Posted on

As we know that with previous versions of Windows Communication Foundation, while creating proxy using SvcUtil.exe tool, the output generated file contains the Service Contract, Client operations as well as Data Contracts. There was no way to generate the Service Contract only. But with Windows Communication Foundation v4.5, now its possible to generate the Service Contract only using SvcUtil.exe tool as follows:

© 2015, www.techkatak.com. All rights […]

.net

WCF – Compression support for Binary Encoder

Posted on

Windows Communication Foundation v4.5, Compression support is available for Binary Encoder through CompressionFormat property. This Compression feature can work for HTTP, HTTPS as well as TCP protocol. CompressionFormat property can have one of the possible CompressionFormat enum values: Deflate – Deflate Compression GZip – GZip Compression None – No compression at all. For compression support […]

.net

WCF UDP Binding support

Posted on

WCF – UDP Binding Support Support for UDP Binding was much awaited in Windows Communication Foundation. TCP is connection-oriented protocol that sends message and guarantees that it’s reached destination but UDP is connectionless protocol that sends message and doesn’t look back that either it’s reached to destination or not. In one-way operation messages, UDP protocol […]

.net

ChannelFactory Caching in WCF 4.5

Posted on

ChannelFactory is a factory class for creating the channel instances in a WCF client. This class simplifies the task of creating the channel between a WCF service and a client. When an instantiation is done on the client it means a channel is established with the WCF service and creates the proxy of the service […]