Ii have a web method that looks like this:
[WebMethod]
public int ImportData(System.Collections.Generic.List<Record> importRecords)
{
int count = 0;
if (importRecords != null && importRecords.Count > 0)
{
DataLayer datalayer = new DataLayer();
foreach (Record rec in importRecords)
{
datalayer.InsertRecord(rec);
count++;
}
}
return count;
}
Will an exception be thrown back to the client who called the method if there is an exception thrown on the webservice method?