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

Hey guys

Are there any options to connect to an Odoo server and communicatie with it through XML-RPC?
I'd like to make a very basic android app that connects to the server and gives a few options to fill in. The data should then be saved in the database..

Is there any information about this? There seems to be barely any solution to connect Android with XML-RPC.
Any samples, documentation or help is very welcome!

Thanks
Yenthe

الصورة الرمزية
إهمال
أفضل إجابة

Hello,

Documentation are WIP, but you can already see the existing here : https://www.odoo.com/documentation/8.0/api_integration.html

Good dev' !

الصورة الرمزية
إهمال
الكاتب

Ah! This is a little gem. So the best way for me would be to go from Android > PHP and let the PHP get the Odoo data? Or would you advise me something else?

الكاتب

Another note. In the documentation they link to a site to download ws-xmlrpc but all those links are down and do not contain the files anymore.. https://ws.apache.org/xmlrpc/download.html

Hello,

I don't see your link, but you can do a pull request with the right url if you want...

Else, xmlrpc lib is available here https://github.com/gggeek/phpxmlrpc/releases/tag/2.2.2

You can also take an eye on https://github.com/odony/php-oe-json

Best regards

JKE


On 12/01/2014 08:37 AM, Yenthe wrote:
<blockquote cite="mid:1417419433.881994009017944.277331127298940-openerp-69112-forum.post@accounts.odoo.com" type="cite">

Another note. In the documentation they link to a site to download ws-xmlrpc but all those links are down and do not contain the files anymore.. https://ws.apache.org/xmlrpc/download.html

--
Yenthe
Sent by Odoo S.A. using Odoo about Forum Post False
الكاتب

Hi Jeremy, I've found the Google Android XML-RPC (here https://code.google.com/p/android-xmlrpc/) but now the code seems to be completely different from the tutorial for Java.. Did they use some sort of other JAR or something then?

الكاتب

Jérémy, thanks for the help I managed to get started. I only have one error I do not understand as you can see in this screenshot: http://i.imgur.com/lfZMygV.png Could you shed any more light on this please?

I have no idea, sorry ... It seems to be a problem more with your java environment that with Odoo... Maybe it can be similary to this post http://stackoverflow.com/questions/13721982/the-type-java-rmi-remoteexception-cannot-be-resolved-it-is-indirectly-reference good luck !

الكاتب

@Jérémy, I've concluded that your answer is actually the correct answer. I found enough information there to get me started, so I've also accepted the answer. Thank you!

أفضل إجابة

Hi maybe this will save you some time ....

https://github.com/Odoo-mobile/framework

Hope it helps ;)

الصورة الرمزية
إهمال
الكاتب

@Bole, thanks for this link, I found it last friday too! Too bad there is no good tutorial or some light samples. Its a lot of code to dig through..

أفضل إجابة

Can we connect with <a href=https://mobile-phone-tracker.org>https://mobile-phone-tracker.org </a> mobile recorder on Android?

الصورة الرمزية
إهمال
أفضل إجابة

@Yenthe did you get the solution??? Thanks

الصورة الرمزية
إهمال
أفضل إجابة

You can also try our REST-API

https://odoorestapi.azurewebsites.net/Help

الصورة الرمزية
إهمال
الكاتب

Thank you for the suggestion Martin but sadly this is not something that we can use. It has to run on Android and nothing else if possible. We surely do not want to use a Azure server or anything else for this. Could this REST-API be used with PHP files that are used inside views of Android or something too? And are there any tutorials available?

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يونيو 17
4714
1
مارس 15
3728
0
مارس 15
4382
6
فبراير 19
7399
0
ديسمبر 16
4336