WCF Interview Questions (Part-5) – Easy WCF
Skip to content

WCF Interview Questions (Part-5)

WCF Interview Questions:

  1. What is a SOA and how WCF supports it?
  2. What is two phase committed protocol?
  3. What is the role of transaction manager in WCF?
  4. What is transaction propagation and how WCF supports it?
  5. What are the supported transaction type in WCF?
  6. What are the different transaction flow options supported by WCF?
  7. What all are the WCF binding supports transaction propagation?


1.What is a SOA and how WCF supports it?

A loosely-coupled architecture designed to meet the business needs of the organization.

Service-Oriented Architecture (SOA) is an architectural style that supports service-orientation. Service-orientation is a way of thinking in terms of services and service-based development and the outcomes of services.

SOA Evolution

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 principles by Service Oriented Architecture for developing services; those are independent, loosely coupled and interoperable also

You can read more on SOA here.


2.What is two phase committed protocol?

The two phase commit protocol is a distributed algorithm which lets all sites in a distributed system agree to commit a transaction.

The protocol results in either all nodes committing the transaction or aborting, even in the case of site failures and message losses.

  1. Prepare Phase
  2. Commit phase


3.What is the role of transaction manager in WCF?

Transaction manager initiates the transaction and coordinates with all the processes that participate in a distributed transaction to commit or roll back.

Transaction Manager


4.What is transaction Propagation and how WCF supports it?

Transaction propagation is the ability to propagate transaction across the boundaries of a single service.

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.

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

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:

Default value for TransactionFlow property is “False”.

5.What are the supported transaction types in WCF?

There are three different kinds of transaction protocols used by WCF.

  • Lightweight
  • OleTx
  • WS Atomic Transaction

WCF Transaction Protocol

6. What are the different transaction flow options supported by WCF?

There are 3 transaction flow options are supported by WCF.

  • 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.


7. What all are the WCF binding supports transaction propagation?

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

  • wsHttpBinding
  • netTcpBinding
  • netNamedPipeBinding
  • wsDualHttpBinding
  • wsFederationHttpBinding







© 2015, admin. All rights reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *