cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch HTTP header in SOAP to REST call

former_member198060
Participant
0 Kudos

Hi all,

We have a synchronous SOAP to REST call.

Is there a way to fetch HTTP header values that are coming back in a synchronous response message? Specifically we need to store the C-XSRF-Token which is populated in the header of a response message. We would like to access this header field in the response mapping. Can I somehow achieve this? I've tried to set the C-XSRF-Token in the SOAP Sender as variable binding with "keep headers" option but the field does not appear in the dynamic configuration of the response message.

Accepted Solutions (0)

Answers (4)

Answers (4)

maheswarareddykonda
Active Contributor
0 Kudos

Hi Peter,

if your refering REST response HTTP Header information then you can not fetch those details by SAP REST adapter.

current Rest adapter is not support the same and SAP had enhanced already and ready to release coming November2015.

Since its UI change is required for this code fix, they could not able to realease any patches

former_member198060
Participant
0 Kudos

Thanks for your responses, I had set the ASMA in the sender channel, but still the field is not populated.

I am not sure if I can use the AddSOAPHeaderBean.

My main problem is: I don't want to set header fields, but to read them. How to retrieve the information at all which are inside the HTTP header of the REST response? I am not sure how I could access them for example in the AddSOAPHeaderBean.

iaki_vila
Active Contributor
0 Kudos

Hi Peter,

You are right, i misunderstood your requirement.

You can try using the GET variable, check this document

Regards.

iaki_vila
Active Contributor
0 Kudos

Hi Peter,

You can add a header parameter with this module . Pay attention, that you will change the SOAP header, not the http header.

Regards.

Former Member
0 Kudos

Did you also set the Adapter Specific Message Attributes (ASMA)? I think this is how you can link the header values you are looking for to the dynamic configuration objects.