<?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: A Simple JSON tRestRequest and send JSON payload to tRestClient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/A-Simple-JSON-tRestRequest-and-send-JSON-payload-to-tRestClient/m-p/2200779#M3136</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Issue was when I tried to call Job 2 (tRestRequest) from Job 1 (tRestClient). Job 2 was receiving blank body.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am able to &lt;STRONG&gt;solve&lt;/STRONG&gt; this problem by mapping tMap to tRestClient like this. I did not touch the body.&lt;/P&gt; 
&lt;P&gt;tMap.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----&amp;gt; tRest Client&lt;/P&gt; 
&lt;P&gt;string -&amp;gt; String&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-----&amp;gt; string String&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Body. --&amp;gt; Document&lt;/P&gt; 
&lt;P&gt;Also Checked WRAP JSON request in tRequest in first job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Job 1 is Talent and Job 2 was internal Talend Job. Job 2 was mocking actual outside server. Internal Talend Jobs are working fine.&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;New Problem&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When i tried to call outside server from Job 1 (tRestClient )as per my attached picture. It is given me following error.&lt;/P&gt; 
&lt;P class="p1"&gt;Exception in component tRESTClient_1 (testnew)&lt;/P&gt; 
&lt;P class="p1"&gt;javax.ws.rs.client.ResponseProcessingException:&lt;STRONG&gt; No message body reader has been found for class org.dom4j.Document, ContentType: text/html;charset=utf-8&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P class="p1"&gt;at org.apache.cxf.jaxrs.impl.ResponseImpl.reportMessageHandlerProblem(ResponseImpl.java:437)&lt;/P&gt; 
&lt;P class="p1"&gt;at org.apache.cxf.jaxrs.impl.ResponseImpl.doReadEntity(ResponseImpl.java:390)&lt;/P&gt; 
&lt;P class="p1"&gt;at org.apache.cxf.jaxrs.impl.ResponseImpl.readEntity(ResponseImpl.java:314)&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-02-14 at 9.23.58 am.png" style="width: 940px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M960.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149300i6A59437A2BEF91B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M960.png" alt="0683p000009M960.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2020 22:27:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-13T22:27:40Z</dc:date>
    <item>
      <title>A Simple JSON tRestRequest and send JSON payload to tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/A-Simple-JSON-tRestRequest-and-send-JSON-payload-to-tRestClient/m-p/2200777#M3134</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I am trying to create a job which accept JSON request from tRestRequest and transfer same to tRestClient. This should be some simple process and I may be missing something here.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Sample Json&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;"Reference":"12345",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;"Files":[&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;"FileName":"test.png",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;"FileData":"iVBORw0KGgoAAAANI=",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;"FileUrl":""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;]&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2"&gt;}&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Probelm&lt;/STRONG&gt;:&lt;/P&gt; 
&lt;P&gt;1- If I am using body --&amp;gt; Document , my client is receiving only first root&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;{&lt;/FONT&gt;&lt;FONT size="2"&gt;"Reference":"12345",}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2- If I am using body --&amp;gt; String , my client is receiving Blank body&lt;/P&gt; 
&lt;P class="p1"&gt;|body|&lt;/P&gt; 
&lt;P class="p1"&gt;|=--=|&lt;/P&gt; 
&lt;P class="p1"&gt;|&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;|&lt;/P&gt; 
&lt;P class="p1"&gt;'----'&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Reference from Job&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="Screen Shot 2020-02-13 at 3.40.09 pm.png" style="width: 953px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M90c.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136373iA0435E1B3B3E1D41/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M90c.png" alt="0683p000009M90c.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&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="Screen Shot 2020-02-13 at 3.51.58 pm.png" style="width: 870px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8kQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142675i53CD5B98927ACC20/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8kQ.png" alt="0683p000009M8kQ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Za&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/A-Simple-JSON-tRestRequest-and-send-JSON-payload-to-tRestClient/m-p/2200777#M3134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: A Simple JSON tRestRequest and send JSON payload to tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/A-Simple-JSON-tRestRequest-and-send-JSON-payload-to-tRestClient/m-p/2200778#M3135</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the restRequest check the "output flow"&amp;nbsp; and name it to "body" and set&amp;nbsp; type "String" -&amp;gt; see pic 1&lt;/P&gt;&lt;P&gt;sync columns on next components&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tRestClient check the "input schema"&amp;nbsp; (should be&amp;nbsp;"body" type "String") --&amp;gt; see pic 2&lt;/P&gt;&lt;P&gt;check pic 3 to see my tlogRow after&amp;nbsp;restRequest&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lx3v"&gt;rest_1.jpg&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LxXY"&gt;rest_2.jpg&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LxJX"&gt;rest_3.jpg&lt;/A&gt;</description>
      <pubDate>Thu, 13 Feb 2020 16:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/A-Simple-JSON-tRestRequest-and-send-JSON-payload-to-tRestClient/m-p/2200778#M3135</guid>
      <dc:creator>uzix</dc:creator>
      <dc:date>2020-02-13T16:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: A Simple JSON tRestRequest and send JSON payload to tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/A-Simple-JSON-tRestRequest-and-send-JSON-payload-to-tRestClient/m-p/2200779#M3136</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Issue was when I tried to call Job 2 (tRestRequest) from Job 1 (tRestClient). Job 2 was receiving blank body.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am able to &lt;STRONG&gt;solve&lt;/STRONG&gt; this problem by mapping tMap to tRestClient like this. I did not touch the body.&lt;/P&gt; 
