cancel
Showing results for 
Search instead for 
Did you mean: 

Error in SOAP Sender adapter SAP CPI

faisaljamal1
Explorer
0 Kudos

Dear Experts,

I have a SOAP to SOAP scenario in SAP CPI. The target web service expects the request with SOAP envelope along with wsse:Security headers. This is built in the source system and sent to CPI as it is. The request coming to CPI looks something like this:

faisaljamal1_0-1715871068465.png

But it is currently failing at the SOAP sender adapter with the following error:

faisaljamal1_1-1715871150387.png

Could someone please explain what needs to be done? Currently I am not able to understand why the request is not even going into the iFlow. It simplay always fails at the sender SOAP adapter. It works when I remove the security headers from the SOAP envelope. I have set the "Service Definition" as Manual in the SOAP sender. Any help would be appreciated. Thanks!

Regards,

Faisal

 

View Entire Topic
Andrzej_Filusz
Contributor
0 Kudos

Hi Faisal,

This is a well-known issue. The only workaround I know is to use API Management.
In APIM you can configure API proxy between your source system and CPI.
After successful authentication you can remove Web Service Security record from your message and add a basic authentication.
Of course you will have to add WS-Security on the CPI side. You can configure it in your SOAP receiver adapter in the WS-Security tab.
If it wouldn't be possible then you can store WS Security record somewhere in the message (maybe encoded in base64) in APIM and then restore this record on CPI side.

BR,

Andrzej