//Login private void button1_Click(object sender, EventArgs e) { //Login to openerp string usr = textBox2.Text.ToString(); string pass = textBox3.Text.ToString(); string db = textBox4.Text.ToString(); IOpenErpLogin rpcClientLogin = XmlRpcProxyGen.Create <IOpenErpLogin>(); //add XmlRpcProxyGen.CS File from src folder if required, rpcClientLogin.Url = "http://" + textBox1.Text.ToString() + ":8069/xmlrpc/common"; UserId = rpcClientLogin.login(db, usr, pass); richTextBox1.AppendText("Logueado como usuario con id: " + UserId.ToString() + " \r\n"); }
public string Get() { IOpenErpLogin rpcClientLogin = XmlRpcProxyGen.Create <IOpenErpLogin>(); rpcClientLogin.NonStandard = XmlRpcNonStandard.AllowStringFaultCode; //login int userid = rpcClientLogin.login("ErrasmusHB", "*****@*****.**", "kassa"); if (userid > 0) { return("login succesful"); } else { return("fout"); } }