cancel
Showing results for 
Search instead for 
Did you mean: 

How to add SOAP Header data to an External Webservice call from ABSL

former_member307927
Discoverer
0 Kudos

Hi C4C community,

I'm facing the following problem. I'm trying to call an external Webservice from C4C (in ABSL) which is using SOAP header authentication. When I call the service from for example SOAP UI then I'm able to provide the necessary data and everything works fine (See below)

When I try to call the same service from  ABSL code then I'm only able to pass the parameters in the SOAP body and will never be able to authenticate myself which results in errors. The problem is already visible when I try to test the Webservice from the SAP Cloud Applications Studio (See below). As can be seen there is no possibility to add SOAP Header parameters. Neither do I have the possibility to add them in ABSL (or I don't know how to do this)

Is this a limitation of C4C / ABSL or is there a way around this? We are able to make things work by using HCI or PI and let them handle the it, but that's not the preferred solution.

Please let me know if there is a way around this.

Kind regards,

Sandor van der Neut

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Sandor,

currently we're facing a similar issue: we'd need to create a SOAP header consisting of wsse:Security, wsse:Username, wsse:Password XML elements.

Did you find any solutions to create a SOAP header?

The solution proposed above is valid, but we'd like to access the external web service directly from C4C, without any additional developments.

Most probably I'll raise an incident to get some advice from SAP.

Best regards,

Christian.

former_member307927
Discoverer
0 Kudos

Hi Christian,

Unfortunately I still haven't found a solution to solve this directly from C4C. Maybe you can try to raise an incident by SAP. But i'm starting to think it is impossible for now, but I never received this as an official answer from SAP.

Hopefully it will be incorporated in a new release.

Kind regard,

Sandor van der Neut

Former Member
0 Kudos

Hi Sandor,

thanks for the quick reply!

I've found one Statement from in this thread

But nevertheless I'd like to receive an "official" answer through SAP Cloud Support - I'll update this thread accordingly.

Best,

Christian.

Former Member
0 Kudos

Hi S. van der Neut,

We have same requirement to consume External Web Service into C4C but this is not possible through SDK.

We have achieve using ECC web services. If you have SAP ECC system in your case please follow below Steps:

1) Consume Same Web Service in ECC and create ECC RFC function module.

2) Create WSDL file for that RFC function module.

3) Download and Consume in C4C via SDK.

In out case its working fine using above option.

I hope this will be helpful to you.

Regards,

Mithun