تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4212 أدوات العرض

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);
}
الصورة الرمزية
إهمال
الكاتب

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 .

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أبريل 23
17135
1
مارس 22
5154
1
يناير 19
5453
0
نوفمبر 18
4197
1
مارس 21
5985