cancel
Showing results for 
Search instead for 
Did you mean: 

PO Convert XML file extension to xml.pgp

adnanmaqbool
Contributor
0 Kudos

Dear All

We have a requirement to pick an XML file e.g. "test.xml", from sender directory, and to apply PGP encryption. Once the file encrypted using "localejbs/PGPEncryption" Module, encrypted file on receiver directory must be having extension as "test.xml.pgp"

I have tried to change the extension using Java Mapping, but it looks like that .pgp extension is applied by the system before applying encryption the using PGP Module.

adnanmaqbool
Contributor
0 Kudos

Hi All

Any possible solution for above problem.

Accepted Solutions (0)

Answers (2)

Answers (2)

vijay4sap
Explorer
0 Kudos

Since you have to place the file in target folder and then encrypt and change filename. I think you can achive 2 ways,

  1. Use a OS script to do these tasks and trigger it using the option OS script after file transfer in the target channel
  2. Use another interface to pick up this file and encrypt and place it in the same target directory.

Best Regards,

Paul.

vijay4sap
Explorer
0 Kudos

Hi Adnan,

you can encrypt the file at sender channel and provide a simple harcoded name in the target channel. Your target filename does'nt look like it needs dynamic filename.

Best Regards,

Paul.

adnanmaqbool
Contributor
0 Kudos

Hi Paul

Thanks for response, actually once a file is placed in directory, it must not repeat same file name again. Sequential Number is generated through F110 for each Payment Document or a new file.

Actually, the requirement is to place an XML File on a target directory, Encrypt the file and change the file type/extension to .xml.pgp