cancel
Showing results for 
Search instead for 
Did you mean: 

How to get SOA Manager Logical Port Authentication Details

Former Member
0 Kudos

Hi,

Can anyone help me how to retrieve user logon in logical port? In tcode SOAMANAGER > Service Administration > Web Service Configuration then Search by Consumer Proxy then Display. I would like to get the userid and password in ABAP program. Can someone help me know in what table were they stored?

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Kudos

You won't be able to get the password (maybe in versions older than 7.40 it could be still possible, but it's fully protected nowadays).

Configurations are possibly stored in tables SRT_CFG_DIR, SRT_RTC_BNDG, SRT_RTC_CFGVAL, SRT_RTC_DATA, etc., but you may obtain them easily by starting an SQL trace (transaction ST05) and you'll then also be able to see the standard ABAP code which reads them.

Answers (1)

Answers (1)

0 Kudos

Hi, Did you get the solution to fetch the username and password ????

renato_miranda
Explorer
0 Kudos

Hi, I don't know if you still need this, but this is how I did it:

DATA: cache_version TYPE i,
config_properties TYPE srt_rt_properties,
connectivity_type TYPE srt_wsp_connectivity_type,
interface_name TYPE qname,
global_properties TYPE srt_rt_properties,
operation_mappings TYPE srt_rt_operation_mappings,
feature_uris TYPE soap_uri_list,
mapping_target_operations TYPE srt_wsp_mapping_target_ops_rt,
mapping_target_proxy_lps TYPE srt_wsp_mapping_trg_prx_lps_rt.

SELECT SINGLE binding_key INTO @DATA(lv_binding_key)
FROM srt_cfg_cli_asgn
WHERE lp_name EQ 'YOUR_LOGICAL_PORT_NAME'
AND proxy_class EQ 'Z_YOUR_PROXY_CLASS_NAME'.

IF sy-subrc IS INITIAL.

SELECT SINGLE * INTO @DATA(lv_config)
FROM srt_rtc_data_rt
WHERE binding_key EQ @lv_binding_key
AND operation EQ ''.

IF sy-subrc IS INITIAL.

IMPORT cache_version = cache_version
config_properties = config_properties
connectivity_type = connectivity_type
interface_name = interface_name
global_properties = global_properties
operation_mappings = operation_mappings
mapping_target_operations = mapping_target_operations
mapping_target_proxy_lps = mapping_target_proxy_lps
feature_uris = feature_uris FROM DATA BUFFER lv_config-config_data.

READ TABLE global_properties ASSIGNING FIELD-SYMBOL(<fs_user>) WITH KEY name = 'AuthenticationMethod.Basic.Username'.
IF sy-subrc IS INITIAL.
READ TABLE global_properties ASSIGNING FIELD-SYMBOL(<fs_pswd>) WITH KEY name = 'AuthenticationMethod.Basic.Password'.
IF sy-subrc IS INITIAL.
<fs_user>-value = 'YOUR_WS_USER_NAME'.
<fs_pswd>-value = 'YOUR_WS_PASSWORD'.

EXPORT cache_version = cache_version
config_properties = config_properties
connectivity_type = connectivity_type
interface_name = interface_name
global_properties = global_properties
operation_mappings = operation_mappings
mapping_target_operations = mapping_target_operations
mapping_target_proxy_lps = mapping_target_proxy_lps
feature_uris = feature_uris TO DATA BUFFER lv_config-config_data.

MODIFY srt_rtc_data_rt FROM lv_config.
COMMIT WORK AND WAIT.

ENDIF.
ENDIF.

ENDIF.
ENDIF.