<?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 How to call REST WS with JSON ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-call-REST-WS-with-JSON/m-p/2377875#M139686</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried all what is explained in the posts found in the forum but nothing works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to call a REST WS with a JSON body like :&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;{&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	"format": "application/json",&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	"system": "euro",&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	"companyId": "1234",&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	"customerId": "CH003",&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	"filter": {&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;		"boxNumber":"331135738"&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	}&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;}&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;Test n°1 : with Component tRestClient&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N45TmAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130828i14AFC3BBA95BA230/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N45TmAAJ.png" alt="0695b00000N45TmAAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N45VOAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133370i0C10709F93767C3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N45VOAAZ.png" alt="0695b00000N45VOAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;U&gt;Result &lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N45WCAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151140iE0AA808217B143B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N45WCAAZ.png" alt="0695b00000N45WCAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;Test n°2 : with Component tRest&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N45WMAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157188iE941B9F44B40826B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N45WMAAZ.png" alt="0695b00000N45WMAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N45XAAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129991i5B163200E3A25E2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N45XAAAZ.png" alt="0695b00000N45XAAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;U&gt;Result &lt;/U&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;Whitelabel Error Page&amp;lt;/h1&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;p&amp;gt;This application has no explicit mapping for /error, so you are seeing this as a fallback.&amp;lt;/p&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;div id='created'&amp;gt;Tue Feb 01 02:59:48 EST 2022&amp;lt;/div&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;div&amp;gt;There was an unexpected error (type=Internal Server Error, status=500).&amp;lt;/div&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;div&amp;gt;Servlet execution threw an exception&amp;lt;/div&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;|500&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Feb 2022 08:03:50 GMT</pubDate>
    <dc:creator>Fernandez</dc:creator>
    <dc:date>2022-02-01T08:03:50Z</dc:date>
    <item>
      <title>How to call REST WS with JSON ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-call-REST-WS-with-JSON/m-p/2377875#M139686</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried all what is explained in the posts found in the forum but nothing works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to call a REST WS with a JSON body like :&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;{&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	"format": "application/json",&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	"system": "euro",&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	"companyId": "1234",&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	"customerId": "CH003",&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	"filter": {&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;		"boxNumber":"331135738"&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;	}&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;B&gt;&lt;I&gt;}&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;Test n°1 : with Component tRestClient&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N45TmAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130828i14AFC3BBA95BA230/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N45TmAAJ.png" alt="0695b00000N45TmAAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N45VOAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133370i0C10709F93767C3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N45VOAAZ.png" alt="0695b00000N45VOAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;U&gt;Result &lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N45WCAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151140iE0AA808217B143B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N45WCAAZ.png" alt="0695b00000N45WCAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;Test n°2 : with Component tRest&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N45WMAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157188iE941B9F44B40826B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N45WMAAZ.png" alt="0695b00000N45WMAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N45XAAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129991i5B163200E3A25E2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N45XAAAZ.png" alt="0695b00000N45XAAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;U&gt;Result &lt;/U&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;Whitelabel Error Page&amp;lt;/h1&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;p&amp;gt;This application has no explicit mapping for /error, so you are seeing this as a fallback.&amp;lt;/p&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;div id='created'&amp;gt;Tue Feb 01 02:59:48 EST 2022&amp;lt;/div&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;div&amp;gt;There was an unexpected error (type=Internal Server Error, status=500).&amp;lt;/div&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;div&amp;gt;Servlet execution threw an exception&amp;lt;/div&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;I&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;|500&lt;/I&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 08:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-call-REST-WS-with-JSON/m-p/2377875#M139686</guid>
      <dc:creator>Fernandez</dc:creator>
      <dc:date>2022-02-01T08:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to call REST WS with JSON ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-call-REST-WS-with-JSON/m-p/2377876#M139687</link>
      <description>&lt;P&gt;You are nearly there. There is an extra step which you need to keep in mind. The tRestClient has a fixed inbound schema (body and string). For JSON, you need to send the data to the "string" column. The "body" column is for XML documents. The way to go about this is to first make sure your JSON String is perfect. To do this, output from the tWriteJSONField to a tLogRow and take a look. This needs to be precisely as specified by the API. Once you are happy with that, it needs to be sent to the "string" column. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that doesn't get you any closer, could you post the API specification so that we can look at that? Web Services can be pretty tricky to get right sometimes.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 15:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-call-REST-WS-with-JSON/m-p/2377876#M139687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-01T15:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to call REST WS with JSON ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-call-REST-WS-with-JSON/m-p/2377877#M139688</link>
      <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;It's running fine.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-call-REST-WS-with-JSON/m-p/2377877#M139688</guid>
      <dc:creator>Fernandez</dc:creator>
      <dc:date>2022-02-02T16:36:14Z</dc:date>
    </item>
  </channel>
</rss>

