<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>5 Jan 2016 15:10:29 Z</lastBuildDate><pubDate>1 Jan 2016 08:09:00 Z</pubDate><description>Hello,&#13;
&#13;
Happy New Year to all members!&#13;
&#13;
I am trying to communicate with Odoo (ERP) server from my WD app.&#13;
&#13;
Odoo server uses XMLRPC to communicate with external clients.&#13;
&#13;
Here is sample code in Python as well as Java:&#13;
Python&#13;
(ask https://demo.odoo.com for test Database)&#13;
import xmlrpclib info = xmlrpclib.ServerProxy('https://demo.odoo.com/start').start() url, db, username, password = info['host'], info['database'], info['user'], info['password']&#13;
Java&#13;
(ask https://demo.odoo.com for test Database)&#13;
final XmlRpcClient client = new XmlRpcClient(); final XmlRpcClientConfigImpl start_config = new XmlRpcClientConfigImpl(); start_config.setServerURL(new URL("https://demo.odoo.com/start")); final Map info = (Map)client.execute( start_config, "start", emptyList()); final String url = info.get("host"), db = info.get("database"), username = info.get("user"), password = info.get("password"); There is this note also:&#13;
Quote&#13;
&#13;
Note&#13;
&#13;
&#13;
&#13;
These examples use the Apache XML-RPC library&#13;
&#13;
&#13;
&#13;
The examples do not include imports as these imports couldn't be pasted in the code.&#13;
&#13;
Here is the code in WD that I am trying:&#13;
cMyRequest is httpRequest cMyResponse is httpResponse cMyRequest..URL = "https://demo3.odoo.com/" cMyRequest..ContentType = XMLRPDefault cMyRequest..User = "demo" cMyRequest..Password = "demo" cMyResponse = HTTPSend(cMyRequest) IF ErrorOccurred THEN Error(ErrorInfo(errFullDetails)) ELSE Info(cMyResponse..Content) END&#13;
Here is the online documentation link.&#13;
&#13;
TIA&#13;
&#13;
Yogi Yang</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55707-how-convert-python-java-code/read.awp</link><title>[WD] - How to convert Python/Java code in WD?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Sebastian Arnold</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55707-how-convert-python-java-code-55735/read.awp</comments><pubDate>5 Jan 2016 15:10:29 Z</pubDate><description>Yogi,&#13;
&#13;
I don't see the port 8069 in your WD code. Could you try &#13;
&#13;
[code:wl]&#13;
cMyRequest..URL = "https://demo3.odoo.com:8069/…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55707-how-convert-python-java-code-55735/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55707-how-convert-python-java-code-55735/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55707-how-convert-python-java-code/read.awp">[WD] - How to convert Python/Java code in WD?</source><title>Re: [WD] - How to convert Python/Java code in WD?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55707-how-convert-python-java-code-55731/read.awp</comments><pubDate>5 Jan 2016 08:05:00 Z</pubDate><description>Hello Again,&#13;
&#13;
This Python code is working perfectly but when I convert it to WD it is not working:&#13;
import xmlrpclib svr = 'ab…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55707-how-convert-python-java-code-55731/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55707-how-convert-python-java-code-55731/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55707-how-convert-python-java-code/read.awp">[WD] - How to convert Python/Java code in WD?</source><title>Re: [WD] - How to convert Python/Java code in WD?</title></item></channel></rss>
