If incoming file has .xml extension than XML adapter gets a "node" input object. If it has any other extension than "ffdata" input object is passed to target service. Three other useful parameters that are passed to file-polling target service are Content-type {java.lang.String}, originalFileName {java.lang.String}, and fileName {java.lang.String}
Content-Type is particularly useful. It depends on extension on incoming file. following are some of the extensions that I attempted.
| extension | Content-type |
| *.txt | text/plain |
| *.dat | null |
| *.xml | text/xml |
| *.htm | text/html |
| *.zip | application/zip |
I have not attempted other extensions but that will be worth trying. Please send me results for any other extensions that you try.
No comments:
Post a Comment