cancel
Showing results for 
Search instead for 
Did you mean: 

Can sender file adapter read plain files with different structure?

Former Member
0 Kudos

Hej experts,

I am facing the following sutiation in FIle-to-Mail scenario:

Bank sends two types of file : CONTRL and BANSTA to the same directory where XI shall pick , map to other stucture (mail structure ) and send mail.

You can not identify the file type( CONTRL or BANSTA) from file name - only from file content.

Would it be possible for XI to pick up file, check the structure and select the right XML structure to transform to?

Any other solutions?

Thak you for your help,

Natlaiya

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member200962
Active Contributor
0 Kudos
You can not identify the file type( CONTRL or BANSTA) from file name - only from file content.
Would it be possible for XI to pick up file, check the structure and select the right XML structure to transform to?

If not wrong even XI/ PI cannot understand it.....if you say you can implement an adapter module to do the file conversion....even in that case you will need to know the file format....do you need to implement any conversion on the file?

Regards,

Abhishek.

Shabarish_Nair
Active Contributor
0 Kudos

one option is to read the file using the same adapter and then instead of graphical mapping use java or xslt mapping.

Thus the structure basically will be ignored.