<?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: Call Post tRestClient using tWriteJsonField in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284007#M57796</link>
    <description>&lt;P&gt;The tWriteJSONField component should be setting the "string" column not the "body" column. Only XML should use the "body" column. JSON will always be sent to the "string" column.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2020 19:13:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-04T19:13:26Z</dc:date>
    <item>
      <title>Call Post tRestClient using tWriteJsonField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284004#M57793</link>
      <description>&lt;P&gt;hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am having this flow&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="flow.PNG" style="width: 575px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24790i60A6D24C0E1F7D4F/image-size/large?v=1.0&amp;amp;px=999" title="flow.PNG" alt="flow.PNG" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The output of the tWriteJSON is as accepted by the webservice, and is working on postman:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="json.PNG" style="width: 261px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24791iC1667620647D42ED/image-size/large?v=1.0&amp;amp;px=999" title="json.PNG" alt="json.PNG" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;But when I run I have the error :&amp;nbsp;javax.ws.rs.WebApplicationException: HTTP 400 Bad Request&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;On my Webservice call to Post teh request, I am getting this error :&amp;nbsp;&amp;nbsp; org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public org.springframework.http.ResponseEntity&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Am I missong something ?&lt;/P&gt; 
&lt;P&gt;here the input schema of the WS&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ws input.PNG" style="width: 997px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24792i5AE1669B96CE8B4D/image-size/large?v=1.0&amp;amp;px=999" title="ws input.PNG" alt="ws input.PNG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284004#M57793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Call Post tRestClient using tWriteJsonField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284005#M57794</link>
      <description>&lt;P&gt;You've broken the input schema again. Never push the previous component's schema to the tRestClient. Always take the schema from the tRestClient. Your columns are named correctly, but the types of wrong. The "string" column is correct as String. But the "body" column should be of class Document, not String. You need to supply your JSON to the string column.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 14:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284005#M57794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-04T14:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Call Post tRestClient using tWriteJsonField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284006#M57795</link>
      <description>&lt;P&gt;When I put the body as Document I get this compilation error : canot convert from String to document in the tMap composant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;row_tWriteJSONField_2_Out.body = strWriter_tWriteJSONField_2_Out.toString();&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Feb 2020 15:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284006#M57795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-04T15:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Call Post tRestClient using tWriteJsonField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284007#M57796</link>
      <description>&lt;P&gt;The tWriteJSONField component should be setting the "string" column not the "body" column. Only XML should use the "body" column. JSON will always be sent to the "string" column.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 19:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284007#M57796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-04T19:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Call Post tRestClient using tWriteJsonField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284008#M57797</link>
      <description>&lt;P&gt;Finally i should the String as output Column and i removed rootNode as I dont need it. the Post in the TRestclient is done. But I wonder why i am stil getting the&amp;nbsp;javax.ws.rs.WebApplicationException: HTTP 400 Bad Request.&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="twritejsoncomp.PNG" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24801iDAEB46B7E3AE76B0/image-size/large?v=1.0&amp;amp;px=999" title="twritejsoncomp.PNG" alt="twritejsoncomp.PNG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 20:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284008#M57797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-04T20:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Call Post tRestClient using tWriteJsonField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284009#M57798</link>
      <description>&lt;P&gt;no more errors, it is done. Thanks for &lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/1098"&gt;@rhall&lt;/A&gt;&amp;nbsp; for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 09:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284009#M57798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-05T09:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Call Post tRestClient using tWriteJsonField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284010#M57799</link>
      <description>&lt;P&gt;No problem. Glad you got it sorted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 11:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Call-Post-tRestClient-using-tWriteJsonField/m-p/2284010#M57799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-05T11:50:35Z</dc:date>
    </item>
  </channel>
</rss>

