473,378 Members | 1,397 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,378 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 1284
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
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.