cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the decrypted response when performed an download operation from Ariba ITK to SAP CPI?

ashish46320420
Discoverer
0 Kudos

Hello,

I am Ashish Deshpande, SAP CPI Consultant from Bengaluru, India. We are trying to move our dependencies from Ariba ITK to SAP CPI. We have the CPI integration flows developed to perform both Upload operation to ITK and Download operation from ITK based on the blog link >> CPI-ITK blog

Upload Operation:

>> We were able to perform the upload operation successfully from CPI to ITK. We used a CSV file as input to the CPI iflow from external system and zipped it and sent to Ariba ITK in MIME encryption with details having SharedSecretkey, ITK EventName, FileName.

>> HTTP adapter with URL: https://***.ariba.com/Buyer/fileupload was used to send the upload request to Ariba ITK and in response we were able to see the file loaded successfully in ITK and we received the acknowledgement to CPI from Ariba ITK saying 'Request Completed'.

Download Operation:

>> While performing the download operation, We created a request with MIME encryption details having SharedSecretkey, ITK EventName, From Date, To Date(so that the download operation should be performed for given date range).
>> HTTP adapter with URL: https://***.ariba.com/Buyer/filedownload was used to send the download request to Ariba ITK and in response we are able to get the files, but in encrypted/corrupted/non-readable format! Please find below screenshot of ITK Download response.

To get the response in decrypted/readable format, do we (CPI) need to pass any parameter or attribute to Ariba ITK?

Thanks and Regards,
Ashish Deshpande.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi ashish,

1.Please add a header called content-type = multipart/form-data in the content modifier.

2. Use the mime multipart decoder component from pallet options.

3. Use the zip decompression and run the iflow it will work and will give the data in plain format.

ashish46320420
Discoverer
0 Kudos

Thanks Saikiran, It worked..:)

Also, instead of using MIME decoder and Zip decompression. i just used an zip splitter (Multiple zip files received) after the response. it has executed perfectly.

Answers (1)

Answers (1)

CarlosRoggan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,
apologize, I'm not familiar with Ariba.
Just wondering, it makes sense to transfer a file with encryption via the net.
You can probably decrypt it in the iFlow.
Would mean, you would have to get the required information like how it was encrypted and you would need the key to decrypt it yourself

Just my 2 cents, sorry if it doesn't help

Cheers