<?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: cDynamicRouter and different endpoints in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213593#M10792</link>
    <description>I was actually using DHC rest Client to specify the HTTP Verb I want to use, sorry didn't mention it before 
&lt;BR /&gt;I used DHC Rest Client to make a direct POST (without using talend) in the service (in eclipse) &amp;nbsp; using json data, it works: 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/old_route_20150814-1537.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAWA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129138i9A31824F2D6018B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAWA.png" alt="0683p000009MAWA.png" /&gt;&lt;/span&gt;&lt;/A&gt;</description>
    <pubDate>Fri, 14 Aug 2015 14:34:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-08-14T14:34:57Z</dc:date>
    <item>
      <title>cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213576#M10775</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;BR /&gt;I have the route (attached bellow).&amp;nbsp;&lt;BR /&gt;I have to dynamically redirect the messages depending on the Http verb (I tried to do it using another approch but it was an epic fail &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;)&amp;nbsp;&lt;BR /&gt;used the &lt;A href="https://help.talend.com/display/ComposantsMediationTalendESBGuidedereference55FR/cDynamicRouter" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;link&lt;/A&gt;&lt;BR /&gt;The problem is that only the "DELETE" method is working, and yet I have the error: &lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/routeNew.png" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt; 
&lt;PRE&gt; :1:1: Fin prématurée du fichier.&lt;BR /&gt;: org.apache.camel.processor.DefaultErrorHandler - Failed delivery for (MessageId: ID-LFR204094-55535-1439324535115-0-3 on ExchangeId: ID-LFR204094-55535-1439324535115-0-1). Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange]&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;while with the GET or POST methods all I have is this error:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt; :1:1: Contenu non autorisé dans le prologue.&lt;BR /&gt;: org.apache.camel.processor.DefaultErrorHandler - Failed delivery for (MessageId: ID-LFR204094-56301-1439325581670-0-3 on ExchangeId: ID-LFR204094-56301-1439325581670-0-1). Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange]&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;I bridged the URLs:&lt;/P&gt; 
&lt;PRE&gt;"http://localhost:8081/webMavenChouette?bridgeEndpoint=true&amp;amp;throwExceptionOnFailure=false"&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;please find attached the snapshots of the route and the bean:&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/routeNew.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAHp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135743i6E5E6ADFB22C37B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAHp.png" alt="0683p000009MAHp.png" /&gt;&lt;/span&gt; &lt;/A&gt;&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/Class.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAcR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149193i520A7E84BEA3D209/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAcR.png" alt="0683p000009MAcR.png" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;BR /&gt;Thank you for your time&amp;nbsp;&lt;BR /&gt;-Regards&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213576#M10775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213577#M10776</link>
      <description>I addedd a cErrorHandler:&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/cErrorHandler.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAQr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144669i05AEE02D046C7D48/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAQr.png" alt="0683p000009MAQr.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;Here's what I got as logs&amp;nbsp; 
