File attachment in OSB
970276Oct 23 2012 — edited Oct 24 2012Hello,
I need your help in dealing with File attachments in OSB using JCA integration.
My requirement is Read file as attachment with File Adapter and write to a remote location with FTP adapter.
I successfully created the business and proxy services to do so and it can transfer the file to new location too. But in the remote server I see the attachment reference instead of original file contents.
InputFile:
customer_1234.txt
---------------------------
asldfkjsadf
akdshfksajdh
aksjdfafasdf
output file in remote server:
cust_1234.txt
--------------------
<?xml version="1.0" encoding="UTF-8" ?><attachmentElement href="-1172596423/cust_12345.csv_1351025265000" xmlns="http://xmlns.oracle.com/pcbpel/adapter/file/attachment/"/>
so my question is how to get the contents of the file in the remote location instead of its reference when file attachment option is used. what could be in either business or proxy service to get it correctly.
Thanks,
Nex.