Skip to Content
avatar image
-1
Former Member

How to pass dynamic HTTP header using proxy

Hi All,

I am looking at updating HTTP headers for outgoing service via proxy frame work. I can achieve this using CL_HTTP_CLIENT class, however we have our frame work in proxy so would like to achieve this using proxy.

We tried using interface IF_WS_HEADER, it populated data in SOAP Header. Please help me know how to populate HTTP Headers.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Mar 10, 2017 at 05:29 PM

    Hi Sowjanya,

    Your scenario is proxy -> ? I think this is something you can possibly manage on the receiver end depending on what adapter you are using based on this type of example: Dynamic HTTP Header

    Regards,

    Ryan Crosby

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 10, 2017 at 05:51 PM

    Hi Ryan,

    My scenario is consuming any external service using proxy. We have an intermediate system which is using SOAP protocol. We are consuming from ABAP system.Requirement is to populate dynamic information via HTTP header. Currently I am using CL_PROXY_CLIENT.

    We have an end point created in SOAMANAGER, executing this end point using this class. In this scenario we tried using interface IF_WSPROTOCOL_WS_HEADER~SET_REQUEST_HEADER, this sets the data as SOAP header however we want the data as HTTP header in the format as KEY and Value similar to CL_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD.

    Please let me know if you need any more details from me.

    Regards,

    Sowjanya.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 13, 2017 at 09:18 AM

    Hi,

    As far as I know, it is not possible to set the HTTP Header Fields via the proxy class. CL_HTTP_CLIENT should be fine.

    Regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 15, 2017 at 05:12 PM

    Hi Mark,

    We would like to use the proxy client to populate HTTP header.Any other way to populate HTTP header while using proxy.

    Regards,

    Sowjanya.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 15, 2017 at 05:12 PM

    Hi Experts,

    Appreciate your answer on this one.

    Regards,

    Sowjanya.

    Add comment
    10|10000 characters needed characters exceeded