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… Read More »

How to return a List from WCF Service?

Consider a WCF service method that returns a generic list as follows: public List GetAllEmployees() { //code details here…. //returning a generic List<Employee> } On Client-side, if we try to access returned value of that web service method as follows: MyServiceClient client = new MyServiceClient(); List employeeList = client.GetAllEmployees(); We will face following error: Cannot… Read More »

WCF Service – Configuring Timeouts for Binding

As we already know that a WCF Service endpoint has ABC (Address, Binding and Contract). Address means “Where to find the service?” Binding means “How to communicate with service?” Contract defines “What to communicate? As WCF Service Binding defines all about how to communicate. It plays an important role in managing performance and security for… Read More »

WCF Service – Instance Deactivation

What is Instance Deactivation in Windows Communication Foundation? How explicitly we can deactivate an instance? Instance Deactivation: When a service method being called from client, its forwarded to a service instance. So, Instance deactivation means that the moment this service instance is disposed off by WCF. In order to explicitly deactivate a service instance, we will… Read More »

WCF Interview Questions – Part 4

This WCF service tutorial is part-4 in series of WCF Interview Questions. Before reading this please go through the following articles in this series. WCF Service Interview Questions – Part 1 WCF Service Interview Questions – Part 2 WCF Service Interview Questions – Part 3 WCF Interview Questions List – Part 4 What is SOA (Service Oriented Architecture) and how… Read More »

WCF Interview Questions – Part 3

This WCF tutorial is part-3 in series of WCF Interview Questions and Answers. Other parts in this series are as follows: 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 3 What is a fault contract? A user… Read More »

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… Read More »