Skip to Content
-1

How to pass dynamic HTTP header using proxy

Mar 10, 2017 at 05:22 PM

131

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Ryan Crosby Mar 10, 2017 at 05:29 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 10, 2017 at 05:51 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Mark Dihiansan Mar 13, 2017 at 09:18 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 15, 2017 at 05:12 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 15, 2017 at 05:12 PM
0

Hi Experts,

Appreciate your answer on this one.

Regards,

Sowjanya.

Share
10 |10000 characters needed characters left characters exceeded