Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7044171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:22:40+00:00 2026-05-28T02:22:40+00:00

I have several transactions to insert form data into oracle table. if (InsertQuarterly() ==

  • 0

I have several transactions to insert form data into oracle table.

if (InsertQuarterly() == true)
            {
                InsertMeasures();
            }

And if insertmeasures procedure executed successfully then I have to call another procedure.
Within InsertQuarterly I am calling a webservice method to Insert data into Oracle table
for eg

sOUT = ws_service.InsertQuarterly(txtQ2dTarget.Text, txtQ3dTarget.Text)

and for InsertMeasures I am calling webservice

sOUT = ws_service.InsertMeasures(txtachieveGold.Text, txtachieveDia.Text)

My problem is if InsertQuarterly executed successfully but if InsertMeasures failed during transaction then I want to rollback InsertQuarterly also.
How can I achieve this? I can use OracleTransaction with transaction.Rollback().
But am using different webservice methods for transactions.
How to manage rollback and commit here.?

What is the best procedure to handle Transactions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:22:41+00:00Added an answer on May 28, 2026 at 2:22 am

    You need the cooperation of the Web Service provider.

    The Web Services standards do permit service providers to offer transactional behaviours across service invocations. In my experience comparatively few service authors do support transactionality. If the services you use offer such capability then you will need to read up on the specifics of using WS-AtomicTransaction in your environment.

    However, there are considerable overheads and operational complexities in providing such transactional services, which may well be why few people do so. My preferred solution would be to provide a single coarse-grained service combining the capabilities of InsertQuarterly and InsertMeasures – that implementation can then very easily manage the Oracle transaction within the single service call.

    A further possibility is to develop idempotent services (srevices that can safely be called more than once.) The client then has responsibility to call InsertQuarterly() and InsertMeasures() repeatedly until both work, the calls can only safely be repeated if the services are idempotent.

    All of these approaches require your service provider to implement some suitable approach, you cannot solve this problem purely in your client code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a long running insert transaction that inserts data into several related tables.
I have a stored procedure that inserts into several tables in a single transaction.
I have several long running report type transactions that take 5-10 minutes. Would I
I have several ASP:TextBox controls on a form (about 20). When the form loads,
I have several tables whose only unique data is a uniqueidentifier (a Guid) column.
We have several wizard style form applications on our website where we capture information
I have a table which get new data inserted every minute or so. According
I have to insert some records in a table in a legacy database and,
I have a table that maintains specific business transactions, let's call it LOANS .
I have a problem that involves several machines, message queues, and transactions. So for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.