cancel
Showing results for 
Search instead for 
Did you mean: 

Sign SOAP Message

davidschievers
Participant
0 Kudos
197

Hi all,

we are facing a problem with a SOAP Webservice which requires a message which includes a signature in the SOAP Header. As far as we have tried we are not able to get this achieved by using the SOAP adapter. Can you advise/ help how we can achieve this on the CPI?

We would need something like this:

Regards
David

Accepted Solutions (0)

Answers (2)

Answers (2)

davidschievers
Participant
0 Kudos

Hi,

is there a way to add namespaces into the SOAP Envelope Tag?

For example:

<soap:Envelope xmlns:big=http://big.arvato-infoscore.de/BIG_V2.0 xmlns:oas1=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd xmlns:soap=http://www.w3.org/2003/05/soap-envelope xmlns:urn="urn:big-services-types:v2.0">

At the moment I am only getting <soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/>

Regards
David

CarlosRoggan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

unfortunately, I'm not familiar, just thought of noting down an idea.
I guess you've tried with the WS-Security, which actually should cover such requirement,
docu: https://help.sap.com/docs/cloud-integration/sap-cloud-integration/how-ws-security-works

If you really have specific requirement, why not try with the XML Digital Signature step?
https://help.sap.com/docs/cloud-integration/sap-cloud-integration/how-xml-signature-works
and
https://help.sap.com/docs/cloud-integration/sap-cloud-integration/sign-message-content-with-xml-digi...

Otherwise try manual approach with Groovy script, similar like here:
https://blogs.sap.com/2018/12/24/how-to-encryptdecrypt-xml-payload-with-aes256-cbc-and-rsa-algorithm...
or here:
https://blogs.sap.com/2023/04/20/sap-cloud-integration-understanding-simple-signer-2-verify-with-gro...https://blogs.sap.com/2023/04/20/sap-cloud-integration-understanding-simple-signer-2-verify-with-gro...

Please forgive I don't have better answer

Kind Regards,
Carlos

davidschievers
Participant
0 Kudos

Hi Carlos,

thank you!

The XML Digital Signature looks good, but we need this information’s in the SOAP Envelop Header. At the moment we are not able to create the message how the receiver is asking for.

Regards

David