/// <summary>
		/// use stub to create a PriceList via web services
		/// </summary>
		/// <param name="PriceLists">Array of TUpdate_Input</param>
		/// <returns>ArrayList of TUpdate_Return</returns>
		public ArrayList update(TUpdate_Input[] PriceLists)
		{
			TUpdate_Return[] PriceLists_out = stub.update(PriceLists);

			ArrayList result = new ArrayList();

			for(int i = 0; i < PriceLists_out.Length; i++)
			{
				TUpdate_Return PriceList_out = PriceLists_out[i];

				if (PriceList_out.Error == null)
				{
					Console.WriteLine("successfully updated PriceList: " + PriceList_out.Path);
					result.Add(PriceList_out);
				}
				else
				{
					Console.WriteLine("an error occured (Epages Error):\n" + PriceList_out.Error.Message);
				}
			}

			return result;
		}
예제 #2
0
 /// <remarks/>
 public System.IAsyncResult Beginupdate(TUpdate_Input[] PriceLists, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("update", new object[] {
                 PriceLists}, callback, asyncState);
 }
예제 #3
0
 public TUpdate_Return[] update(TUpdate_Input[] PriceLists) {
     object[] results = this.Invoke("update", new object[] {
                 PriceLists});
     return ((TUpdate_Return[])(results[0]));
 }
예제 #4
0
		/// <summary>
		/// test update of a PriceList and check if method returns a true value
		/// </summary>
		public void update()
		{
			TUpdate_Input[] PriceLists = new TUpdate_Input[]{PriceList_update};

			ArrayList PriceLists_out = serviceClient.update(PriceLists);

			// test if update was successful
			Assert.AreEqual(1, PriceLists_out.Count, "update result set");

			TUpdate_Return PriceList_out = (TUpdate_Return)PriceLists_out.ToArray()[0];
			Assert.AreEqual(path + alias, PriceList_out.Path, "PriceList path");
			Assert.AreEqual(true, PriceList_out.updated, "updated?");
		}