esb service with file download

One Star

esb service with file download

hi,

what could be the best way to offer an excel file download via talend webservice. Could that be made via restful service like trestrequest -> {some input} -> tfileoutputexcel -> txmlmap -> trestresponse?

Any ideas?
thanks mic
Ten Stars

Re: esb service with file download

Here is a very basic example that will allow you to do this. The layout of the job is shown in the screenshot below.



The configuration of the tFileInputRaw is below....



The tConvertType component converts the output from the tFileInputRaw from Object to byte[].

The tRestResponse is configured as below...




On the Advanced Settings tab you need to set some Response Headers.....



When you run the service and call it through a browser, it will return your file.
One Star

Re: esb service with file download

thats it. many thanks
mic

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

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read