Reading only headers in an File/FTP Adapter and skipping the payload

Ramkumar Menon
Director, Product Strategy

At times, you might have a requirement where you only need to read the file headers[file name and directory] and ignore the payload while using an inbound file/ftp adapter.

For this purpose, you need to add UseHeaders="true" on the <jca:operation> in the adapter wsdl.

This ensures that the payload is skipped while reading the file.

Then you can follow the usual steps to read the headers [through the inputHeaderVariable on the receive activity to retrieve the headers.


Join the discussion

Comments ( 2 )
  • Manoj Nair Tuesday, December 23, 2008
    Hi Ram,
    I just tried out this blog .. I took a file adapter that reads a file and I have added the attribute useheaders to true in the jca operation tag.
    and then connected the receive to the partnerlink..
    The thing is like I am receiving an opaque element not the headers..
    Can you throw some light???
  • Broderick Raulino Tuesday, April 26, 2011
    I would like to thank you for the efforts you've put in writing this blog. I am hoping the same high-grade website post from you in the upcoming also. Actually your creative writing skills has inspired me to get my own web site now. Really the blogging is spreading its wings rapidly. Your write up is a good example of it.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.