Question TransactionScope in Web Service?

raysefo

Well-known member
Joined
Jul 21, 2010
Messages
207
Programming Experience
Beginner
Hi,

I m using TransactionScope in my application. But in the project, i have to call a web service. According to the result (or exception ) from this web service i should commit all other update/insert operations (also SAP insert in this web service) or rollback all transactions due to the exception coming from web service. Is there a way to implement something like below in my web service?

Thanks i nadvance.

Best regards

VB.NET:
Using scope = New TransactionScope(TransactionScopeOption.Required)
...
...
scope.Complete()
End Using
 
Back
Top