on 10-15-2015 10:42 AM
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” :
[{
"Name":"xxxx",
"SNO":"xxxx",
"Type":"cccc",
"TailNumber":"ccc",
"RegNumber":"",
"Fleet":"a12w"},
......
}]
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.
Regards,
SP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.