you can call service: wm.EDIINT:send to send pdf in as2
there is
data
contentType ← you can populate this with application/pdf
stream ← put your pdf as stream type here
Or you can send EDIINT:send to another internal dev/qa system and test that end if you receive that payload…How are you persisting this document in TN?
ok try that stream data send to smtp attachment and content type application/pdf…
Got stuck in one more issue while sending PDF file over AS2 via http.
Trading partner is getting filename as “smime.p7m”.
I need to provide the orginal filename into this filename variable.
Current situation:
"content-disposition = attachment; filename=smime.p7m
What I need: content-disposition = attachment; filename=INV_110829_00000004.csv
I am able to send another parameter like “filename1” in EDIINT Data header but trading partner functionality is only recognizing filename present in content-disposition only.
Is there any way to provide custom filename to filename present in content-disposition?
WE need to manually set the content-disposition value in MIME Header before hand.
This variable gets created at runtime ,so you need to create this variable in mime header and assign any value that you want to display.
You need to customize EDIINT:send service to have your own “Content-disposition”.
Open and lock EDIINT:send service …
Go to “wm.EDIINT.util.mime:getStreamMimeHeader” service in Sequence “Prepare to Submit”.
In pipeline out there is a document named “mimeHeader”. Add a new field “Content-disposition” inside that document and map it to your desired filename.
Run it and you can see customized filename in TN transaction.
fyi…you shouldn’t be customizing/edit the proprietary built in flows out of box packages provided and also this is not supported by SAG/advises customers unless you deal with at your own risk.
I forgot to mention one thing.
You need to create a copy of EDIINT:send service in your own package and rename it to something like EDIINT:customSend and make changes in that service only.
As suggested by RMG, SAG will not support any customization done to built in packages.
Did someone process and extracted encrypted PDF coming in from partner and generated a PDF file with all the data correctly.
Urgent help required, any help is appreciated.
Please check this thread and may be you need to use fop libraries handling pdf’s and base64 encode/decode
for handling application/pdf depends on what version of IS 8.x or 9.x or so.
Thanks RMG for the suggestion.
Sorted it out, use the stream generated after the bytes segregation(in the inbuilt Processmsg service) of the part and then channeling it to the folder location.