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])); }
/// <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); }
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"); } }
/// <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); }
/// <remarks/> public void logarAsync(logar logar1) { this.logarAsync(logar1, null); }