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 4, 2018 in Talend by misc.edu04
• 1,450 points
2,051 views

1 answer to this question.

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 4, 2018 by v.liyyah
• 1,300 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 17, 2018 in Talend by code.reaper12
• 3,500 points
6,153 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,680 points
1,402 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 11, 2018 in Talend by geek.erkami
• 2,680 points
2,482 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,500 points
1,634 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,680 points
1,130 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP