on 02-09-2010 2:17 PM
Hi All,
I have a simple scenario (mail to file), in which pdf file is being attached to incoming mail message. Attachment is "downloaded" (using localejbs/AF_Modules/PayloadSwapBean adaptor module(.
Since no mapping required, the used "Integrated Configuration".
my scenario works fine, no ERR and pdf file is created at target directory.
When I'm trying to open the file the adobe is showing to following err msg:
"Adobe Reader could not open 'xi_output.pdf' because it is either not a supported file type or because the has been damaged.."
What can be done, to bypass the problem? Please advice.
Regards,
Uri
please note:
I've re-tested the scenario with xml file (as mail attachment) and it works OK.it seems only option is that the attached pdf can not be swapped (via localejbs/AF_Modules/PayloadSwapBean).
is it correct assumption?
Regards,
Uri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uri,
I have few doubts, please re-check
1. Are you able to open the pdf in the mail?
2. What is the content-type of pdf attachment in SXMB_MONi, Try to change it to application/pdf before you write it as a pdf. You can try to use MessageTransformBena before payloadswapbean in receiver channel
Regards
Suraj
Hi,
>>>What can be done, to bypass the problem? Please advice.
if you're sending the correct pdf probably the swappayload bean didn't work in your case
try to open xi_output.pdf with notepad and if you see the main message (and not some binary data) then
the bean didn't work
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your replay. Your observation was absolutely correct!
I used /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step (yours) as a reference; it worked OK (while I used it in other scenario). The only difference is that my current scenario is based on "Integrated Configuration", does it make sense?
What can be done?
Regards,
Uri
Hi,
>>>The only difference is that my current scenario is based on "Integrated Configuration", does it make sense?
hmm this should work in the very same way with ICO but I never tested it with it frankly speaking
but the adapter module works on the same adapter as without ICO so why should there be a difference
(the swaping is done before the message is delivered to the IE or AAE processing)
but you can try writing a note to SAP to crosscheck if this module works with local AAE
Regards,
Michal Krawczyk
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.