Are there any transactions around multiple webservice calls?
Are there any transactions a开发者_如何学运维round multiple webservice calls. Let me start with a commonly used example -- the travel agency. A customer intends to create a travel plan through an online travel agency. To do this, the online travel application calls the following three Web services:
-Air ticket booking
-Hotel reservation
-Taxi reservation
These three services are available from three separate vendors. If any one of these three services fails, the customer does not wish to proceed with the transaction (again, either all three services must succeed or none at all). My language programming is Asp.net c#. what's the solution?
No, this is not possible. Transactions cannot go past web service boundaries.
Raymond, Have you ruled out WS-AT? Link to MSDN
You'll need some form of two-phase commit capability from the other service providers.
Other than that, you'll need a compensating transaction approach.
精彩评论