Sign the Message Content with XML Digital Signature in Oracle Integration Cloud (OIC)
Summary:
Hi Team,
I have a requirement to sign the XML body with an XML Digital signature using privateKey.
Is there any SOAP or Rest API to handle this? OR Any other solution to handle in OIC.
Here is an example:
----------------------
<?xml version="1.0"?>
<PaymentMessage>
<PaymentTransaction>
<Header>
<Sender>xx123</Sender>
<Receiver>abc..</Receiver>
<TimeStamp>2022-08-22T04:42:14</TimeStamp>
</Header>
<Body>
<TransactionData>
<TransactionReference>202208260252023</TransactionReference>
<ValueDate>170327</ValueDate>
<Currency>SAR</Currency>
<Amount>189.05</Amount>
<CustomerName>abc..</CustomerName>
<CustomerAddress1>123..</CustomerAddress1>
</TransactionData>
</Body>
<Signature> <SignatureValue>MIIKgQYJKoZIhvcNAQcCoIIKcjCCCm4CAQExCzAJBgUrDgMCGgUAMIIE1wYJKoZIhvcNAQcFoIIEyASCBMQ8Qm9keT4KPFRyYW5zYWN0aW9uRGF0YT4KPFRyYW5zYWN0aW9uUmVmZXJlbmNlPjIwMjIwODI2MDI1MjAyMzwvVHJhbnNhY3Rpb25SZWZlcmVuY2U+CjxWYWx1ZURhdGU+MTcwMzI3PC9WYWx1ZURhdGU+CjxDdXJyZW5jeT5TQVI8L0N1cnJlbmN5Pgo8QW1vdW50PjE4OS4wNTwvQW1vdW50Pgo8Q3VzdG9tZXJOYW1lPlJpeWFkIEJhbms8L0N1c3RvbWVyTmFtZT4KPEN1c3RvbWVyQWRkcmVzczE+T2xheWE8L0N1c3RvbWVyQWRkcmVzczE+CjxDdXN0b21lckFkZHJlc3MyPlJpeWFkaDwvQ3VzdG9tZXJBZGRyZXNzMj4KPEN1c3RvbWVyQWRkcmVzczM+S1NBPC9DdXN0b21lckFkZHJlc3MzPgo8Q3VzdG9tZXJBY2NvdW50TnVtYmVyPjIwMTE2MzkyNjk5MDE8L0N1c3RvbWVyQWNjb3VudE51bWJlcj4KPEJlbmVmaWNpYXJ5QmFuaz48L0JlbmVmaWNpYXJ5QmFuaz4KPEJlbmVmaWNpYXJ5QmFua0FkZHJlc3MxPjwvQmVuZWZpY2lhcnlCYW5rQW</SignatureValue>