&lt;BR /&gt; 
&lt;PRE&gt;: org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@localhost:8084&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Route: Base_cHttp_1 started and consuming from: Endpoint&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Route: POST_cMessagingEndpoint_1 started and consuming from: Endpoint&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Route: GET_cMessagingEndpoint_2 started and consuming from: Endpoint&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Route: DELETE_cMessagingEndpoint_3 started and consuming from: Endpoint&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Total 4 routes, of which 4 is started.&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Apache Camel 2.15.2 (CamelContext: RouteChouetteSplit-ctx) started in 1.790 seconds&lt;BR /&gt;: chouetteRoute.cLog_7 - GET CLIENT&lt;BR /&gt;: org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect&lt;BR /&gt;: org.apache.commons.httpclient.HttpMethodDirector - Retrying request&lt;BR /&gt;: org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect&lt;BR /&gt;: org.apache.commons.httpclient.HttpMethodDirector - Retrying request&lt;BR /&gt;: org.apache.commons.httpclient.HttpMethodDirector - I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect&lt;BR /&gt;: org.apache.commons.httpclient.HttpMethodDirector - Retrying request&lt;BR /&gt;: org.slf4j.Logger - Failed delivery for (MessageId: ID-LFR204094-53626-1439369472006-0-2 on ExchangeId: ID-LFR204094-53626-1439369472006-0-1). Exhausted after delivery attempt: 1 caught: java.net.ConnectException: Connection refused: connect&lt;BR /&gt;Message History&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;RouteId              ProcessorId          Processor                                                                        Elapsed (ms)&lt;BR /&gt;   &lt;BR /&gt;                                           ] &lt;BR /&gt;   &lt;BR /&gt;                                                      ] &lt;BR /&gt;   &lt;BR /&gt;Exchange&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Exchange&lt;BR /&gt;]&lt;BR /&gt;Stacktrace&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;java.net.ConnectException: Connection refused: connect&lt;BR /&gt;	at java.net.DualStackPlainSocketImpl.connect0(Native Method)&lt;BR /&gt;	at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)&lt;BR /&gt;	at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)&lt;BR /&gt;	at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)&lt;BR /&gt;	at java.net.AbstractPlainSocketImpl.connect(Unknown Source)&lt;BR /&gt;	at java.net.PlainSocketImpl.connect(Unknown Source)&lt;BR /&gt;	at java.net.SocksSocketImpl.connect(Unknown Source)&lt;BR /&gt;	at java.net.Socket.connect(Unknown Source)&lt;BR /&gt;	at java.net.Socket.connect(Unknown Source)&lt;BR /&gt;	at java.net.Socket.(Unknown Source)&lt;BR /&gt;	at java.net.Socket.(Unknown Source)&lt;BR /&gt;	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)&lt;BR /&gt;	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)&lt;BR /&gt;	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)&lt;BR /&gt;	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)&lt;BR /&gt;	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)&lt;BR /&gt;	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)&lt;BR /&gt;	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)&lt;BR /&gt;	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)&lt;BR /&gt;	at org.apache.camel.component.http.HttpProducer.executeMethod(HttpProducer.java:244)&lt;BR /&gt;	at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:144)&lt;BR /&gt;	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)&lt;BR /&gt;	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)&lt;BR /&gt;	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)&lt;BR /&gt;	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)&lt;BR /&gt;	at routines.system.CamelStat$1$1.process(CamelStat.java:56)&lt;BR /&gt;	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)&lt;BR /&gt;	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)&lt;BR /&gt;	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)&lt;BR /&gt;	at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)&lt;BR /&gt;	at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)&lt;BR /&gt;	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)&lt;BR /&gt;	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)&lt;BR /&gt;	at org.apache.camel.processor.RoutingSlip$2.doInAsyncProducer(RoutingSlip.java:301)&lt;BR /&gt;	at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:304)&lt;BR /&gt;	at org.apache.camel.processor.RoutingSlip.processExchange(RoutingSlip.java:294)&lt;BR /&gt;	at org.apache.camel.processor.RoutingSlip.doRoutingSlip(RoutingSlip.java:215)&lt;BR /&gt;	at org.apache.camel.processor.RoutingSlip.process(RoutingSlip.java:146)&lt;BR /&gt;	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)&lt;BR /&gt;	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)&lt;BR /&gt;	at routines.system.CamelStat$1$1.process(CamelStat.java:56)&lt;BR /&gt;	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91)&lt;BR /&gt;	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)&lt;BR /&gt;	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)&lt;BR /&gt;	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)&lt;BR /&gt;	at org.apache.camel.component.jetty.CamelContinuationServlet.service(CamelContinuationServlet.java:162)&lt;BR /&gt;	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)&lt;BR /&gt;	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)&lt;BR /&gt;	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)&lt;BR /&gt;	at org.eclipse.jetty.servlets.MultiPartFilter.doFilter(MultiPartFilter.java:136)&lt;BR /&gt;	at org.apache.camel.component.jetty.CamelFilterWrapper.doFilter(CamelFilterWrapper.java:43)&lt;BR /&gt;	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1465)&lt;BR /&gt;	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)&lt;BR /&gt;	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)&lt;BR /&gt;	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)&lt;BR /&gt;	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)&lt;BR /&gt;	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)&lt;BR /&gt;	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)&lt;BR /&gt;	at org.eclipse.jetty.server.Server.handle(Server.java:370)&lt;BR /&gt;	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)&lt;BR /&gt;	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)&lt;BR /&gt;	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)&lt;BR /&gt;	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)&lt;BR /&gt;	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)&lt;BR /&gt;	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)&lt;BR /&gt;	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)&lt;BR /&gt;	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)&lt;BR /&gt;	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)&lt;BR /&gt;	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)&lt;BR /&gt;	at java.lang.Thread.run(Unknown Source)&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;-Regards</description>
      <pubDate>Wed, 12 Aug 2015 09:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213577#M10776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-12T09:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213578#M10777</link>
      <description>well, as it's said in the docs, the&amp;nbsp; 
  &lt;B&gt;cMessagingEndpoint&lt;/B&gt; &amp;nbsp;allows two applications to communicate by 
  &lt;B&gt;either&lt;/B&gt; sending or receiving messages, 
  &lt;B&gt;one endpoint can not do both&lt;/B&gt;. &amp;nbsp;so I replaced it with a cHttp component, as a server (please find the picture attached).&amp;nbsp; 
  &lt;BR /&gt;The route worked one time as expected with no errors, after a restart of my computer, it gives me this errors:&amp;nbsp; 
  &lt;BR /&gt; 
  &lt;PRE&gt;Démarrage du job testDynamicRouter a 15:12 13/08/2015.: org.apache.camel.main.MainSupport - Apache Camel 2.15.2 starting: org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@38d760bb: startup date ; root of context hierarchy: org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singlet&lt;/PRE&gt; 
 &lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Md81"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Md81"&gt;OriginalPost.pdf&lt;/A&gt;</description>
      <pubDate>Thu, 13 Aug 2015 14:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213578#M10777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-13T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213579#M10778</link>
      <description>What is the difference between the DELETE, GET and POST cHttp components? How are each of them configured? What type of data is sent? Are they set up as Client rather than Server?</description>
      <pubDate>Thu, 13 Aug 2015 16:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213579#M10778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-13T16:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213580#M10779</link>
      <description>Thank you for your answer 
&lt;BR /&gt;the cHttp DELETE , POST &amp;nbsp;and GET are all set up as "client", they all have the same URI: 
&lt;BR /&gt; 
&lt;PRE&gt;URI="http://localhost:8081/webMavenChouette?bridgeEndpoint=true&amp;amp;throwExceptionOnFailure=false"&lt;/PRE&gt; 
&lt;BR /&gt; calling a REST web service.&amp;nbsp; 
&lt;BR /&gt;The difference is the configuration, the one called "DELETE" uses the methode "DELETE", the one called "POST" uses the methode "POST", the one called "GET" uses the methode "GET". &amp;nbsp;They will be used to differenciate the processing according to the HTTP verb used 
&lt;BR /&gt;the data sent is json objects.&amp;nbsp; 
&lt;BR /&gt;-Regards 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/post.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAcb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133044i6D4E5CB76034AFD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAcb.png" alt="0683p000009MAcb.png" /&gt;&lt;/span&gt; &lt;/A&gt;</description>
      <pubDate>Thu, 13 Aug 2015 16:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213580#M10779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-13T16:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213581#M10780</link>
      <description>Have you tested each of the http verbs with the service you are sending them to without this process? It could be a problem with that service.</description>
      <pubDate>Thu, 13 Aug 2015 16:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213581#M10780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-13T16:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213582#M10781</link>
      <description>Actually I've already tested the service itself using a route :&amp;nbsp; 
