2

when implementing a SAP Gateway Service (using DPC_EXT Classes), I'd like to access some custom cookies.

But I dont seem to be able to access them...

Using following code

lo_faqcade = /iwbep/if_mgw_conv_srv_runtime~get_dp_facade( ).
lo_facade->get_request_header( ).

I get all the HTTP Request headers (Except the Cookie Header, which always seems to be empty here)

9
  • If the data contained in the cookie was in the backend, I’d get it from there ;)
    – iPirat
    May 23, 2018 at 5:15
  • 1
    PS: please don’t start the discussion why I a cookie is being used. A custom header is not an option either. The question is how to get hands on the cookie inside the request processing layer.
    – iPirat
    May 23, 2018 at 5:20
  • not sure but did you see that 2 methods exists from facade class /IWBEP/CL_MGW_DP_FACADE? /IWBEP/IF_MGW_DP_FACADE~GET_REQUEST_HEADER (returns a list of all request headers of the current request) and /IWBEP/IF_MGW_DP_INT_FACADE~GET_REQUEST_HEADER (returns the request header of current service call) ... might "all request" headers solve your issue?
    – dotchuZ
    May 30, 2018 at 9:52
  • I did try one of the two (see original post) but not sure which of the two interfaces is hidden behind the get_dp_facade call. Will certainly try that. Thx!
    – iPirat
    May 30, 2018 at 10:06
  • did it help solving your issue?
    – dotchuZ
    Aug 15, 2018 at 8:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.