Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4199 Zobrazení

Currently, I have implement code for connect or login with Odoo database and return logged user id from c# code, but i stuck at XmlRpcUrl.


Please have a look,
public ActionResult Index()
{
        IOpenErpLogin rpcClientLogin = XmlRpcProxyGen.Create<IOpenErpLogin>();
        int userid = rpcClientLogin.login("DB_name", "User_name", "Password");
        return View();
}

[XmlRpcUrl("https://air-flow-master-staging-88906.dev.odoo.com")]
public interface IOpenErpLogin : IXmlRpcProxy
{
    [XmlRpcMethod("login")]
    int login(string dbName, string dbUser, string dbPwd);
}
Avatar
Zrušit
Autor

I have found many of solution like [XmlRpcUrl("http://localhost:8069/xmlrpc/2")], but i think this server_url for locally working and i'm connect with live database .

Related Posts Odpovědi Zobrazení Aktivita
3
dub 23
17126
1
bře 22
5151
1
led 19
5446
0
lis 18
4189
1
bře 21
5982