473,385 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

transactions in webservices

any one have any idea how transactions could be enabled in webservices.
i.e., suppose i've got 2 methods - one to add a contact, & the other to set
some miscellaneous details for the contact, in a webservice.

Now the client uses the above two methods & if the client is happy with the
return values of the above two methdos, ONLY then are the changes made on
the server to be commited. (there'd be three other methods,
begin-transaction, end-transaction & commit-transcation.

Any idea or concepts on achieving this.

(just as we have transcations with an SQL server, i'd like for the client to
have transcations on his/her end with the webserver).
Nov 21 '05 #1
2 1285
Antuane,

Is this not the normal way of using optimistic concurrency, all the time you
are building an update set and goes on as long as it is right?

Then at the end it can happen that a user has build a complete update set,
and than just a second before that another user has made a change, which
destroys the correctness of the updateset.

Than that should not update however report to the user that it is not be
done.
There can be investigated what gives the error (what is changed in the
meantime) and create a new updateset while the right things are in it
already or let the user do it all over again with the new information (what
is of course the most simple).

Just my thought, when I understand your question well.

Cor

"Antuane" <An*****@testing.com.net>
..
any one have any idea how transactions could be enabled in webservices.
i.e., suppose i've got 2 methods - one to add a contact, & the other to
set
some miscellaneous details for the contact, in a webservice.

Now the client uses the above two methods & if the client is happy with
the
return values of the above two methdos, ONLY then are the changes made on
the server to be commited. (there'd be three other methods,
begin-transaction, end-transaction & commit-transcation.

Any idea or concepts on achieving this.

(just as we have transcations with an SQL server, i'd like for the client
to
have transcations on his/her end with the webserver).

Nov 21 '05 #2
Antuane,

Is this not the normal way of using optimistic concurrency, all the time you
are building an update set and goes on as long as it is right?

Then at the end it can happen that a user has build a complete update set,
and than just a second before that another user has made a change, which
destroys the correctness of the updateset.

Than that should not update however report to the user that it is not be
done.
There can be investigated what gives the error (what is changed in the
meantime) and create a new updateset while the right things are in it
already or let the user do it all over again with the new information (what
is of course the most simple).

Just my thought, when I understand your question well.

Cor

"Antuane" <An*****@testing.com.net>
..
any one have any idea how transactions could be enabled in webservices.
i.e., suppose i've got 2 methods - one to add a contact, & the other to
set
some miscellaneous details for the contact, in a webservice.

Now the client uses the above two methods & if the client is happy with
the
return values of the above two methdos, ONLY then are the changes made on
the server to be commited. (there'd be three other methods,
begin-transaction, end-transaction & commit-transcation.

Any idea or concepts on achieving this.

(just as we have transcations with an SQL server, i'd like for the client
to
have transcations on his/her end with the webserver).

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Richard Maher | last post by:
Hi, I am seeking the help of volunteers to test some software that I've developed which facilitates distributed two-phase commit transactions, encompassing any resource manager (e.g. SQL/Server...
11
by: Mike P | last post by:
I've been using C# transactions for a while and had no problems with them. Using try catch blocks I can trap basically all possible errors and rollback all necessary data. Over the last few...
2
by: Antuane | last post by:
any one have any idea how transactions could be enabled in webservices. i.e., suppose i've got 2 methods - one to add a contact, & the other to set some miscellaneous details for the contact, in a...
8
by: Komandur Kannan | last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The backend is Oracle and a middle tier web services development done in Vb.net. We use pessimistic Locking due to...
2
by: PL | last post by:
Is it safe to replace dll's in bin while there are running transactions or is it considered bad practice to replace dll's in the /bin folder while the server is running ? I never really thought...
5
by: Allan Ebdrup | last post by:
I'm using dotNet 2.0 and VS2005, I would like to have some code call several webservices that I have written that insert data into a DB (MSSQL 2000) inside a transaction. So that I can rollback if...
2
by: Sridhar | last post by:
Hi, I am trying to implement sql transactions. But I am not knowing how to do that. I created a data access layer which contains methods to select/insert/update tables in a database. I have also...
12
by: Rami | last post by:
I have some requirement for an automated payment system. The system has four machines setup as follows: 1- Two machines have a clustered database. 2- Two machines have a .net business logic...
2
by: Basil | last post by:
Hello! Could you help me? How can I implement distributed transactions in Webservices, if I have Framework 1.1, WSE 2.0? Could you give me a few samples? Thanks.
1
by: AAAAA | last post by:
Hi guys!! can I work with transactions between webservices with WSE? or can i do with WCF?? Thanks Regards, Cesar
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.