XML to PDF conversion and create attachment in java mapping
I am trying to convert XML to PDF using XSLFO. The code works fine in local NWDS. I have uploaded the relevant jar files as well into PI (7.3 Version) and executed end to end scenario. The Scenario is from File to File. I am placing an XML File but the PDF File is is emptyin the target folder. So I have tried to create an attachment in SAP PI with below code.
OutputAttachments outAttach = arg1.getOutputAttachments();
Attachment attOut = outAttach.create("PDF_Output.pdf",outStream.toByteArray());
I couldnt see any attachments in the moni/channel monitoring. The Mapping seem to work successfully without any failures.
Can you please help me out in creating attachments in SAP PI. I have already referred to below links
N. Jayanth Kumar.