on 04-29-2010 9:48 AM
Hi,
I've created an interface (Mail2Rfc), in which file is attached to incoming mail message. my basic reference was /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step which demonstrate how to implement getting attached file content via adaptor module.
my issue:
the file name can be changed, therefore the file_name parameter (required by adaptor module) can not be hard coded.
how can i bypass the issue?
Please advise,
Uri
you can use swap-key = payload-name which is always MailAttachment-1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
10x for your replay. I tried to implement the solution using:
swap.keyValue = MailAttachment-1
swap.keyValue = attachment;filename="MailAttachment-1.xml"
and i got :
BaseRuntimeException: Content is not allowed in prolog
when i changed the attached file name to ="MailAttachment-1.xml --> interface works OK.
plz advise,
Regards,
Uri
Hi,
10x for your replay.
plz clarify:
what is the module configuration i have to use? which Parameters & Parameters Values?
currently i'm useing:
swap.keyName=Content-Disposition
swap.keyName=Content-Description
swap.keyValue=attachment;filename="MailAttachment-1.xml";
swap.keyValue=MailAttachment-1
I tried to use keyName = payload-name instead of other keyName values, and interface was failing.
Regards,
Uri
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.