Enabling distributed transaction support
In the previous sections, we verified that the WCF service currently does not support distributed transactions irrespective of whether these are two sequential calls to the same service or two sequential calls to two different services, either with one database or with two databases.
In the following sections, I will explain how to allow this WCF service to support distributed transactions. We will allow the WCF service to participate in the client transaction. From another point of view, I will explain how to flow or propagate a client transaction across the service boundaries so that the client can include service operation calls on multiple services in the same distributed transaction.
Note
For more information about WCF transaction support you can visit the MSDN MCF transaction support site at http://msdn.microsoft.com/enus/library/ms730266.aspx.
Enabling transaction flow in service binding
The first thing that we need to pay attention to is the bindings...