cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Dynamic Authorization key

abhay_aggarwal
Participant
0 Kudos

Hi All,

I have scenario RFC to SOAP or HTTP . While sending request with URL I want to send authorization key which will be generated dynamically at runtime . how Can I achive this?

Thanks..

Accepted Solutions (0)

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

As far as I know you can only place 10 (different username/password) entries in the authorization keys. This is done via dynamic configuration.

Hope this helps,

Mark

abhay_aggarwal
Participant
0 Kudos

Hi Dihiansan,

Thanks for reply Can you pls let me know how is this dynamic configuration can be done .. is there any thread ..

Regards

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Here is a sample code:

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP", "TAuthKey");

conf.put(key,Username);

Make sure the username is existing in your soap receiver cc under authentication keys.

Hope this helps,

Mark