<?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 How to use tRESTClient in Talend Studio ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tRESTClient-in-Talend-Studio/m-p/2484363#M141331</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a problem with the tRESTClient component.&lt;/P&gt;
&lt;P&gt;I'm using Talend Studio : Talend Cloud Data Management Platform | Version 8 | Update R2024-07&lt;/P&gt;
&lt;P&gt;First of all in my job, I generate an XML File by a tXMLMap with the configuration you can see with the different screenshots.&lt;/P&gt;
&lt;P&gt;Then I call this file with a tFileInputRaw that I connect to&amp;nbsp;a tRESTClient. Two outputs : Response and Error.&lt;/P&gt;
&lt;P&gt;I get this error : "status":400,"error":"Bad Request","path":"/api/import-all-of"&lt;/P&gt;
&lt;P&gt;But when I take the generated file to test it with Postman, everythong's fine. I get the same error when I delete or modify the XML structure.&lt;/P&gt;
&lt;P&gt;So I think there's a problem with the encoding of the file while the tRESTClient read the file or something to do in the HTTP Headers. But I can't find anything on Internet or the link Talend Community are closed.&lt;/P&gt;
&lt;P&gt;Has someone found this kind of problem before?&lt;/P&gt;
&lt;P&gt;Thanks a lot,&lt;BR /&gt;Maxime.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 13:00:12 GMT</pubDate>
    <dc:creator>MaximeChauveau</dc:creator>
    <dc:date>2024-09-30T13:00:12Z</dc:date>
    <item>
      <title>How to use tRESTClient in Talend Studio ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tRESTClient-in-Talend-Studio/m-p/2484363#M141331</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a problem with the tRESTClient component.&lt;/P&gt;
&lt;P&gt;I'm using Talend Studio : Talend Cloud Data Management Platform | Version 8 | Update R2024-07&lt;/P&gt;
&lt;P&gt;First of all in my job, I generate an XML File by a tXMLMap with the configuration you can see with the different screenshots.&lt;/P&gt;
&lt;P&gt;Then I call this file with a tFileInputRaw that I connect to&amp;nbsp;a tRESTClient. Two outputs : Response and Error.&lt;/P&gt;
&lt;P&gt;I get this error : "status":400,"error":"Bad Request","path":"/api/import-all-of"&lt;/P&gt;
&lt;P&gt;But when I take the generated file to test it with Postman, everythong's fine. I get the same error when I delete or modify the XML structure.&lt;/P&gt;
&lt;P&gt;So I think there's a problem with the encoding of the file while the tRESTClient read the file or something to do in the HTTP Headers. But I can't find anything on Internet or the link Talend Community are closed.&lt;/P&gt;
&lt;P&gt;Has someone found this kind of problem before?&lt;/P&gt;
&lt;P&gt;Thanks a lot,&lt;BR /&gt;Maxime.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 13:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tRESTClient-in-Talend-Studio/m-p/2484363#M141331</guid>
      <dc:creator>MaximeChauveau</dc:creator>
      <dc:date>2024-09-30T13:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tRESTClient in Talend Studio ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tRESTClient-in-Talend-Studio/m-p/2485722#M141360</link>
      <description>&lt;P&gt;tRestClient has two fields: body and string; you have to fill one of them. I don't believe you can pass to tRestClient directly a file.&lt;/P&gt;
&lt;P&gt;I suggest to pass to tRestClient the content of the file in string field.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 20:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tRESTClient-in-Talend-Studio/m-p/2485722#M141360</guid>
      <dc:creator>fcolagiacomo</dc:creator>
      <dc:date>2024-10-07T20:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tRESTClient in Talend Studio ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tRESTClient-in-Talend-Studio/m-p/2486448#M141392</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;During my tests, I modified the tRESTClient schema and it was a bad idea.&lt;BR /&gt;Here is the support message:&lt;BR /&gt;&lt;BR /&gt;The issue is that you have overwritten the tRESTClient input schemas.&lt;BR /&gt;tRESTClient schemas shouldn't be modified. So you need to recreat tRESTClient with its original schemas.&lt;BR /&gt;What you can do then is link tFileInputRaw with tRESTClient via a tConvertType which map tFileInputRaw's "content" schema with tRESTClient's "string" schema (as you are reading the file as string).&lt;/P&gt;
&lt;P&gt;Now, my problem is resolved.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 16:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tRESTClient-in-Talend-Studio/m-p/2486448#M141392</guid>
      <dc:creator>MaximeChauveau</dc:creator>
      <dc:date>2024-10-10T16:23:15Z</dc:date>
    </item>
  </channel>
</rss>

