Skip to Content
0
Jul 18, 2019 at 05:30 PM

dynamic http header in receiver rest adapter

1672 Views

Hi gurus,I have a problem when I try to put the dynamic http header. If I put a static value, the interface works fine, but if I change that value to a variable, the interface throws an error. If the dynamic configuration is checked, the value of the variable is correct. Please, any suggestions?

The code in the UDF:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); 
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/REST","HeaderAuthorization");
conf.put(key1, token); 
return token;

Attachments

imagen-1.png (45.4 kB)
imagen-2.png (32.6 kB)
imagen-3.png (33.7 kB)
imagen-4.png (63.1 kB)
imagen-3.png (33.7 kB)