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 1083651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:27:48+00:00 2026-05-16T22:27:48+00:00

i have a simple asmx page with one web method which return array of

  • 0

i have a simple asmx page with one web method which return array of an object.
My question was , whenever this method is called is it possible to know that the array of an object was returned successfully.

My asmx page

using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class ProcessServices : System.Web.Services.WebService
{
    public ProcessServices()
    {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public Customer[] getData(string var, string var2)
    {
        try
        {
           Customer o = new Customer();
           return o.getDatatoSend(var,var2);
        }
        catch (Exception ex) 
        {
            throw ex; 
        }
    }
}

After the getData() web method is called and array of cutomer is returned i would i like to update my database after successful transfer.

So how can i determine if the array was returned successfully?

  • 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-16T22:27:48+00:00Added an answer on May 16, 2026 at 10:27 pm

    If you’re asking if you can determine whether the client successfully received the data you sent, you can’t. Once you return something from your method (and the data is in transit back to the consumer) the execution of your code is done.

    Your only reliable option here is to create another service and rely on your consumers to call that service once they retrieve data from your original web service.

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

Sidebar

Related Questions

Hello I have a simple wcf service like this, with a test method which
i have this simple web service <WebMethod()> _ Public Function HelloWorld() As String Return
I have an ASP.NET webservice (.asmx) with a simple method that reads something from
I have a simple web method and ajax call and continue to recieve an
I have created simple .NET Web Service (ASMX) that I call from my .NET
I have an ASMX service which serves some partial-HTML to a web-app as part
Folks, I have a simple test application in which I return a string from
I have simple class with width and height member fields which define number of
I have simple database - one table with 6 collumns. 3 of them i
I have simple form. <form target=_blank action=somescript.php method=Post id=simpleForm> <input type=hidden name=url value=http://...> <input

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.