Ejemplo n.º 1
0
	protected void cmdCreate_Click(object sender, EventArgs e)
	{
		SoapSecurityService proxy = new SoapSecurityService();
		try
		{
			proxy.CreateTestUser(txtUserName.Text, txtPassword.Text);
			lblInfo.Text = "Successfully added this user as an administrator.";
		}
		catch (Exception err)
		{
			lblInfo.Text = err.Message;
		}
	}
        private void cmdCall_Click(object sender, System.EventArgs e)
        {
            SoapSecurityService proxy = new SoapSecurityService();

            try
            {
                proxy.Login(txtUserName.Text, txtPassword.Text, HashAlgorithm.SHA1);
                DataGrid1.DataSource = proxy.GetEmployees();
                DataGrid1.DataBind();
                lblInfo.Text = "";
            }
            catch (Exception err)
            {
                lblInfo.Text = err.Message;
            }
        }
Ejemplo n.º 3
0
	protected void cmdCall_Click(object sender, EventArgs e)
	{
		SoapSecurityService proxy = new SoapSecurityService();

		try
		{
			proxy.Login(txtUserName.Text, txtPassword.Text);
			GridView1.DataSource = proxy.GetEmployees();
			GridView1.DataBind();
		}
		catch (Exception err)
		{
			lblInfo.Text = err.Message;
		}

	}