Search code examples
wcfresttransactionswcf-rest

Transaction in REST WCF service


We are having a REST WCF service. we want the save operation on this REST service to be in transaction. Is there a way to pass Transaction object over the wire to REST WCF service?


Solution

  • Here is a quote from Roy Fielding, the guy who invented the term REST

    If you find yourself in need of a distributed transaction protocol, then how can you possibly say that your architecture is based on REST? I simply cannot see how you can get from one situation (of using RESTful application state on the client and hypermedia to determine all state transitions) to the next situation of needing distributed agreement of transaction semantics wherein the client has to tell the server how to manage its own resources.

    ...for now I consider "rest transaction" to be an oxymoron.

    This is from a message on the REST-discuss list from June 9th, 2009.