<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Host to POST form-data with tRestClient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Host-to-POST-form-data-with-tRestClient/m-p/2299603#M71930</link>
    <description>&lt;P&gt;The first thing to try is to convert the XML to a String, create a file using Java, then convert the file to a byte array.  Once this is done set the  API parameter in your tRestClient using the Query Parameters box. Pass the byte array you have created as an Object. &lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 14:50:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-03T14:50:56Z</dc:date>
    <item>
      <title>Host to POST form-data with tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Host-to-POST-form-data-with-tRestClient/m-p/2299602#M71929</link>
      <description>&lt;P&gt;I need to use tRestClient for a POST request using "multipart-form", but I fail to understand how to send multiple elements through "form" format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this postman configuration working very well :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QFccqAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135357i435696236BF9B018/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QFccqAAD.png" alt="0695b00000QFccqAAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My body should contain :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a "Document" field, wich is in XML datatype. I can't write this field in a file, because I may have multiple jobs running at the same time, concurrencing this file. &lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QFcdtAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131528i7DAB401A4DF5BA96/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QFcdtAAD.png" alt="0695b00000QFcdtAAD.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;a "File[]" wich is an array of files I am sending to the server. In my case, there is only one file sent. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I configure my body in order to sent both "Document" and "File[]" fields ? I managed to send only the "Document" one, but I don't know how to add the other in my t_XMLMap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some screenshots of my job :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QFcgEAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136570i3F7F89884A230D91/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QFcgEAAT.png" alt="0695b00000QFcgEAAT.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QFcfVAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127807iC7DD2E1B30F3B22F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QFcfVAAT.png" alt="0695b00000QFcfVAAT.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QFcgOAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145926i07BC3A7A63E8CAA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QFcgOAAT.png" alt="0695b00000QFcgOAAT.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000QFcfkAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152730iECC51D9744CE19ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000QFcfkAAD.png" alt="0695b00000QFcfkAAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Host-to-POST-form-data-with-tRestClient/m-p/2299602#M71929</guid>
      <dc:creator>mdesmons1651504227</dc:creator>
      <dc:date>2024-11-15T22:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Host to POST form-data with tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Host-to-POST-form-data-with-tRestClient/m-p/2299603#M71930</link>
      <description>&lt;P&gt;The first thing to try is to convert the XML to a String, create a file using Java, then convert the file to a byte array.  Once this is done set the  API parameter in your tRestClient using the Query Parameters box. Pass the byte array you have created as an Object. &lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 14:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Host-to-POST-form-data-with-tRestClient/m-p/2299603#M71930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-03T14:50:56Z</dc:date>
    </item>
  </channel>
</rss>

