cancel
Showing results for 
Search instead for 
Did you mean: 

How to read Sender system/service detail in Inbound Proxy

sanjaybadhai
Explorer
0 Kudos

Hello,

We want to read the sender system/service detail from the SOAP header in an Inbound ABAP Proxy.

Any clue on this?

Scenario: File -> PI -> ECC(Proxy)

we are in

PI 7.1

ECC 6.0

We want to avoid dynamic mapping.

Thanks

Sanjay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sanjay, use the [routing protocol|help.sap.com/saphelp_nw70ehp2/helpdata/en/de/e83076fef3491497ddd597732422cb/content.htm] of the ABAP proxy runtime in your proxy implementation:


        " to read sender from inbound message
       DATA: o_srv_ctx TYPE REF TO if_ws_server_context,
               l_sxi_addr TYPE sxi_address,
               mo_wsprotocol_routing TYPE REF TO if_wsprotocol_routing,

      CALL METHOD cl_proxy_access=>get_server_context
        RECEIVING
          server_context = o_srv_ctx.

      mo_wsprotocol_routing ?= o_srv_ctx->get_protocol( if_wsprotocol=>routing ).
      CALL METHOD mo_wsprotocol_routing->get_sender
        RECEIVING
          sender = l_sxi_addr.  " component SERVICE of this structure = sender business system

Regards, Martin

Former Member
0 Kudos

hi Martin,

++ for you.

few days ago I asked me it, but did not yet time to search. I tested it few minutes ago, that works perfectly!

Thanks.

Mickael

sanjaybadhai
Explorer
0 Kudos

thanks Martin!! It helped.

In the meantime I found another link on the same

Answers (0)