Tuesday, July 1, 2008

webMethods flatfile adapter

A little tit-bit on flatfile adapter
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.







extensionContent-type
*.txttext/plain
*.datnull
*.xmltext/xml
*.htmtext/html
*.zipapplication/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: