Accessing a array of String type using tExtractXMLField component

0 votes

I have a job where I have a tREST component which will be responsible for executing a POST HTTP Request and retrieving an XML file. I also have a tExtractXMLField component which will read a tag from the retrieved XML file. What I want from this job is to, store all the values from tagX and perform an HTTP POST with the same value in the component body. Can someone help me out with this?

May 3, 2018 in Talend by misc.edu04
• 1,380 points
189 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You can perform this by setting up your job like below:

image

You can extract the tagX field and use a String field called “tagX” which you can throw to the output stream.

In the tHttpRequest component, specify the following configurations:

image

Once it’s done, through the tFlowToIterate component you can easily convert a row(Main) into iterate connection type. It will be implicitly triggered each time the data comes and send the data flow to the next tJava component which in turn will print “Hello World” with each incoming row.

image

This flow will store the data into the globalMap variable temporarily and will generate the HTTP request automatically based on the number of incoming rows.

Hope this helps!!

answered May 3, 2018 by v.liyyah
• 1,290 points

Related Questions In Talend

0 votes
1 answer

How to load a set of files into database using Talend

Using tFileList component,  you can read all the files present ...READ MORE

answered Apr 16, 2018 in Talend by code.reaper12
• 3,450 points
315 views
0 votes
1 answer
0 votes
1 answer

Connecting tJIRAOutput component using Talend

Your entire configuration is correct apart from ...READ MORE

answered Apr 19, 2018 in Talend by geek.erkami
• 2,320 points
94 views
0 votes
1 answer
0 votes
1 answer

tWaitForFile component insufficiency in Talend

Regarding your first issue, tWaitForFile component provides ...READ MORE

answered Apr 10, 2018 in Talend by geek.erkami
• 2,320 points
169 views
0 votes
1 answer

Database Migration In Talend

You can easily migrate your database by ...READ MORE

answered Apr 18, 2018 in Talend by code.reaper12
• 3,450 points
49 views
0 votes
1 answer

Parameterizing a tOracleInput component using Talend

I think you should use context variables. ...READ MORE

answered Apr 18, 2018 in Talend by geek.erkami
• 2,320 points
110 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.