&lt;BR /&gt;chttp (server) -&amp;gt; chttp(client) -&amp;gt; cMessageRouter -&amp;gt;2 when branches to test the Exchange.HTTP_RESPONSE_CODE -&amp;gt;cLogs 
&lt;BR /&gt;and it's working just fine with the 3 http verbs 
&lt;BR /&gt;The problem occurs when I introduce the cDynamicRouter. to do the if/else conditions, I used a bean, using the cBeanRegister" component, &amp;nbsp;which redirects the message&amp;nbsp; 
&lt;BR /&gt; 
&lt;PRE&gt;public String setURI(Document document,@Header(Exchange.SLIP_ENDPOINT) String previous, &lt;BR /&gt;			@Header(Exchange.HTTP_METHOD) String httpVerb) {&lt;BR /&gt;		&lt;BR /&gt;		if (previous != null) {&lt;BR /&gt;			return null;&lt;BR /&gt;		}&lt;BR /&gt;	&lt;BR /&gt;		return "direct:" + httpVerb;&lt;/PRE&gt; 
&lt;BR /&gt;it returns a "direct:GET" (if the request was a GET)&amp;nbsp;that is put in the "GET_server": a chttp server component&amp;nbsp;;&amp;nbsp; 
&lt;BR /&gt;please reconsider the snapshots, I renamed the chttp component depending on their configuration.&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/post_20150813-1759.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAbt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158181i3A9ABC6F4A785264/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAbt.png" alt="0683p000009MAbt.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/postClient.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MATL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145860iD97B03489BD369F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MATL.png" alt="0683p000009MATL.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/dynamic.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAZJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148527i07C604BCC0427ED0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAZJ.png" alt="0683p000009MAZJ.png" /&gt;&lt;/span&gt; &lt;/A&gt;</description>
      <pubDate>Thu, 13 Aug 2015 16:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213582#M10781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-13T16:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213583#M10782</link>
      <description>Where is the service you are calling running? Is it running in the Studio or in the Karaf? Do you have more than one service; 1 for each verb? 
&lt;BR /&gt;Also, can you add the following code to your routine? 
&lt;BR /&gt; 
&lt;PRE&gt;public String setURI(Document document,@Header(Exchange.SLIP_ENDPOINT) String previous, &lt;BR /&gt;			@Header(Exchange.HTTP_METHOD) String httpVerb) {&lt;BR /&gt;		&lt;BR /&gt;		if (previous != null) {&lt;BR /&gt;			return null;&lt;BR /&gt;		}&lt;BR /&gt;	&lt;BR /&gt;System.out.out.println("direct:"+httpVerb); //&amp;lt;--- This code to see what is produced&lt;BR /&gt;		return "direct:" + httpVerb;&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2015 17:12:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213583#M10782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-13T17:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213584#M10783</link>
      <description>my service is running in eclipse, it's&amp;nbsp;a spring mvc application, with Rest controllers
&lt;BR /&gt;and the &amp;nbsp;
&lt;FONT face="consolas, monaco, bitstream vera sans mono, courier new, courier, monospace"&gt;&lt;FONT size="2"&gt;System.out.out.println("direct:"+httpVerb); &lt;/FONT&gt;&lt;/FONT&gt;prints the http verb I'm using in the request in the Rest Client DHC
&lt;BR /&gt;==&amp;gt; if it's a GET request then the code prints "direct:GET"</description>
      <pubDate>Thu, 13 Aug 2015 23:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213584#M10783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-13T23:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213585#M10784</link>
      <description>I *think* I might have the answer, but I can't test it here. Looking at your error messages it looks like the service is throwing errors because it is expecting a String but is receiving the body as an instance of java.io.InputStream. To work around this, try putting cProcessor components before your POST_client, GET_client and DELETE_client components. In each of the cProcessor components, put the following code.....
&lt;BR /&gt;
&lt;PRE&gt;String jsonString = exchange.getIn().getBody(String.class);&lt;BR /&gt;exchange.getIn().setBody(jsonString);&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;What you are doing here is forcing the body to be converted to a String (from an instance of java.io.InputStream) and then putting it back into the "in" message as a String.
&lt;BR /&gt;This won't necessarily get it to work perfectly, but you should see it get further after this.
&lt;BR /&gt;Let me know if it works.</description>
      <pubDate>Fri, 14 Aug 2015 00:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213585#M10784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T00:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213586#M10785</link>
      <description>I tested your hint but I still have the exact same error, but &amp;nbsp;I don't think your guess is right because even when I keep just the GET_server, I still have the same error message 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/server.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAcg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147642iA9CFCB3FE92D6058/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAcg.png" alt="0683p000009MAcg.png" /&gt;&lt;/span&gt; &lt;/A&gt;</description>
      <pubDate>Fri, 14 Aug 2015 12:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213586#M10785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T12:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213587#M10786</link>
      <description>You cannot have the cHttp components as POST_Server, GET_Server and DELETE_SERVER. These should be cMessagingEndpoint components. cMessagingEndpoint components allow you to use the direct endpoint. They are generic endpoints that allow you to use any of the Camel Components. The cHttp components are for producing or consuming service calls. Although you are working with services here, you are actually using the Camel direct component to pass the messages from the cDynamicRouter. Therefore you must use the cMessagingEndpoint.</description>
      <pubDate>Fri, 14 Aug 2015 13:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213587#M10786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T13:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213588#M10787</link>
      <description>I've already used the cMessagingEndpoint (please see the first message) but this component&amp;nbsp;&amp;nbsp;allows two applications to communicate by&amp;nbsp;either&amp;nbsp;sending or receiving messages,&amp;nbsp;one endpoint can not do both, so I cannot have "an answer" from the service web, and *I think* that's why only the DELETE method worked for me&amp;nbsp; 
  &lt;BR /&gt;I jest retested with a cMessagingEndpoint component and a GET request:&amp;nbsp; 
  &lt;BR /&gt; 
  &lt;PRE&gt;: org.apache.camel.main.MainSupport - Apache Camel 2.15.2 starting&lt;BR /&gt;: org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@7bc0bd17: startup date ; root of context hierarchy: org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.Defaul&lt;/PRE&gt;
 &lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Md8V"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Md8V"&gt;OriginalPost.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 14 Aug 2015 13:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213588#M10787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T13:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213589#M10788</link>
      <description>I also tried a "sipmler" way, using a cMessagingRouter component:&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/old_route.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAcl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130006i7A469F4D12C6153D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAcl.png" alt="0683p000009MAcl.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;However, the route just behaves weirdly,it&amp;nbsp;&amp;nbsp;does not work depending on the corresponding logic to the graph.for example: the branch "when2" is called only when the two conditions "when4" and "when5" are false (dspite the fact that in my Rest Client, the http verb is "DELETE". 
&lt;BR /&gt;When I looked into the code, it appers that it's a little bit *messy*, it's not clear which ".when(...)" is related to which ".choice()":&amp;nbsp; 
&lt;BR /&gt; 
&lt;PRE&gt;public void configure() throws java.lang.Exception {&lt;BR /&gt;		from(uriMap.get("cHttp_3"))&lt;BR /&gt;				.routeId("Base_cHttp_3")&lt;BR /&gt;				.choice()&lt;BR /&gt;				.id("cMessageRouter_1")&lt;BR /&gt;				.when()&lt;BR /&gt;				.simple("${header." + org.apache.camel.Exchange.HTTP_METHOD&lt;BR /&gt;						+ "} == 'GET'")&lt;BR /&gt;				.setHeader("CamelHttpMethod", constant("GET"))&lt;BR /&gt;				.to(uriMap.get("cHttp_4"))&lt;BR /&gt;				.id("cHttp_4")&lt;BR /&gt;				.choice()&lt;BR /&gt;				.id("cMessageRouter_2")&lt;BR /&gt;				.when()&lt;BR /&gt;				.simple("${header."&lt;BR /&gt;						+ org.apache.camel.Exchange.HTTP_RESPONSE_CODE&lt;BR /&gt;						+ "} == 200 ")&lt;BR /&gt;				.log(org.apache.camel.LoggingLevel.INFO,&lt;BR /&gt;						"chouetteRoute.cLog_1", "good")&lt;BR /&gt;				.id("cLog_2")&lt;BR /&gt;				.when()&lt;BR /&gt;				.simple("${header."&lt;BR /&gt;						+ org.apache.camel.Exchange.HTTP_RESPONSE_CODE&lt;BR /&gt;						+ "} == 200 ")&lt;BR /&gt;				.log(org.apache.camel.LoggingLevel.ERROR,&lt;BR /&gt;						"chouetteRoute.cLog_1", "eRREUR")&lt;BR /&gt;				.id("cLog_9")&lt;BR /&gt;				.when()&lt;BR /&gt;				.simple("${header." + org.apache.camel.Exchange.HTTP_METHOD&lt;BR /&gt;						+ "} == 'POST'")&lt;BR /&gt;				.setHeader("CamelHttpMethod", constant("POST"))&lt;BR /&gt;				.setHeader("Content-Type", constant("application/json"))&lt;BR /&gt;				.to(uriMap.get("cHttp_7"))&lt;BR /&gt;				.id("cHttp_7")&lt;BR /&gt;				.choice()&lt;BR /&gt;				.id("cMessageRouter_4")&lt;BR /&gt;				.when()&lt;BR /&gt;				.simple("${header."&lt;BR /&gt;						+ org.apache.camel.Exchange.HTTP_RESPONSE_CODE&lt;BR /&gt;						+ "} == 200 ")&lt;BR /&gt;				.log(org.apache.camel.LoggingLevel.INFO,&lt;BR /&gt;						"chouetteRoute.cLog_1", "good")&lt;BR /&gt;				.id("cLog_5")&lt;BR /&gt;				.when()&lt;BR /&gt;				.simple("${header."&lt;BR /&gt;						+ org.apache.camel.Exchange.HTTP_RESPONSE_CODE&lt;BR /&gt;						+ "} == 404 ")&lt;BR /&gt;				.log(org.apache.camel.LoggingLevel.ERROR,&lt;BR /&gt;						"chouetteRoute.cLog_1", "eRREUR")&lt;BR /&gt;				.id("cLog_6")&lt;BR /&gt;				.when()&lt;BR /&gt;				.simple("${header." + org.apache.camel.Exchange.HTTP_METHOD&lt;BR /&gt;						+ "} == 'DELETE'")&lt;BR /&gt;				.setHeader("CamelHttpMethod", constant("DELETE"))&lt;BR /&gt;				.to(uriMap.get("cHttp_1"))&lt;BR /&gt;				.id("cHttp_1")&lt;BR /&gt;				.choice()&lt;BR /&gt;				.id("cMessageRouter_3")&lt;BR /&gt;				.when()&lt;BR /&gt;				.simple("${header."&lt;BR /&gt;						+ org.apache.camel.Exchange.HTTP_RESPONSE_CODE&lt;BR /&gt;						+ "} == 200 ")&lt;BR /&gt;				.log(org.apache.camel.LoggingLevel.INFO,&lt;BR /&gt;						"chouetteRoute.cLog_1", "good")&lt;BR /&gt;				.id("cLog_3")&lt;BR /&gt;				.when()&lt;BR /&gt;				.simple("${header."&lt;BR /&gt;						+ org.apache.camel.Exchange.HTTP_RESPONSE_CODE&lt;BR /&gt;						+ "} == 404 ")&lt;BR /&gt;				.log(org.apache.camel.LoggingLevel.ERROR,&lt;BR /&gt;						"chouetteRoute.cLog_1", "eRREUR")&lt;BR /&gt;				.id("cLog_4");&lt;BR /&gt;	}&lt;/PRE&gt; 
&lt;BR /&gt;&amp;nbsp;</description>
      <pubDate>Fri, 14 Aug 2015 13:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213589#M10788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T13:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213590#M10789</link>
      <description>If you look at the screenshot, you can see that the cMessagingEndpoint is working as it should. That is why you are getting row counts after the cMessagingEndpoint. You are getting confused with the terminology. The cMessagingEndpoint is fine and should stay.&amp;nbsp; 
&lt;BR /&gt;However, I can now see that the service is expecting the body as an instance of&amp;nbsp; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;org.w3c.dom.Document&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;. &lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;Your service (in Eclipse) is expecting XML as its payload. You need to inform it that you are sending JSON. To do this you might want to try going to the advanced settings of your cHttp components that are calling your Eclipse service and create a new header called "Content-Type" and assigning it a value of "application/json". 
&lt;BR /&gt;The error message below explains that the service wants the body as&amp;nbsp; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;org.w3c.dom.Document&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;and that is why you are getting this error. You must be really careful to identify the precise error when debugging. This is a completely different error to the one before. 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;Caused by: org.apache.camel.InvalidPayloadException: No body available of type: org.w3c.dom.Document but has value: org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream@6c15234e of type: org.apache.camel.converter.stream.CachedOutputStream.WrappedInputStream on: Message: . Caused by: Error during type conversion from type: java.lang.String to the required type: org.w3c.dom.Document with value due org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Contenu non autorisé dans le prologue.. Exchange]. Caused by: due org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Contenu non autorisé dans le prologue.]&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213590#M10789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T14:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213591#M10790</link>
      <description>I must say that I'm confused since when I request the service directly in the browser, without Talend, I get json data 
  &lt;BR /&gt;&amp;nbsp; 
  &lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/old_route_20150814-1524.png"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAcq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144453iF8E822C996F80295/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAcq.png" alt="0683p000009MAcq.png" /&gt;&lt;/span&gt; &lt;/A&gt;&amp;nbsp; 
  &lt;BR /&gt;** the new header "Content-Type":"application/json" in the cHttp component Get_client doesn't resolve the problem, still getting the error&amp;nbsp; 
  &lt;BR /&gt; 
 &lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Md8f"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Md8f"&gt;OriginalPost.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213591#M10790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T14:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213592#M10791</link>
      <description>Your browser will only ever make a GET call. You are also not sending a payload or a body. When testing REST services that are anything other than GET you really need to use a tool that makes it easy to specify the http verb and supply a payload. Something like Advanced Rest Client (&lt;A href="https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo" rel="nofollow noopener noreferrer"&gt;https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo&lt;/A&gt;) for Chrome works for me.</description>
      <pubDate>Fri, 14 Aug 2015 14:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213592#M10791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T14:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213593#M10792</link>
      <description>I was actually using DHC rest Client to specify the HTTP Verb I want to use, sorry didn't mention it before 
&lt;BR /&gt;I used DHC Rest Client to make a direct POST (without using talend) in the service (in eclipse) &amp;nbsp; using json data, it works: 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/old_route_20150814-1537.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAWA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129138i9A31824F2D6018B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAWA.png" alt="0683p000009MAWA.png" /&gt;&lt;/span&gt;&lt;/A&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213593#M10792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T14:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213594#M10793</link>
      <description>You need to copy the exact settings you use in that to get it to work in Talend. I have just looked at that app and noticed that when you click on the JSON link under the payload, it sets the Content-Type up for you. This will need to be set when you run it via any other system. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAKH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147352i669B3EB1667AC24A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAKH.png" alt="0683p000009MAKH.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 14 Aug 2015 14:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213594#M10793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T14:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: cDynamicRouter and different endpoints</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213595#M10794</link>
      <description>well, I added a header in the chttp client component, as you can see in the snapshot, in &amp;nbsp;the POST_server component,&amp;nbsp;the configuration is already set to "application/json" 
&lt;BR /&gt;is there something else I should set? 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/json_20150814-1605.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA4W.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153041iCE8727905F3DF448/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA4W.png" alt="0683p000009MA4W.png" /&gt;&lt;/span&gt;&lt;/A&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/288558/json.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAcv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128554i92179349598F1B91/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAcv.png" alt="0683p000009MAcv.png" /&gt;&lt;/span&gt;&lt;/A&gt; 
&lt;BR /&gt;here's what I got in the debug: 
&lt;BR /&gt; 
&lt;PRE&gt;: org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@localhost:8087&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Route: base_cHttp_1 started and consuming from: Endpoint&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Route: cMessagingEndpoint_1 started and consuming from: Endpoint&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Route: cMessagingEndpoint_2 started and consuming from: Endpoint&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Route: cMessagingEndpoint_3 started and consuming from: Endpoint&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Total 4 routes, of which 4 is started.&lt;BR /&gt;: org.apache.camel.spring.SpringCamelContext - Apache Camel 2.15.2 (CamelContext: test2cDynamicRouter-ctx) started in 1.277 seconds&lt;BR /&gt;: cDynamicRouter.cLog_1 - Exchange]&lt;BR /&gt; :43:7: Le type d'élément "meta" doit se terminer par la balise de fin correspondante "".&lt;BR /&gt;: org.apache.camel.processor.DefaultErrorHandler - Failed delivery for (MessageId: ID-LFR204094-53910-1439560830380-0-3 on ExchangeId: ID-LFR204094-53910-1439560830380-0-1). Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange]&lt;BR /&gt;Message History&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;RouteId &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ProcessorId &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Processor &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Elapsed (ms)&lt;BR /&gt;   &lt;BR /&gt;   &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ] &lt;BR /&gt;   &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;] &lt;BR /&gt;   &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ] &lt;BR /&gt;   &lt;BR /&gt;  choice &lt;BR /&gt;   &lt;BR /&gt;Exchange&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Exchange&lt;BR /&gt;]&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Aug 2015 15:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cDynamicRouter-and-different-endpoints/m-p/2213595#M10794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T15:06:10Z</dc:date>
    </item>
  </channel>
</rss>

