how to export zip/Csv file using web services in talend

Two Stars

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
Community Manager

Re: how to export zip/Csv file using web services in talend

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
----------------------------------------------------------
Talend | Data Agility for Modern Business
Two Stars

Re: how to export zip/Csv file using web services in talend

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
One Star

Re: how to export zip/Csv file using web services in talend

I too have a similar requirement, can we achieve this using talend
Moderator

Re: how to export zip/Csv file using web services in talend

Hi,
It seems you are looking for Forum 32813: provide http file upload function.
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.
One Star

Re: how to export zip/Csv file using web services in talend

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.
Employee

Re: how to export zip/Csv file using web services in talend

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