<?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: [resolved] Invoking a Rest Service for file upload in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Invoking-a-Rest-Service-for-file-upload/m-p/2282811#M56901</link>
    <description>Hi, 
&lt;BR /&gt;Tibco BW is a little bit different, nevertheless an ESB too 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; (I am an iPE expert) 
&lt;BR /&gt;ok.. this works as designed. tFileRow reads the input file ROW by ROW and sends a ROW of data to process. 
&lt;BR /&gt;in the tMap component you have to define an output structure and map input to the tMap output. Then the iterator should have a property with name of the tMap output, something like ((String)globalMap.get("row3_output")). (NB_LINE is the number of lines) 
&lt;BR /&gt;As far I know there is no direct component that reads all the file content at once, you can read CSV, excel, xml, ldif, json, . that's why ir would be great if it would be a structured file (e.g. tFileReadXML would post the whole XML or it's part). Maybe tFileInputRegex would do it 
&lt;BR /&gt;let's play a little 
&lt;BR /&gt;have fun 
&lt;BR /&gt; gabriel</description>
    <pubDate>Thu, 26 Jul 2012 19:13:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-26T19:13:10Z</dc:date>
    <item>
      <title>[resolved] Invoking a Rest Service for file upload</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Invoking-a-Rest-Service-for-file-upload/m-p/2282808#M56898</link>
      <description>Hi, 
&lt;BR /&gt;I need to invoke a rest service that do a file upload.
&lt;BR /&gt;I used tRest component, configured it and used a contex variable to pass file data to http body parameter. But I don't know how set data file into context variable and then how pass this data in input to tRest component.
&lt;BR /&gt;Anyone can help me pleae?
&lt;BR /&gt;thanks in advance.</description>
      <pubDate>Sat, 16 Nov 2024 12:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Invoking-a-Rest-Service-for-file-upload/m-p/2282808#M56898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Invoking a Rest Service for file upload</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Invoking-a-Rest-Service-for-file-upload/m-p/2282809#M56899</link>
      <description>Hi, 
&lt;BR /&gt;it's not necessary to use a context variable (use it for configuration purposes). You will have to load the file content into a row container, e.g. reading an XML file, the job will look such as 
&lt;BR /&gt;tFileXmlInput -&amp;gt; tWriteXMLField (or tXMLMap) -&amp;gt; tFlowToIterate -&amp;gt; tRest 
&lt;BR /&gt;than rename the tFlowToIterate component to e.g. "iterator" and in the tRest body you will able to use iterator.xmlField (Ctrl-Spacewill propagate you available options and then it will convert the input into a executable expression) 
&lt;BR /&gt;It will work for structured files, e.g. XML, CSV, etc, but to load an unstructured content - I guess you will have to do a function for it (e.g. create a bean) 
&lt;BR /&gt;Carpe diem 
&lt;BR /&gt; Gabriel</description>
      <pubDate>Thu, 26 Jul 2012 13:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Invoking-a-Rest-Service-for-file-upload/m-p/2282809#M56899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-26T13:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Invoking a Rest Service for file upload</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Invoking-a-Rest-Service-for-file-upload/m-p/2282810#M56900</link>
      <description>Thank you very much Gabriel, I've tried something like that but I've missed the tFlowIterate and cannot link the tRest.&lt;BR /&gt;Now, I've tried with tFilewInputRow--&amp;gt;tMap--&amp;gt;tFlowToIterate--&amp;gt;tRest&lt;BR /&gt;In tRest Body I have something like this: &amp;lt;fileContent&amp;gt;" + ((Integer)globalMap.get("tFlowToIterate_1_NB_LINE")) + "&amp;lt;/fileContent&amp;gt;&lt;BR /&gt;But service has called n times (one for row).&lt;BR /&gt;Sorry I'm quite new to Talend, but had experience with Tibco BW that looks like.</description>
      <pubDate>Thu, 26 Jul 2012 15:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Invoking-a-Rest-Service-for-file-upload/m-p/2282810#M56900</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-26T15:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Invoking a Rest Service for file upload</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Invoking-a-Rest-Service-for-file-upload/m-p/2282811#M56901</link>
      <description>Hi, 
&lt;BR /&gt;Tibco BW is a little bit different, nevertheless an ESB too 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; (I am an iPE expert) 
&lt;BR /&gt;ok.. this works as designed. tFileRow reads the input file ROW by ROW and sends a ROW of data to process. 
&lt;BR /&gt;in the tMap component you have to define an output structure and map input to the tMap output. Then the iterator should have a property with name of the tMap output, something like ((String)globalMap.get("row3_output")). (NB_LINE is the number of lines) 
&lt;BR /&gt;As far I know there is no direct component that reads all the file content at once, you can read CSV, excel, xml, ldif, json, . that's why ir would be great if it would be a structured file (e.g. tFileReadXML would post the whole XML or it's part). Maybe tFileInputRegex would do it 
&lt;BR /&gt;let's play a little 
&lt;BR /&gt;have fun 
&lt;BR /&gt; gabriel</description>
      <pubDate>Thu, 26 Jul 2012 19:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Invoking-a-Rest-Service-for-file-upload/m-p/2282811#M56901</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-26T19:13:10Z</dc:date>
    </item>
  </channel>
</rss>

