Book Image

WCF Multi-layer Services Development with Entity Framework - Fourth Edition

By : Mike Liu
Book Image

WCF Multi-layer Services Development with Entity Framework - Fourth Edition

By: Mike Liu

Overview of this book

Table of Contents (20 chapters)
WCF Multi-layer Services Development with Entity Framework Fourth Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
2
Hosting the HelloWorld WCF Service
Index

Understanding the distributed transaction support of a WCF service


As we have seen, the distributed transaction support of a WCF service depends on the binding of the service, the operation contract attribute, the operation implementation behavior, and the client applications.

The following table shows some possible combinations of the WCF-distributed transaction support:

Binding permits transaction flow

Client has transaction flow enabled

Service contract opts in transaction

Service operation requires a transaction scope

Possible result

True

Yes

Allowed or Mandatory

True

Service executes under the flowed-in transaction

True or false

No

Allowed

True

Service creates and executes within a new transaction

True

Yes or no

Allowed

False

Service executes without a transaction

True or false

No

Mandatory

True or false

SOAP exception

True

Yes

NotAllowed

True or false

SOAP exception