cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I would like to consume an oData service from within my SCP Workflow. For this purpose, I have made the necessary destination configurations and added the associated values in the workflow's "Service Task properties".

I don't see any placeholders for the oData service request headers such as "X-Requested-With","Content-Type", "Accept" etc. Where should these be configured?

0 Likes
View Entire Topic
tobias_breyer
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Kavya,

specifying headers is currently not possible. You would have to add them by other means, such as building a wrapper service or using middleware like Cloud Platform Integration.

Additionally, the headers Content-Type and Accept are not of much use, because service tasks in Cloud Platform Workflow are generally only meant for JSON-based REST services, i.e. the runtime engine already sets Content-Type and Accept to application/json.

From the "X-Requested-With" header I guess that you might want to disable CSRF-protection (see https://help.sap.com/viewer/68bf513362174d54b58cddec28794093/7.4.19/en-US/b35c22518bc72214e10000000a.... I wonder why you try to do this. Doesn't the built-in CSRF-token handling help you in setting the CSRF headers? See the help section on service tasks at

https://help.sap.com/viewer/f85276c5069a429fa37d1cd352785c25/Cloud/en-US/a8a6267f537841fbb22c159ba2a...

Best regards,

Tobias