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?