Transaction via basicHttpBinding

Currently we have asmx webservice, which provides the only method for creating various Sql database updates wrapped inside SqlTransaction.

I am rewriting this service in WCF, and we would like to split the existing method into subheadings available through various WCF services. There is a restriction on the use of basicHttpBinding in services, which excludes all the built-in WCF transaction functions. Is it possible to go with this architecture and support a transaction through multiple service calls? WS-TRANS was suggested as a possible solution, but I am not familiar with this, will this work?

+3
source share
2 answers

Very rarely, you get something for nothing. The main difference between the underlying HttpBinding and ws HttpBinding is that the latter supports the WS - * protocols.

basicHttpBinding gives you what you had with ASMX, more or less. "transactions" will be much more than with ASMX.

+4
source

As far as I know, WS-TRANS means Translation Web Services, so this will not work.

What do you mean WS-TX , of which WS- AtomicTransaction is part. BasicHttpBinding simply does not support WS-AtomicTransaction. I'm afraid your setup will not work ...

+1
source

Source: https://habr.com/ru/post/908525/


All Articles