on 11-15-2011 9:50 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.