Example #1
0
        public logarResponse logar([System.Xml.Serialization.XmlElementAttribute("logar", Namespace = "http://main.localhost")] logar logar1)
        {
            object[] results = this.Invoke("logar", new object[] {
                logar1
            });

            return((logarResponse)(results[0]));
        }
Example #2
0
 /// <remarks/>
 public void logarAsync(logar logar1, object userState)
 {
     if ((this.logarOperationCompleted == null))
     {
         this.logarOperationCompleted = new System.Threading.SendOrPostCallback(this.OnlogarOperationCompleted);
     }
     this.InvokeAsync("logar", new object[] {
         logar1
     }, this.logarOperationCompleted, userState);
 }
Example #3
0
        protected void acaoBotaoLogar(object sender, EventArgs e)
        {
            WSCliente.WSCliente servicoTwitter = new WSCliente.WSCliente();
            WSCliente.logar     servicoLogar   = new WSCliente.logar();

            servicoLogar.login = this.tbLogin.Text;
            servicoLogar.senha = this.tbSenha.Text;
            WSCliente.logarResponse response = new WSCliente.logarResponse();
            response = servicoTwitter.logar(servicoLogar);

            if (response.result.Equals("login invalido"))
            {
                Response.Redirect("~/EfetuarLogin.aspx");
            }
            else
            {
                Response.Redirect("~/Default.aspx");
            }
        }
        protected void acaoBotaoLogar(object sender, EventArgs e)
        {
            WSCliente.WSCliente servicoTwitter = new WSCliente.WSCliente();
            WSCliente.logar servicoLogar = new WSCliente.logar();

            servicoLogar.login = this.tbLogin.Text;
            servicoLogar.senha = this.tbSenha.Text;
            WSCliente.logarResponse response = new WSCliente.logarResponse();
            response = servicoTwitter.logar(servicoLogar);

            if (response.result.Equals("login invalido"))
            {
                Response.Redirect("~/EfetuarLogin.aspx");
            }
            else
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Example #5
0
 /// <remarks/>
 public void logarAsync(logar logar1, object userState) {
     if ((this.logarOperationCompleted == null)) {
         this.logarOperationCompleted = new System.Threading.SendOrPostCallback(this.OnlogarOperationCompleted);
     }
     this.InvokeAsync("logar", new object[] {
                 logar1}, this.logarOperationCompleted, userState);
 }
Example #6
0
 /// <remarks/>
 public void logarAsync(logar logar1) {
     this.logarAsync(logar1, null);
 }
Example #7
0
 /// <remarks/>
 public void logarAsync(logar logar1)
 {
     this.logarAsync(logar1, null);
 }