<?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: Create Restfull Service with method POST in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279127#M54390</link>
    <description>Hi
&lt;BR /&gt;You have the endpoint that expects HTTP Content-Type set to application/json or application/xml, 415 would be returned if it is set to something else, example, some clients may set a form Content-Type if no Content-Type is set.
&lt;BR /&gt;HTH, Sergey</description>
    <pubDate>Mon, 14 Sep 2015 10:21:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-14T10:21:06Z</dc:date>
    <item>
      <title>Create Restfull Service with method POST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279126#M54389</link>
      <description>Hi all, 
&lt;BR /&gt;I have to create a Rest Service with method POST. This service, for the moment, hasn't input and returns a JSON that I have set from a file like shown in figures. 
&lt;BR /&gt;I tried this service by Rest Client, but it returns status code "415 Unsupported Media Type". 
&lt;BR /&gt;Someone could show me an example with method post? 
&lt;BR /&gt;thanks 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBXQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148615iDF47AF25647494B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBXQ.png" alt="0683p000009MBXQ.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBTh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139614i9F4F34706E47D182/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBTh.png" alt="0683p000009MBTh.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBbK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136314iDBF4D2F05601C398/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBbK.png" alt="0683p000009MBbK.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279126#M54389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create Restfull Service with method POST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279127#M54390</link>
      <description>Hi
&lt;BR /&gt;You have the endpoint that expects HTTP Content-Type set to application/json or application/xml, 415 would be returned if it is set to something else, example, some clients may set a form Content-Type if no Content-Type is set.
&lt;BR /&gt;HTH, Sergey</description>
      <pubDate>Mon, 14 Sep 2015 10:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279127#M54390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T10:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create Restfull Service with method POST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279128#M54391</link>
      <description>Hi, 
&lt;BR /&gt;if I want to send a JSON input to Rest Service, as shown in figure, how Can I set the JSON in the rest client?? 
&lt;BR /&gt; 
&lt;PRE&gt;{"file":"content"}&lt;/PRE&gt; 
&lt;BR /&gt;Is it correct? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBa8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156305iF1EECEAF03726D57/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBa8.png" alt="0683p000009MBa8.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBXA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132551i60ED2936FF6BF0B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBXA.png" alt="0683p000009MBXA.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279128#M54391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T11:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create Restfull Service with method POST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279129#M54392</link>
      <description>Hi, I guess you have 2 options:
&lt;BR /&gt;- set tRESTClient body type to String and use a tWriteJsonField component
&lt;BR /&gt;- use tXmlMap to build XML tree and then let tRESTClient auto-convert it to JSON, keep the body type as Document
&lt;BR /&gt;Cheers, Sergey</description>
      <pubDate>Mon, 14 Sep 2015 13:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279129#M54392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T13:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create Restfull Service with method POST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279130#M54393</link>
      <description>Hi Sergey,
&lt;BR /&gt;I don't use tRestCLient, but I want to use Advanced Rest Client. For this reason, I have to know the format for the JSON to send to Service.</description>
      <pubDate>Mon, 14 Sep 2015 13:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279130#M54393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T13:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create Restfull Service with method POST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279131#M54394</link>
      <description>Hi, it depends on what format tRESTRequest expects. 
&lt;BR /&gt;If it has to be 
&lt;BR /&gt;
&lt;PRE&gt;{"file":"content"}&lt;/PRE&gt;
&lt;BR /&gt;then have Advanced Rest Client produce it, 
&lt;BR /&gt;Cheers, Sergey</description>
      <pubDate>Mon, 14 Sep 2015 22:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279131#M54394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T22:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create Restfull Service with method POST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279132#M54395</link>
      <description>I tried by advanced rest client with:&lt;BR /&gt;&lt;PRE&gt;{"file":"content"}&lt;/PRE&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="arial, sans-serif"&gt;but it return status code "415&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="arial, sans-serif"&gt;&amp;nbsp;Unsupported Media Type".&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="arial, sans-serif"&gt;Why? How have to configure tRestrequest?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="arial, sans-serif"&gt;thanks a lot.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279132#M54395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-15T13:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create Restfull Service with method POST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279133#M54396</link>
      <description>First of all, can you please vote for 
&lt;BR /&gt; 
&lt;A href="https://jira.talendforge.org/browse/TESB-15346" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TESB-15346&lt;/A&gt; 
&lt;BR /&gt;OK, so you have this JSON payload. The 1st thing that needs to be done is to have it mapped to a schema parameter called 'body' - so add a 'body' parameter there of either String or Document type. 
&lt;BR /&gt;If you choose String - it means you need to process it with one of components which can take a JSON string and process it, 
&lt;BR /&gt;If you choose Document - it means tRESTRequest will try to auto-convert JSON into a Document which you can later process with tXMLMap, etc. 
&lt;BR /&gt;In this specific case make sure you set tRESTRequest wrap json sequence property to true to get the auto-conversion working. 
&lt;BR /&gt;Please also make sure Advanced Rest Client sets Content-Type to application/json - one way to check is to enable TRESTRequest to log the incoming requests 
&lt;BR /&gt;HTH, Sergey</description>
      <pubDate>Wed, 16 Sep 2015 10:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-Restfull-Service-with-method-POST/m-p/2279133#M54396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-16T10:37:36Z</dc:date>
    </item>
  </channel>
</rss>

