Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A


Hi Experts,

I have a scenario like below:

SAP --> PI  --> 3rd party (REST )

Requirement is once thirdparty receives request from PI, it sends response(JSON message) in encrypted format.

I need to decrypt my response and againa want to convert that to xml and send back to SAP

For decrypting, i already have a java code.

Response Json strucutre looks:

For successful response:


“serviceName” : ”xxxxx”,

“function” :  “aaaa”,

“responseStatus” : ”Success” ,

“errorMessages” : “”

“results” :











For failed response :


“serviceName” : ”xxxx”,

“function” :  “aaaa”,

“responseStatus” : ”failure” ,

“errorMessages” : “Reason for failure”

“results” : []


I have 2 ideas:

1. write a module bean to decrypt and converto to xml

2. read response as a string and using java mapping, convert that to xml

I have little knoeledge on Java, so requesitng some experts help.



Former Member
Not what you were looking for? View more on this topic or Ask a question