« Stripping namespaces using XSLT | Main | Recursively replacing a string in all files in a directory [Linux] »

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

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.


 

Comments (1)

Manoj Nair:

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???

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on March 18, 2008 1:50 PM.

The previous post in this blog was Stripping namespaces using XSLT.

The next post in this blog is Recursively replacing a string in all files in a directory [Linux].

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle