<?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: Talend ESB: restclient: setting authorization header in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-restclient-setting-authorization-header/m-p/2311264#M82322</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to all a restlet's post method by passing input in Json format. For this, I am using cMessagingEndpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&amp;nbsp;&lt;SPAN&gt;cMessagingEndpoint, I chose 'restlet' camel component and specified the&amp;nbsp;restlet uri, method to be 'POST'.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to specify a header 'Authorization' for the restlet. So,&lt;/SPAN&gt;&lt;SPAN&gt; I tried setting the header inside cProcessor component, But when I run the route, I am getting the below error response. [Attached my route and&amp;nbsp;cProcessor&amp;nbsp;code. ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;statusCode: 401 /n responseBody:error code: USER_ERROR&lt;BR /&gt;error message:No Authorization header]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please suggest how I can set the headers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sowjanya.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsFV"&gt;Screen Shot 2017-08-22 at 10.56.55 PM.png&lt;/A&gt;</description>
    <pubDate>Wed, 23 Aug 2017 07:11:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-23T07:11:42Z</dc:date>
    <item>
      <title>Talend ESB: restclient: setting authorization header</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-restclient-setting-authorization-header/m-p/2311263#M82321</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am using enterprise edition of talend fabric 6.3.1.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to make a rest call to Netsuite's restlet.&amp;nbsp;for authorization, I need to send&amp;nbsp;authorization header something like below.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;'Authorization' : '&lt;SPAN&gt;NLAuth nlauth_account=TSTDRV1030358,nlauth_email=user@domain.com,nlauth_signature=XXXXXXXX,nlauth_role=14'&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;In Talend ESB route, I am using cCXFRS component to make the RESTClient call. I see that&amp;nbsp;cCXFRS&amp;nbsp;supports&amp;nbsp;HttpBasic authentication, but that is not what I want to use.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;1. How can I set the Authorization header in the cCXFRS component properties?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;2. If this is not possible, how else can I make a restclient call in such a way that I can pass the Authorization header to Netsuite's restlet.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Sowjanya.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-restclient-setting-authorization-header/m-p/2311263#M82321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ESB: restclient: setting authorization header</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-restclient-setting-authorization-header/m-p/2311264#M82322</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to all a restlet's post method by passing input in Json format. For this, I am using cMessagingEndpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&amp;nbsp;&lt;SPAN&gt;cMessagingEndpoint, I chose 'restlet' camel component and specified the&amp;nbsp;restlet uri, method to be 'POST'.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to specify a header 'Authorization' for the restlet. So,&lt;/SPAN&gt;&lt;SPAN&gt; I tried setting the header inside cProcessor component, But when I run the route, I am getting the below error response. [Attached my route and&amp;nbsp;cProcessor&amp;nbsp;code. ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;statusCode: 401 /n responseBody:error code: USER_ERROR&lt;BR /&gt;error message:No Authorization header]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please suggest how I can set the headers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sowjanya.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsFV"&gt;Screen Shot 2017-08-22 at 10.56.55 PM.png&lt;/A&gt;</description>
      <pubDate>Wed, 23 Aug 2017 07:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-restclient-setting-authorization-header/m-p/2311264#M82322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-23T07:11:42Z</dc:date>
    </item>
  </channel>
</rss>

