Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to connect Android app to Odoo server? XML-RPC?

By
Yenthe
on 11/28/14, 10:22 AM 7,442 views

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

1

Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
2993
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 11/30/14, 2:51 PM

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?

Yenthe
on 12/1/14, 2:02 AM

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
on 12/1/14, 2:37 AM
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
Jérémy Kersten (jke)
on 12/1/14, 3:59 AM

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?

Yenthe
on 12/1/14, 4:17 AM

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?

Yenthe
on 12/1/14, 4:47 AM

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 Kersten (jke)
on 12/1/14, 8:05 AM

@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!

Yenthe
on 12/10/14, 9:51 AM
1

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
On 11/29/14, 5:24 AM

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..

Yenthe
on 11/30/14, 11:35 AM
0
Martin Schmid
On 11/30/14, 6:30 AM

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?

Yenthe
on 11/30/14, 11:34 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 11/28/14, 10:22 AM
Seen: 7442 times
Last updated: 3/16/15, 8:10 AM