/// <summary> /// use stub to create a Order via web services /// </summary> /// <param name="Orders">Array of TUpdate_Input</param> /// <returns>ArrayList of TUpdate_Return</returns> public ArrayList update(TUpdate_Input[] Orders) { TUpdate_Return[] Orders_out = stub.update(Orders); ArrayList result = new ArrayList(); for(int i = 0; i < Orders_out.Length; i++) { TUpdate_Return Order_out = Orders_out[i]; if (Order_out.Error == null) { Console.WriteLine("successfully updated Order: " + Order_out.Path); result.Add(Order_out); } else { Console.WriteLine("an error occured (Epages Error):\n" + Order_out.Error.Message); } } return result; }
/// <remarks/> public System.IAsyncResult Beginupdate(TUpdate_Input[] Orders, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("update", new object[] { Orders}, callback, asyncState); }
public TUpdate_Return[] update(TUpdate_Input[] Orders) { object[] results = this.Invoke("update", new object[] { Orders}); return ((TUpdate_Return[])(results[0])); }