Sending a file to a service

bhaskar_annamalai.trimble.com's picture
Hi, We have the following requirement which we are trying to do with ESB, 1. poll a folder for a .csv file 2. when a csv file is found in the folder call a http post method and pass the file as a multi part message 3. we also need to send the file name as a parameter in the http url. hence the url needs to be modified dynamically. I understand that i have to use vfs transport for polling a folder for a file type. How can i configure ESB to send the file to HTTP post method? It would be of great help if someone can point to some samples for achieving the 2 and 3 steps. Thanks
rajika's picture

hi, #2. You'll need to check

hi, #2. You'll need to check MTOM/SWA sample to see how you can send a binary content in a HTTP post method. sample #51 in the ESB sample guide. #3. You'll need to write a small mediator to get this done. Rajika
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)