on 10-26-2010 5:19 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.