Transactional Web Services

Individual Web methods in Web services can participate in a transaction. Transactional Web services enable performing a series of steps as a unit of work (see Listing 9.5). Transactional Web methods can invoke other .NET Enterprise components and/or invoke transactional resources such as relational databases, Microsoft Message Queuing (MSMQ), Host Integration Server, and so on using the Distributed Transaction Coordinator (DTC). This allows the entire transaction to occur as a unit of work. One limitation imposed on Web services, however, is that Web methods can participate in a transaction as the initial root of a new transaction (RequiresNew TransactionOption). Also, Web services methods cannot be chained together ...

Get Microsoft® .NET Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.