<?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: How to make the tRestClient work? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-the-tRestClient-work/m-p/2272601#M49833</link>
    <description>Hi&lt;BR /&gt;Should these data go as a POST body ? if yes, set a body type to String and pass that JSON sequence as a body input to tRESTClient</description>
    <pubDate>Thu, 22 Dec 2016 11:20:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-22T11:20:46Z</dc:date>
    <item>
      <title>How to make the tRestClient work?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-the-tRestClient-work/m-p/2272600#M49832</link>
      <description>I'm almost embarrassed posting this as it seems so simple it should just work, but I've tried a dozen ways and it still will not pull a response. 
&lt;BR /&gt;I'm requesting a response from SugarCRM API v4_1. With the native Talend connector several versions behind now, I thought just as easy to use SOAP or REST. I have SOAP working fine. However, REST, I'm stuck. 
&lt;BR /&gt;This works in a URL: 
&lt;I&gt;(password mod for security)&lt;/I&gt; 
&lt;BR /&gt; 
&lt;FONT color="#3333ff"&gt;democrm.ela.solutions/service/v4_1/rest.php?method=login&amp;amp;input_type=json&amp;amp;response_type=json&amp;amp;rest_data={"user_auth":{"user_name":"admin","password":"098f6bcd4621d373cade4e832627b4f6"},"application_name":"Suite"}&lt;/FONT&gt; 
&lt;BR /&gt;But when I try to recreate this same post with the tRestClient, it fails no matter what I seem to pass in the parameters. The error "HTTP 500 Internal Server Error" response is the same error I get if I pass no parameters at all on the URL. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;And the error is: 
&lt;BR /&gt;Starting job Copy_of_Get_SessionKey_Basic_Rest at 02:15 22/12/2016. 
&lt;BR /&gt; connecting to socket on port 3414 
&lt;BR /&gt; connected 
&lt;BR /&gt;Exception in component tRESTClient_1 
&lt;BR /&gt;javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Constructor.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:507) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:895) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:863) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:426) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.cxf.jaxrs.client.WebClient.post(WebClient.java:456) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at esb_test.copy_of_get_sessionkey_basic_rest_0_1.Copy_of_Get_SessionKey_Basic_Rest.tRESTClient_1Process(Copy_of_Get_SessionKey_Basic_Rest.java:759) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at esb_test.copy_of_get_sessionkey_basic_rest_0_1.Copy_of_Get_SessionKey_Basic_Rest.runJobInTOS(Copy_of_Get_SessionKey_Basic_Rest.java:1153) 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at esb_test.copy_of_get_sessionkey_basic_rest_0_1.Copy_of_Get_SessionKey_Basic_Rest.main(Copy_of_Get_SessionKey_Basic_Rest.java:1010) 
&lt;BR /&gt;Job Copy_of_Get_SessionKey_Basic_Rest ended at 02:15 22/12/2016. 
&lt;BR /&gt; 
&lt;BR /&gt;Any insight would be appreciated! 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCk7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128719i5AEED9E1AAC887DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCk7.png" alt="0683p000009MCk7.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 22 Dec 2016 09:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-the-tRestClient-work/m-p/2272600#M49832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-22T09:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the tRestClient work?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-the-tRestClient-work/m-p/2272601#M49833</link>
      <description>Hi&lt;BR /&gt;Should these data go as a POST body ? if yes, set a body type to String and pass that JSON sequence as a body input to tRESTClient</description>
      <pubDate>Thu, 22 Dec 2016 11:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-the-tRestClient-work/m-p/2272601#M49833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-22T11:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the tRestClient work?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-the-tRestClient-work/m-p/2272602#M49834</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi&lt;BR /&gt;Should these data go as a POST body ? if yes, set a body type to String and pass that JSON sequence as a body input to tRESTClient&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thanks sberyozkin, 
&lt;BR /&gt;No, these are not in the body, just parameters that pass along the URL.</description>
      <pubDate>Fri, 23 Dec 2016 07:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-the-tRestClient-work/m-p/2272602#M49834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-23T07:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the tRestClient work?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-the-tRestClient-work/m-p/2272603#M49835</link>
      <description>You say it works in a URL. By that do you mean web browser? If so you should be using GET not POST. Try that.&amp;nbsp;</description>
      <pubDate>Fri, 23 Dec 2016 09:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-the-tRestClient-work/m-p/2272603#M49835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-23T09:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the tRestClient work?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-the-tRestClient-work/m-p/2272604#M49836</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;You say it works in a URL. By that do you mean web browser? If so you should be using GET not POST. Try that.&amp;nbsp;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thanks rhall, 
&lt;BR /&gt;Yes, that's is a URL that works. Whether I POST or GET, I'm getting the same error. I don't understand what the debug errors are telling me. I do know the 500 error occurs if I post a straight URL with no parameters like this "//democrm.ela.solutions/service/v4_1/rest.php?method=login". So it seems like the Talend component might have an issue not passing parameters? Do you recognize what the " at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)" means? 
&lt;BR /&gt; 
&lt;BR /&gt; connecting to socket on port 3854 
&lt;BR /&gt; connected 
&lt;BR /&gt;Exception in component tRESTClient_1 
&lt;BR /&gt;javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Constructor.newInstance(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:507) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:895) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:863) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:426) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:609) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at esb_test.copy_of_get_sessionkey_basic_rest_0_1.Copy_of_Get_SessionKey_Basic_Rest.tRESTClient_1Process(Copy_of_Get_SessionKey_Basic_Rest.java:750) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at esb_test.copy_of_get_sessionkey_basic_rest_0_1.Copy_of_Get_SessionKey_Basic_Rest.runJobInTOS(Copy_of_Get_SessionKey_Basic_Rest.java:1143) 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at esb_test.copy_of_get_sessionkey_basic_rest_0_1.Copy_of_Get_SessionKey_Basic_Rest.main(Copy_of_Get_SessionKey_Basic_Rest.java:1000)</description>
      <pubDate>Sun, 25 Dec 2016 06:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-the-tRestClient-work/m-p/2272604#M49836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-25T06:34:33Z</dc:date>
    </item>
  </channel>
</rss>

