When a method or callback in your web service is executed, the method or callback is encapsulated in a transaction. Other resources called by the method or callback may also be part of the transaction. A transaction coordinates a set of operations so that if one operation fails, none of the operations happen, and the state of the application is returned to the way it was before the method or callback executed.