/// <summary> /// use stub to create a Order via web services /// </summary> /// <param name="Orders">Array of TCreate_Input</param> /// <returns>ArrayList of TCreate_Return</returns> public ArrayList create(TCreate_Input[] Orders) { TCreate_Return[] Orders_out = stub.create(Orders); ArrayList result = new ArrayList(); Console.WriteLine("creating orders"); for(int i = 0; i < Orders_out.Length; i++) { TCreate_Return Order_out = Orders_out[i]; if (Order_out.Error == null) { Console.WriteLine("successfully created 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 Begincreate(TCreate_Input[] Orders, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("create", new object[] { Orders}, callback, asyncState); }
public TCreate_Return[] create(TCreate_Input[] Orders) { object[] results = this.Invoke("create", new object[] { Orders}); return ((TCreate_Return[])(results[0])); }