WCF Architecture Interview questions

WCF as SOAThis WCF service tutorial is part-4 in series of WCF Interview Questions. Before reading this please go through the following articles in this series.

What is SOA (Service Oriented Architecture) and how WCF supports it?

SOA is basically an architectural model that dictates few principles for building business applications in the form of independent, loosely coupled and interoperable services. These services are well defined, self-contained and can work together to achieve certain business functionality without depending on context or state of other services.

WCF supports almost all those principles dictated by Service Oriented Architecture for developing services; those are independent, loosely coupled and interoperable also. Please visit for detailed discussion on .

What is ESB in SOA environment?

In Service Oriented Architecture environment, ESB (Enterprise Service Bus) acts as a single interface for all messaging between applications and services in a loosely coupled manner. ESB is capable to call and subscribe different service provider’s methods and subscriptions respectively.

What is Transaction Propagation? And how WCF support it?

Transaction propagation is the ability to propagate transaction across the boundaries of a single service. Or in other words, we can say that a service can participate in a transaction that is initiated by a client.
In a SOA environment, transaction propagation becomes a key requirement. As we know that WCF supports SOA, so it provides support for transaction propagation as well.
To enable transaction propagation, we need to set the value of TransactionFlow property of the binding being used. This can be done programmatically as follows:

WSHttpBinding bindingBeingUsed = new WSHttpBinding;
bindingBeingUsed.TransactionFlow = “true”;

ESB - WCF Or It can be done declaratively by updating configuration file as follows:

Default value for property is “False”.

Does all WCF bindings support for Transaction Propagation?

No. Not all WCF bindings support transaction propagation. Only following list of bindings support for it.

  • wsHttpBinding
  • netTcpBinding
  • netNamedPipeBinding
  • wsDualHttpBinding
  • wsFederationHttpBinding

What are the various Transaction Flow Options available in WCF?

If a service is configured for Transaction Propagation, WCF further supports various options for service methods to be part of any transaction initiated outside service boundaries.

  • NotAllowed Transaction Propagation is not allowed for particular service method. Its default value.
  • Allowed Transaction Propagation is allowed but not compulsory.
  • Mandatory Transaction Propagation is compulsory for that service method.

For example, Transaction Propagation is mandatory for CreditAccount service method in following code snippet.

interface IPaymentService
void CreditAccount(….);

What is two-phase committed protocol?

In a distributed transaction scenario, two-phase committed protocol is an algorithm that ensures all the participating processes in a distributed transaction are ready to be committed or roll backed.

This is done in two phases:

  1. Prepare Phase

What is the role of transaction manager in WCF?

Transaction manager while sitting on client side, initiate the transaction and coordinates with all the processes that participate in a distributed transaction to commit or roll back.

What are the supported transaction types in WCF?

Supported transaction types in WCF are:

  • Light Weight
  • OLE Transactions
  • WS-Atomic Transactions

How to enable the Performance Counters in WCF?

Simple way to enable Performance Counters supported by WCF is as follows:

Above configuration setting will enable all categories of counters including ServiceModelService, ServiceModelEndpoint and ServiceModelOperation. Default value for it is “Off”.

Share this article

Related Posts

Latest Posts
Target internship interview questions
Target internship…
Describe how you handled a situation…
Home Depot supervisor interview questions
Home Depot supervisor…
Top Interview Tips From THD Associates…
WCF Architecture Interview questions
WCF Architecture…
This WCF service tutorial is part-4 in…
100 teacher interview questions
100 teacher interview…
Below you will find the complete list…
Interview questions for mental health care assistant
Interview questions…
Title: American bee journal Identifier:…
Featured posts
  • SOA Architecture Interview questions
  • Informatica Architecture Interview questions
  • Enterprise Architecture Interview questions
  • Computer Architecture Interview questions Intel
  • System Architecture Interview questions
  • Service Oriented Architecture Interview questions
  • Computer Architecture Interview questions
  • Cloud Architect Interview questions
  • Network Architect Interview questions
Copyright © 2017 l All rights reserved.