<?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: How to consume a rest service which needs a json input object? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-consume-a-rest-service-which-needs-a-json-input-object/m-p/2220505#M14875</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LEqBAAW"&gt;@olja&lt;/A&gt;&amp;nbsp;, use tRest component use below way the input body in HTTP Boday and HTTP Heder you nee to specify"Content-Type" as name&amp;nbsp; "application/json" as value .&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;boday like below based on your&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;"{\"username\":\"foo\",&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;\"password\":\"bar\"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2020 10:32:26 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-04-22T10:32:26Z</dc:date>
    <item>
      <title>How to consume a rest service which needs a json input object?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-consume-a-rest-service-which-needs-a-json-input-object/m-p/2220504#M14874</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to consume a rest service which requires a json as input body. Actually I am trying this with tRestClient but I do not know where to define the input body . The input body should be something like this:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{"username":"foo",&lt;BR /&gt;"password":"bar"&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I edit the input scheme then I can see that there is a row for body and string but not editable. I thought I can define there my json input. Also I could not find a valid example where this is shown. Do I need to read this input from a file with the tFileInputJson but how will it be added as body in the tRestclient?&lt;/P&gt; 
&lt;P&gt;Would be great if someone knows how to solve that.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-04-22 10_19_41-Talend Open Studio for ESB (7.3.1.20200117_1600-M6) _ Local_Project (Verbindung_.png" style="width: 904px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA79.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145130i60EAFE6945726DA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA79.png" alt="0683p000009MA79.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-04-22 10_24_57-Schema of tRESTClient_1.png" style="width: 528px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA1C.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148339i78A0E8F09130B553/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA1C.png" alt="0683p000009MA1C.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-consume-a-rest-service-which-needs-a-json-input-object/m-p/2220504#M14874</guid>
      <dc:creator>olja</dc:creator>
      <dc:date>2024-11-16T02:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to consume a rest service which needs a json input object?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-consume-a-rest-service-which-needs-a-json-input-object/m-p/2220505#M14875</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LEqBAAW"&gt;@olja&lt;/A&gt;&amp;nbsp;, use tRest component use below way the input body in HTTP Boday and HTTP Heder you nee to specify"Content-Type" as name&amp;nbsp; "application/json" as value .&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;boday like below based on your&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;"{\"username\":\"foo\",&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;\"password\":\"bar\"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 10:32:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-consume-a-rest-service-which-needs-a-json-input-object/m-p/2220505#M14875</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-22T10:32:26Z</dc:date>
    </item>
  </channel>
</rss>

