Пример #1
0
		/// <summary>
		/// use stub to create a User via web services
		/// </summary>
		/// <param name="Users">Array of TUpdate_Input</param>
		/// <returns>ArrayList of TUpdate_Return</returns>
		public ArrayList update(TUpdate_Input[] Users)
		{
			TUpdate_Return[] Users_out = stub.update(Users);

			ArrayList result = new ArrayList();

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

				if (User_out.Error == null)
				{
					Console.WriteLine("successfully updated User: "******"an error occured (Epages Error):\n" + User_out.Error.Message);
				}
			}

			return result;
		}
Пример #2
0
		/// <summary>
		/// test update of a User and check if method returns a true value
		/// </summary>
		public void update()
		{
			TUpdate_Input[] Users = new TUpdate_Input[]{User_update};

			ArrayList Users_out = serviceClient.update(Users);

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

			TUpdate_Return User_out = (TUpdate_Return)Users_out.ToArray()[0];
			Assert.AreEqual(path + alias, User_out.Path, "user path");
			Assert.AreEqual(true, User_out.updated, "updated?");
		}
Пример #3
0
 /// <remarks/>
 public System.IAsyncResult Beginupdate(TUpdate_Input[] Users, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("update", new object[] {
                 Users}, callback, asyncState);
 }
Пример #4
0
 public TUpdate_Return[] update(TUpdate_Input[] Users) {
     object[] results = this.Invoke("update", new object[] {
                 Users});
     return ((TUpdate_Return[])(results[0]));
 }