&lt;P&gt;tMap.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----&amp;gt; tRest Client&lt;/P&gt; 
&lt;P&gt;string -&amp;gt; String&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-----&amp;gt; string String&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Body. --&amp;gt; Document&lt;/P&gt; 
&lt;P&gt;Also Checked WRAP JSON request in tRequest in first job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Job 1 is Talent and Job 2 was internal Talend Job. Job 2 was mocking actual outside server. Internal Talend Jobs are working fine.&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;New Problem&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When i tried to call outside server from Job 1 (tRestClient )as per my attached picture. It is given me following error.&lt;/P&gt; 
&lt;P class="p1"&gt;Exception in component tRESTClient_1 (testnew)&lt;/P&gt; 
&lt;P class="p1"&gt;javax.ws.rs.client.ResponseProcessingException:&lt;STRONG&gt; No message body reader has been found for class org.dom4j.Document, ContentType: text/html;charset=utf-8&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P class="p1"&gt;at org.apache.cxf.jaxrs.impl.ResponseImpl.reportMessageHandlerProblem(ResponseImpl.java:437)&lt;/P&gt; 
&lt;P class="p1"&gt;at org.apache.cxf.jaxrs.impl.ResponseImpl.doReadEntity(ResponseImpl.java:390)&lt;/P&gt; 
&lt;P class="p1"&gt;at org.apache.cxf.jaxrs.impl.ResponseImpl.readEntity(ResponseImpl.java:314)&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-02-14 at 9.23.58 am.png" style="width: 940px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M960.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149300i6A59437A2BEF91B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M960.png" alt="0683p000009M960.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 22:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/A-Simple-JSON-tRestRequest-and-send-JSON-payload-to-tRestClient/m-p/2200779#M3136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-13T22:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: A Simple JSON tRestRequest and send JSON payload to tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/A-Simple-JSON-tRestRequest-and-send-JSON-payload-to-tRestClient/m-p/2200780#M3137</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;are you able to call "outside server" via postman for example ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;put a tlogrow after tmap to see what your sending to trestclient&lt;/P&gt;&lt;P&gt;-in trestclient check advanced settings and check:&lt;/P&gt;&lt;P&gt;.log messages&lt;/P&gt;&lt;P&gt;.drop json request root&lt;/P&gt;&lt;P&gt;.wrap json response&lt;/P&gt;&lt;P&gt;basic settings:&lt;/P&gt;&lt;P&gt;content type : this value depend on server - try json&lt;/P&gt;&lt;P&gt;accepttype:&amp;nbsp;this value depend on server - try json&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 14:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/A-Simple-JSON-tRestRequest-and-send-JSON-payload-to-tRestClient/m-p/2200780#M3137</guid>
      <dc:creator>uzix</dc:creator>
      <dc:date>2020-02-14T14:19:02Z</dc:date>
    </item>
  </channel>
</rss>

