コード例 #1
0
		/// <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;
		}
コード例 #2
0
ファイル: Reference.cs プロジェクト: ozscheyge/soapclient
 /// <remarks/>
 public System.IAsyncResult Begincreate(TCreate_Input[] Orders, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("create", new object[] {
                 Orders}, callback, asyncState);
 }
コード例 #3
0
ファイル: Reference.cs プロジェクト: ozscheyge/soapclient
 public TCreate_Return[] create(TCreate_Input[] Orders) {
     object[] results = this.Invoke("create", new object[] {
                 Orders});
     return ((TCreate_Return[])(results[0]));
 }