Tag Archives: WCF basics

3 Ways to generate proxy for WCF Service

In Windows Communication Foundation, for a client application to communicate with a WCF Service, we have following options: Using ChannelFactory Generating Proxies I have already discussed about difference between ChannelFactory and Proxies in one of my previous WCF Tutorial on this blog. In this article, we will focus only on multiple ways to generate proxy in […]

WCF Hosting in Windows Service Simplified

We have discussed briefly about different available hosting options (Self Hosting, Windows Service, IIS, WAS etc) for WCF Service in separate post “WCF Interview Questions and Answers – Part 1“. In this WCF Tutorial, we are going to implement hosting WCF Service in a Windows Service. Hosting in Windows Service is suitable for long-running WCF […]

WCF Self Hosting in a Console Application Simplified

In order to host a Windows Communication Foundation Service, we normally need a managed process, a ServiceHost instance and an endpoint configured forWCF Service.We can host aWCF Service in following different possible ways: Hosting in a Managed Application/ Self Hosting Console Application Windows/WPF Application Windows Service Hosting on Web Server IIS 6.0 (ASP.NET Application supports only HTTP) […]

Using WCF Data Contract Known Types by Example

Data Contract describes the type of data that will be sent or received between a service and a client. But in certain scenarios, sent or received data is not known between the the communicating parties. For example, a service sending data back to client is not the actual data contract but a derived type of […]

DataContract Vs MessageContract in WCF

Data Contract in WCF is an agreement between parties (i.e. a service and a client) that describes what type of data will be exchanged between them? On the other hand, Message Contract describes the structure of SOAP messagethatis passed between parties (i.e. a service and a client). Using Data Contract, we actually control the contents […]

3 techniques for Instance management in WCF

Instance management basically defines the binding of service instance to a request received from a client. In case of WCF, following three techniques for service instantiation are available:  PerCall PerSession Single As we know that application requirements varies from one to another with respect to scalability, durability, performance, transactions etc, so in order to meet respective […]

WCF Interview Questions – Part 2

This WCF tutorial is part-2 in series of WCF Interview Questions. Other parts in this series can be found here. WCF Service Interview Questions – Part 1 WCF Service Interview Questions – Part 2 WCF Service Interview Questions – Part 3 WCF Service Interview Questions – Part 4 WCF Interview Questions List – Part 2 What are the different ways to expose WCF […]

Difference between BasicHttpBinding and WsHttpBinding

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. Although these two bindings can work with WCF specific systems as well. […]

WCF Interview Questions – Part 1

This WCF Tutorial is a collection of most frequently asked interview questions about Windows Communication Foundation (WCF) covering the beginner to professional level. Following are the links to other posts in this WCF Questions Series: WCF Service Interview Questions – Part 1 WCF Service Interview Questions – Part 2 WCF Service Interview Questions – Part 3 WCF Service Interview Questions – Part […]

WCF Services – Choosing the appropriate WCF binding

Windows Communication Foundation is a programming model that enables us to develop and then expose our services in a variety of different ways. It means a single WCF service can be exposed with different wire formats and message protocols. Bindings in WCF actually defines that how to communicate with the service. So, binding specifies that […]