<?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 post JSON Request using tRestClient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/post-JSON-Request-using-tRestClient/m-p/2304511#M76274</link>
    <description>Hi Everyone, 
&lt;BR /&gt;I'm quite new to Talend and I am stuck with posting json request using tRestClient. I browsed through the forum topics. But I could not find an example that posts a json request . Here is one of the scenarios I tried. I have an input json file: 
&lt;BR /&gt;{"name": "months", "levels": } 
&lt;BR /&gt;And here is my job: 
&lt;BR /&gt;tFileInputJSON ----row1 (Main) --&amp;gt;tXMLMap-- output(Main) --&amp;gt;tRestClient-----row4(Response)-&amp;gt;tLogRow2 
&lt;BR /&gt;Basic Settings: 
&lt;BR /&gt;tFileInputJSON : Mapping - Column JSonPathQuery 
&lt;BR /&gt; name "name" 
&lt;BR /&gt; levels "$.levels" 
&lt;BR /&gt;I mapped these two to the body(root) of txmlMap. In the tRestClient I changed the content type to be JSON. When I ran the job, this is how my payload looked 
&lt;BR /&gt;&amp;lt;quote&amp;gt; 
&lt;BR /&gt;Http-Method: POST 
&lt;BR /&gt;Content-Type: application/json 
&lt;BR /&gt;Headers: {Content-Type=, Accept=} 
&lt;BR /&gt;Payload: {"name":"months","levels":""} 
&lt;BR /&gt;&amp;lt;/quote&amp;gt; 
&lt;BR /&gt;I would expect the payload to be 
&lt;BR /&gt;Payload: {"name":"months","levels":} 
&lt;BR /&gt;Is there a way to send the json request directly to the tRestClient? I assume tXMLMap is a mandatory component before tRestClient as tRestClient needs body and string as the input 
&lt;BR /&gt;I would appreciate if any body could provide a sample job. 
&lt;BR /&gt;Note: I am using Talend Open Studio for ESB (v 5.3) 
&lt;BR /&gt;Thanks</description>
    <pubDate>Sat, 16 Nov 2024 11:59:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T11:59:04Z</dc:date>
    <item>
      <title>post JSON Request using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/post-JSON-Request-using-tRestClient/m-p/2304511#M76274</link>
      <description>Hi Everyone, 
&lt;BR /&gt;I'm quite new to Talend and I am stuck with posting json request using tRestClient. I browsed through the forum topics. But I could not find an example that posts a json request . Here is one of the scenarios I tried. I have an input json file: 
&lt;BR /&gt;{"name": "months", "levels": } 
&lt;BR /&gt;And here is my job: 
&lt;BR /&gt;tFileInputJSON ----row1 (Main) --&amp;gt;tXMLMap-- output(Main) --&amp;gt;tRestClient-----row4(Response)-&amp;gt;tLogRow2 
&lt;BR /&gt;Basic Settings: 
&lt;BR /&gt;tFileInputJSON : Mapping - Column JSonPathQuery 
&lt;BR /&gt; name "name" 
&lt;BR /&gt; levels "$.levels" 
&lt;BR /&gt;I mapped these two to the body(root) of txmlMap. In the tRestClient I changed the content type to be JSON. When I ran the job, this is how my payload looked 
&lt;BR /&gt;&amp;lt;quote&amp;gt; 
&lt;BR /&gt;Http-Method: POST 
&lt;BR /&gt;Content-Type: application/json 
&lt;BR /&gt;Headers: {Content-Type=, Accept=} 
&lt;BR /&gt;Payload: {"name":"months","levels":""} 
&lt;BR /&gt;&amp;lt;/quote&amp;gt; 
&lt;BR /&gt;I would expect the payload to be 
&lt;BR /&gt;Payload: {"name":"months","levels":} 
&lt;BR /&gt;Is there a way to send the json request directly to the tRestClient? I assume tXMLMap is a mandatory component before tRestClient as tRestClient needs body and string as the input 
&lt;BR /&gt;I would appreciate if any body could provide a sample job. 
&lt;BR /&gt;Note: I am using Talend Open Studio for ESB (v 5.3) 
&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 16 Nov 2024 11:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/post-JSON-Request-using-tRestClient/m-p/2304511#M76274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: post JSON Request using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/post-JSON-Request-using-tRestClient/m-p/2304512#M76275</link>
      <description>Hi ssunkara
&lt;BR /&gt;I am working on your problem, but I am not able to reproduce the problem, can you please export the job and send it to me via email?
&lt;BR /&gt;Thank you!
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 03 Jul 2013 06:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/post-JSON-Request-using-tRestClient/m-p/2304512#M76275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-03T06:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: post JSON Request using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/post-JSON-Request-using-tRestClient/m-p/2304513#M76276</link>
      <description>Hi All,&lt;BR /&gt;I am also facing the same problem. Did you guyes got any solution for the same.&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Wed, 13 Nov 2013 07:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/post-JSON-Request-using-tRestClient/m-p/2304513#M76276</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-11-13T07:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: post JSON Request using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/post-JSON-Request-using-tRestClient/m-p/2304514#M76277</link>
      <description>Double quotes apparently get escaped somewhere early in the route, Jettison provider won't do it. 
&lt;BR /&gt;FYI, tXMLMap will only be needed if DOM4J to JSON auto-conversion is needed, using a dedicated tWriteJson component may be better indeed. 
&lt;BR /&gt;Actually, you probably need to remove quotes in your configuration. 
&lt;BR /&gt;Sergey</description>
      <pubDate>Mon, 25 Nov 2013 17:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/post-JSON-Request-using-tRestClient/m-p/2304514#M76277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-25T17:02:41Z</dc:date>
    </item>
  </channel>
</rss>

