Streaming Rest API call with Talend

Highlighted
One Star

Streaming Rest API call with Talend

Hi,

 

I'm testing a Streaming rest service using talend tRest component. My sample request payload will be like this

{

"id" : "someId",

"records":[ {   "a1":"data1"},{ "a1":"data2"}]

}

I want to know, is there any talend rest client component which support streaming API call. it seems tRest component waits till all the array which is sent over payload is processing to write the response to the response connection. I also tried with tRestClient, but there I could not Map the array of objects using tXmlMap. that means

i tried to generate 

"records":[ { "a1":"data1"},{ "a1":"data2"}]

but actually got:

"records":"[ { "a1":"data1" }, { "a1":"data2"}]

 

can anyone give any solution? Thank you

Highlighted
Moderator

Re: Streaming Rest API call with Talend

Hi,

Could you please post your job design screenshots into forum which will be helpful for to understand your current situation?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog