<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>10 Dec 2019 19:01:29 Z</lastBuildDate><pubDate>5 Dec 2019 11:32:46 Z</pubDate><description>Hi all,&#13;
&#13;
I'm trying to figure out how to create an API-request in Windev.&#13;
&#13;
The request looks like this:&#13;
&lt;?xml version='1.0' encoding='ISO-8859-1'?&gt; &#13;
&lt;marathon&gt; &#13;
&lt;password&gt;abc123&lt;/password&gt; &#13;
&lt;type&gt;api_operation&lt;/type&gt; &#13;
&lt;company_id&gt;ABC&lt;/company_id&gt; &#13;
&lt;employee_id&gt;ABC123&lt;/employee_id&gt; &#13;
&lt;date&gt;2019-12-04&lt;/date&gt; &#13;
&lt;repeat_until&gt;&lt;/repeat_until&gt; &#13;
&lt;client_id&gt;ABC&lt;/client_id&gt; &#13;
&lt;project_no&gt;123&lt;/project_no&gt; &#13;
&lt;feecode_id&gt;123&lt;/feecode_id&gt; &#13;
&lt;hours&gt;4,5&lt;/hours&gt; &#13;
&lt;full_time_percentage&gt;&lt;/full_time_percentage&gt; &#13;
&lt;comment&gt;ABC-1234 Working&lt;/comment&gt; &#13;
&lt;/marathon&gt;&#13;
&#13;
Which is posted to:&#13;
"https://adress_of_webservice"&#13;
&#13;
How would I do this in Windev?&#13;
&#13;
Thankful for any help&#13;
&#13;
Regards&#13;
/Kim</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request/read.awp</link><title>API (REST) Request</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>kim.oregan</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67484/read.awp</comments><pubDate>10 Dec 2019 19:01:29 Z</pubDate><description>Hi,&#13;
I've managed to implement the XML-part into my application. So now it sends and stores the info in the database.&#13;
I do thou…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67484/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67484/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request/read.awp">API (REST) Request</source><title>Re: API (REST) Request</title></item><item><author>kim.oregan</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67481/read.awp</comments><pubDate>9 Dec 2019 16:36:08 Z</pubDate><description>Hi Jeroen,&#13;
I get this when running the script:&#13;
&#13;
https://hostimage.windev.io/images/Error_e34e96299321c5347a356f9c2dc37576.jpg…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67481/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67481/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request/read.awp">API (REST) Request</source><title>Re: API (REST) Request</title></item><item><author>kim.oregan</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67477/read.awp</comments><pubDate>6 Dec 2019 16:46:08 Z</pubDate><description>Hi and thanks for the answer, again,  Jeroen!&#13;
&#13;
I will try this. &#13;
&#13;
/Kim</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67477/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67477/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request/read.awp">API (REST) Request</source><title>Re: API (REST) Request</title></item><item><author>jdj</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67476/read.awp</comments><pubDate>6 Dec 2019 14:20:34 Z</pubDate><description>Try this:&#13;
&#13;
[code:wl]&#13;
xmlDoc is xmlDocument&#13;
xmlDoc..Encoding = XMLEncodingUTF8&#13;
&#13;
xmlDoc.marathon.password = "abc123"&#13;
xmlDoc…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67476/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67476/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request/read.awp">API (REST) Request</source><title>Re: API (REST) Request</title></item><item><author>kim.oregan</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67469/read.awp</comments><pubDate>5 Dec 2019 15:13:47 Z</pubDate><description>Hi and thanks for the answer Jeroen.&#13;
Your example worked when I put in the XML-request in the sXml brackets.&#13;
The "problem" is …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67469/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67469/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request/read.awp">API (REST) Request</source><title>Re: API (REST) Request</title></item><item><author>jdj</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67467/read.awp</comments><pubDate>5 Dec 2019 13:01:44 Z</pubDate><description>Try this:&#13;
&#13;
[code:wl]&#13;
&#13;
sXml is string = [&#13;
   &lt;?xml version='1.0' encoding='ISO-8859-1'?&gt;&#13;
   &lt;marathon&gt;&#13;
   &lt;password&gt;abc123…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67467/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request-67467/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67466-api-rest-request/read.awp">API (REST) Request</source><title>Re: API (REST) Request</title></item></channel></rss>
