<?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: send json data via REST request on talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312639#M83574</link>
    <description>&lt;P&gt;thanks for your answer, i edit but there is always the same error HTTP 400 Bad Request, I look with wireshark, the request is send but the json object is not send&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 13:12:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-20T13:12:09Z</dc:date>
    <item>
      <title>send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312633#M83568</link>
      <description>&lt;P&gt;hi evryone , i want to send data to my elasticsearch database. for that I recover my data from an oracle database I transform them into json and send them via a REST request on talend&lt;/P&gt; 
&lt;P&gt;I use elasticsearch versions 7.0.1 and talend 7.1.1&lt;/P&gt; 
&lt;P&gt;data send :&lt;/P&gt; 
&lt;PRE&gt;{"name": "Fabrice", "site": "Paris", "department": "North West"}&lt;/PRE&gt; 
&lt;P&gt;method Post in this url : "&lt;A href="http://localhost:9200/my_index" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;http://localhost:9200/myIndex&lt;/A&gt;"&lt;/P&gt; 
&lt;P&gt;i have this error :&lt;/P&gt; 
&lt;PRE&gt;exception in component tRESTClient_1 (DataOracleToJson)&lt;BR /&gt;javax.ws.rs.WebApplicationException: HTTP 400 Bad Request&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScreenShot003.png" style="width: 665px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4C9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137073i46AD50F3A6FB6B99/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4C9.png" alt="0683p000009M4C9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312633#M83568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312634#M83569</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;you put "Content-Type" and "Accept" into the wrong place&lt;/P&gt; 
&lt;P&gt;if you want&amp;nbsp;to use them (it will work and without) - use Advanced settings headers section&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-05-17 at 9.49.37 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4E0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129568iE8F7FC81393D6DCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4E0.png" alt="0683p000009M4E0.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; 
&lt;P&gt;&lt;STRONG&gt;add:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;one more:&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;URL&lt;/LI&gt; 
 &lt;LI&gt;and Relative path&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;both parts of the full address:&lt;/P&gt; 
&lt;P&gt;URL - http://localhost:9200&lt;/P&gt; 
&lt;P&gt;Relative path - /myindex/_doc&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 10:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312634#M83569</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-05-17T10:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312635#M83570</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;thank you for your answer, I remove but still the same problem :&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;Exception in component tRESTClient_1 (DataOracleToJson)
javax.ws.rs.WebApplicationException: HTTP 400 Bad Request
	at local_projectoracle_to_json.dataoracletojson_0_1.DataOracleToJson.tWriteJSONField_2_InProcess(DataOracleToJson.java:2621)
	at local_projectoracle_to_json.dataoracletojson_0_1.DataOracleToJson$1ThreadXMLField_tWriteJSONField_2_Out.run(DataOracleToJson.java:930)&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;yet if I run the query with curl it works&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;curl -XPOST "http://localhost:9200/myIndex/_doc" -H 'Content-Type: application/json' -d' {"name": "Fabrice", "site": "Paris", "department": "North West"}'&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 11:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312635#M83570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-17T11:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312636#M83571</link>
      <description>&lt;P&gt;please see add part of answer&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 11:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312636#M83571</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-05-17T11:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312637#M83572</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScreenShot004.png" style="width: 857px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4E5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143276iB93CDBC89369CD19/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4E5.png" alt="0683p000009M4E5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScreenShot005.png" style="width: 761px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4EA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146758i551760A0ED617E94/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4EA.png" alt="0683p000009M4EA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScreenShot006.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M46Z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137428i85BF93F85EBE33BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M46Z.png" alt="0683p000009M46Z.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 11:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312637#M83572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-17T11:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312638#M83573</link>
      <description>&lt;P&gt;I mean - see "&lt;STRONG&gt;add"&lt;/STRONG&gt;&amp;nbsp;section in my answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;your address is duplicate each other, but it really - 2 parts of the same address&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also - good to add some connection to response and error flows from tRESTClient&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;both parts of the full address:
URL - http://localhost:9200
Relative path - /myindex/_doc&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2019 11:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312638#M83573</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-05-17T11:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312639#M83574</link>
      <description>&lt;P&gt;thanks for your answer, i edit but there is always the same error HTTP 400 Bad Request, I look with wireshark, the request is send but the json object is not send&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 13:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312639#M83574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-20T13:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312640#M83575</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there need to check all chain - what and how you prepare, types, column name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my case, I use a single tXMLMap instead of tMap + tWriteJSON and populate column body (type document)&lt;/P&gt;&lt;P&gt;everything work&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 13:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312640#M83575</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-05-20T13:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312641#M83576</link>
      <description>&lt;P&gt;I put the tXMLMap and I checked all the chain I see the object json go until tRestClient, everything seems ok. I think the problem comes from the configuration of the tRestClient, how to fill the body of the column (document type)&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 14:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312641#M83576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-20T14:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312642#M83577</link>
      <description>&lt;P&gt;with curl :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="With curl" style="width: 761px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4Kd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132276iEDD3775DB414BA4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4Kd.png" alt="0683p000009M4Kd.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;With curl&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;with talend:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="With talend" style="width: 755px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M43I.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135014iA82A38BE0AF4D411/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M43I.png" alt="0683p000009M43I.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;With talend&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 13:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312642#M83577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-21T13:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312643#M83578</link>
      <description>&lt;P&gt;when I put a document in the tXMLmap it tells me "type mismatch can not convert from string to document"&lt;BR /&gt;and on the forum:&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vClDCCA0" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Need-to-convert-JSON-string-to-document-for-use-in/td-p/78091&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;it says that it must be sent in string and not in document, when I do it, it puts me in error (except error 400 bad request), when I check the request send with wireshark I see the object json is not send in the request&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 09:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312643#M83578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-22T09:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: send json data via REST request on talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312644#M83579</link>
      <description>&lt;P&gt;i had the same issue and I used this flow. in the tWriteJsonField, the Output column is set to "string" and not the body and I removed the root Node as I don't need it&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/24810i4F09B1DD44BA9932/image-size/large?v=1.0&amp;amp;px=999" title="flow.PNG" alt="flow.PNG" /&gt;&lt;/SPAN&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/24811iC0AC09246730D32E/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>Wed, 05 Feb 2020 10:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-json-data-via-REST-request-on-talend/m-p/2312644#M83579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-05T10:10:47Z</dc:date>
    </item>
  </channel>
</rss>

