/// <summary>
		/// use stub to create a User via web services
		/// </summary>
		/// <param name="Users">Array of TCreate_Input</param>
		/// <returns>ArrayList of TCreate_Return</returns>
		public ArrayList create(TCreate_Input[] Users) 
		{
			TCreate_Return[] Users_out = stub.create(Users);

			ArrayList result = new ArrayList();

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

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

			return result;
		}
Example #2
0
 /// <remarks/>
 public System.IAsyncResult Begincreate(TCreate_Input[] Users, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("create", new object[] {
                 Users}, callback, asyncState);
 }
Example #3
0
		/// <summary>
		/// test creation of a User and check if method returns a true value
		/// </summary>
		public void create()
		{
			TCreate_Input[] Users = new TCreate_Input[]{User_in};

			ArrayList Users_out = serviceClient.create(Users);

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

			TCreate_Return User_out = (TCreate_Return)Users_out.ToArray()[0];
			Assert.AreEqual(alias, User_out.Alias, "user alias");
			Assert.AreEqual(true, User_out.created, "created?");
		}
Example #4
0
 public TCreate_Return[] create(TCreate_Input[] Users) {
     object[] results = this.Invoke("create", new object[] {
                 Users});
     return ((TCreate_Return[])(results[0]));
 }