how to export zip/Csv file using web services in talend
Hi
I am using talend ESB open studio 5.3.0,right now I am exporting job as a webservice and this webservice is creating CSV file in a specific path but i am not able to send the Csv file data as a attachment
how to create a talend webservice job that will attach an output file for any desktop application.the moment the desktop application access the talend webservice it should suppose to get the output file
Hi
The job is executed on the server side, and the file is created on the server. After calling the webservice and creating the file from any desktop access remote, you need to consider what kind of protocol to be used to access the server and download the file, http? SSH? SCP? FTP?
Shong
Mr.Shong,
Thanks for your reply.I want to know how to create a webservice that will attach my output CSV file by using http/https protocal
with regards
Feroz
This example talks about uploading a CSV file and processing it using a route, I want opposite of that, in the response I want to provide a CSV file as attachment. Basically client requests for a file using SOAP/REST/HTTP request and my service running on Talend should provide them the file as attachment using SOAP/REST/HTTP response.
Hi, You should be able to do this with SOAP and/or REST/HTTP. Just decide on a format for the request, and retrieve the file of choice. For SOAP (cCXF) you should be able to send the file back as an attachment using the attachment portion of the Camel Exchange. For REST (cHTTP) you should be able to set the file to the Exchange body and set the Content-Type to "text/csv" or whatever is appropriate. http://camel.apache.org/cxf.html (search for attachment) Best Regards, Ben