Hi Amit, You can use some of the out of the box mediators to do the transformation and use call mediator / file connector to write the file.
[1] https://docs.wso2.com/display/ESB500/Smooks+Mediator [2] https://docs.wso2.com/display/ESB500/Sample+271:+File+Processing [3] https://docs.wso2.com/display/ESB500/XSLT+Mediator On Thu, Dec 22, 2016 at 10:44 AM, Amit Rajvanshi < [email protected]> wrote: > Hi Malaka, > > > > Case is that I am receiving one xml file from SFTP server and based on the > content I am fetching some other data from http url and then I need to > create csv flat file based on content received from http url. > > So you can take it as file content as part of request then create csv and > send it to another SFTP using endpoint. > > > > Best regards, > *Amit Rajvanshi* > Eperium Business Solutions (I) Pvt Ltd, > B-13, Sector 57, > Noida (U.P.) - 201301 > Phone: +91-120-4737401 <+91%20120%20473%207401> > Web: www.eperiumindia.com > > *Shaping future commerce together* > > This message may contain confidential or legally privileged information. > In the event of any error in transmission, unauthorized recipients are > requested to contact the sender immediately and not to disclose or make use > of this information. No warranties or assurance are made or given as to the > accuracy of the information given or in relation to the safety of this > e-mail and any attachments. No liability whatsoever is accepted for any > consequences arising from this e-mail. > > > > *From:* Malaka Silva [mailto:[email protected]] > *Sent:* 22 December 2016 10:24 > *To:* Amit Rajvanshi > *Cc:* WSO2 Developers' List > *Subject:* Re: Flat file WSO2 > > > > Hi Amit, > > > > Do you get the file content as part of request or do you need to generate > it dynamically? > > > > Can you explain further your use case please? > > > > On Wed, Dec 21, 2016 at 10:47 AM, Amit Rajvanshi < > [email protected]> wrote: > > Hi Malaka, > > > > Do we have some out of the box mechanism to write csv (Flat files) in WSO2. > > Any URL or guidelines will be appreciated. > > > > Or we need to use FileWriter in java using custom mediator ? > > > > Best regards, > *Amit Rajvanshi* > Eperium Business Solutions (I) Pvt Ltd, > B-13, Sector 57, > Noida (U.P.) - 201301 > Phone: +91-120-4737401 <+91%20120%20473%207401> > Web: www.eperiumindia.com > > *Shaping future commerce together* > > This message may contain confidential or legally privileged information. > In the event of any error in transmission, unauthorized recipients are > requested to contact the sender immediately and not to disclose or make use > of this information. No warranties or assurance are made or given as to the > accuracy of the information given or in relation to the safety of this > e-mail and any attachments. No liability whatsoever is accepted for any > consequences arising from this e-mail. > > > > > > > > -- > > > > Best Regards, > > > Malaka Silva > Senior Technical Lead > M: +94 777 219 791 <077%20721%209791> > > Tel : 94 11 214 5345 > > Fax :94 11 2145300 <011%202%20145300> > > Skype : malaka.sampath.silva > > LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 > > Blog : http://mrmalakasilva.blogspot.com/ > > > > WSO2, Inc. > > lean . enterprise . middleware > https://wso2.com/signature > > http://www.wso2.com/about/team/malaka-silva/ > <http://wso2.com/about/team/malaka-silva/> > > https://store.wso2.com/store/ > > Don't make Trees rare, we should keep them with care > -- Best Regards, Malaka Silva Senior Technical Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware https://wso2.com/signature http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> https://store.wso2.com/store/ Don't make Trees rare, we should keep them with care
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
