Hello,
>>I have a requirement that, PI needs to read a mail having a PDF attachment and detach the attachment and place it in an application folder
It seems that ur interface is a by pass kind of scenarion - dump the attachment without reading the content?
If yes, then u don't need to create any ESR objects and just use payload swap bean to read the attachment as the main document and if u want to dump file on app server with the same name as that of attachment then check this blog -
Creating File Name from Mail Attachment using Standard Beans
Thanks
Amit Srivastava