Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maintain transaction / connection in Web Service?
Message
From
05/11/2003 08:29:11
 
 
To
05/11/2003 07:00:07
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00846380
Message ID:
00846395
Views:
16
>We're working on our first production web service, to be called from our proprietary app (VFP7/SQL2000).
>
>Question - Is there any way to maintain a SQL server transaction across a web service? That is, I would like my front end application to be able to say something like WebService.BeginTransaction() then make a variety of separate calls to the web service for various updates, inserts, etc. into the database, and then be able to close it out with some sort of WebService.Commit() call. Can the connection/state/transaction be maintained across a web service in this way? If so, is it advisable, practical, etc?
>
>Otherwise, I 'm assuming I have to send all the transactions up at once to the web service and let it (associated dll) deal with transactions itself.

Web Service, IMHO, shouldn't deal with business nor data objects. As they load everytime, they should only be used as a wrapper. However, once in it, you could call something that is already in memory. There, you could set your environment only once and you'll have your connection in there.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform