Skip to Content
Former Member
Jul 30, 2009 at 04:32 AM

Variable Transport binding - SOAP Sender Adapter


Hi All

have a scenarion where Sender System is sending Custom SOAP Header as below into P through SOAP Sender ChannelI.

And the requirement is to access the values coming in Header fields, example within Message Mapping need to Map Headername1 value to Outgoing structure.









Have checked the Paramter KEEP Headers in SOAP Adapter and in Adapter Specific Message Attributes have defined the following

Variable Header (XHeaderName1) = Header1

Variable Header (XHeaderName2) = Header2

Variable Header (XHeaderName1) = Header3

Now need to know what should be mentioned in the UDF in the Message Mapping for accessing Dynamic Configuration. Will these headers mentioned will be a part of Dynamic Configuration or not ?

Using the below UDF and its failing in Message Mapping - kindly suggest the corect way of achieving the same

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

DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "", "XHeaderName1");

String value = conf.get(key1);

return value ;

Appreciate response in this regard