cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime Data from Proxy

Former Member
0 Kudos

Hi,

Is there any way that I can get sender, receiver, sender interface, receiver Interface, name sapce information from Provider/server Proxy? If you have any code that is great help.

Moni.

Accepted Solutions (1)

Accepted Solutions (1)

former_member241146
Active Participant
0 Kudos

Hi Moni.

Do you need this in ABAP ?

If it is in ABAP, YES!! It does!

You get the Context Object from Proxy Runtime.

Example:

DATA: v_server_context TYPE REF TO if_ws_server_context,

wl_message_id TYPE REF TO if_wsprotocol_message_id,

wl_xi_header TYPE REF TO if_wsprotocol_xi_header,

TRY.

v_server_context = cl_proxy_access=>get_server_context( ).

wl_message_id ?= v_server_context->get_protocol( if_wsprotocol=>message_id ).

wl_xi_header ?= v_server_context->get_protocol( if_wsprotocol=>xi_header ).

CATCH cx_ai_system_fault.

ENDTRY.

HERE, YOU GET THAT YOU NEED:

TRY.

wl_send_service = wl_xi_header->get_header_field( if_wsprotocol_xi_header=>sender_service ).

wl_rec_service = wl_xi_header->get_header_field( if_wsprotocol_xi_header=>receiver_service ).

wl_int_namespace = namespace = wl_xi_header->get_header_field( if_wsprotocol_xi_header=>interface_namespace ).

wl_interface = wl_xi_header->get_header_field( if_wsprotocol_xi_header=>interface ).

CATCH cx_ai_system_fault .

ENDTRY.

Follow a link about it:

Protocols

http://help.sap.com/saphelp_nwpi71/helpdata/EN/51/d5cd16235e4643ae8ec92395c4ad97/frameset.htm

Best Regards.

Bruno.

Former Member
0 Kudos

Youa are helpful

Thank you

Moni.

Answers (0)