SAP / cloud-sdk-java

Use the SAP Cloud SDK for Java to reduce development effort when building applications on SAP Business Technology Platform that communicate with SAP solutions and services such as SAP S/4HANA Cloud, SAP SuccessFactors, and many others.
Apache License 2.0
22 stars 14 forks source link

Can DwcHeaderProvider read the header from DwcHeaderContainer #554

Closed i036207 closed 2 months ago

i036207 commented 3 months ago

Issue Description

we will call other service without http request, e.g. when the application just started ,

Important information:

Thank you very much


Checklist

KavithaSiva commented 3 months ago

Hi @i036207,

As you don't have an incoming HTTP request, I would suggest you to populate CAP's Request Context based on the information available in the DwcHeaderContainer. Populating CAP's Request Context will also enable com.sap.cloud.sdk.cloudplatform.connectivity.DwcHeaderProvider to work out of the box.

@dimamost, I also see that there is a util-cap artifact available, which enables CAP support in DwC, would adding this dependency help in populating CAP's Request Context from DwcHeaderContainer automatically?

Regards, Kavitha

MatKuhr commented 2 months ago

While I think this essentially remains a valid feature request, I'd close this item, because if the integration is improved it would be an improvement on the util-cap package, at least for CAP users. If more input from the Cloud SDK is needed please feel free to ping me (e.g. in this thread) 😉