cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass security header in SAP CPI

NareshDasika18
Participant
0 Kudos

Hello All,

While posting a message from SAP CPI to WorkForce using SOAP receiver adapter, receiving following error message:

"org.apache.cxf.binding.soap.SoapFault: WSDoAllReceiver: Incoming message does not contain required Security header"

The same Interface works fine from SAP PO 7.5. As part of Interface determination we were passing Username, Password and Nonce details as parameterized mapping dynamically in PO. Option "Do not use SOAP envelope' selected in PO SOAP receiver channel.

In CPI , before SOAP receiver channel, I have added Content Modifier in which I have added 3 constants to pass Username, Password and Nonce similar to PO. But it looks like it is not considering during run time.

How can I pass these security headers during runtime in CPI?

Thanks and Regards,

Naresh Dasika

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member666312
Active Participant
0 Kudos

Hi Naresh,

You have to add the Soap headers using the script, with the content modifier you cannot pass that as SOAP Auth headers.

https://blogs.sap.com/2019/04/08/cloud-integration-accessing-and-setting-soap-headers-in-an-integrat...

https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/8a2827d030b345f998199774266...

Thanks and Regards,

Vijay

r_pokharna
Discoverer
0 Kudos

Hi Naresh,
Did you got any reference or solution for the query you posted?
I'm also facing the same issue.