Web services cannot pass complex types like ArrayList , or at least not without some configuration, so just simplify your web service. Change it like this:
public int SaveSelectedOffers(object[] offers, int selectedRows)
, which is somehow generated one way or another, as you can see , and then call it like this:
private void offersAvailableSubmit_Click(object sender, EventArgs e) { object[] options = new object[3]; options[0] = "item 1"; options[1] = "item 2"; options[2] = "item 2"; int rowsAffected = serviceCaller.SaveSelectedOffers(options, rowCount); }
Another option initialization options , if you are looking for something more concise, would be as follows:
object[] options = new object[] { "item 1", "item 2", "item 3" };
source share