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

  • Home
  • SEARCH
  • 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 8682817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:52:30+00:00 2026-06-12T21:52:30+00:00

Is it possible to create a web service including a method that performs some

  • 0

Is it possible to create a web service including a method that performs some operations and then expects a return value/action to commit those operations?

I need a method that returns some values. In the process of returning those values, some data needs to be inserted. After receiving those return values i need to make sure i am able to process them and then commit the initial method.

If the method doesn’t receive the flag/commit/whatever, the inserts are rolled back.

Is this possible?
(Sorry if the wording is not clear, hope I’m understable)

I am doing this because i need to get a set of data, that is to slow to be returned with regular SQL. I am planning on zipping that (formatted) data on the server (using a web service), and have the method return it to me in a zipped binary type. If something goes wrong in getting or processing that zipped binary, i need to be able to rollback the entire process.

  • 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-06-12T21:52:31+00:00Added an answer on June 12, 2026 at 9:52 pm

    To accomplish a commit on web service end after receiving web service response with single web service call is not possible, I am afraid. Http web services are stateless, you can make it stateful using sessions. You can make two services one for receiving response and other for performing commit. Between these two calls you can use session if they can help.

    1. Call to receives set of values. You may set a session for next call timeout e.g. You should not start transaction in first call. Just return results. If your results are as per requirement of commit the save data with transaction. You can have some flag in DB records indicating the incomplete transaction in first call and commit or delete it second call and set flag accordingly.

    2. Call for commit based on the first call result and put transaction over here for saving data.

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

Sidebar

Related Questions

Is it possible to create a WCF service (web service) that only accepts a
I'm wondering is that possible to create new eamil account using Exchange Web Service?
Is it possible to create a C# web service which can be called asynchronously
Is it possible to create a web app that, with the help of a
Is it possible to create a web service operation using primitive or basic Java
I realize it's possible to create a PHP Web Service using SOAP, however, are
Is it possible to create a C# EXE or Windows Service that can process
I'm trying to create a generic web service that will always respond with OK,
Is it possible to create a REST web service using ASP.NET 2.0? The articles
We are trying to create a web-service that we plan to pass a variable

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.