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

Variable Transport binding - SOAP Sender Adapter

607 Views

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.

<soapenv:Header>

<Header1>S1</Header1>

<Header2>S2</Header2>

<Header3>S3</Header3>

</soapenv:Header>

<soapenv:Body>

u2026..

</soapenv:Body>

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( "http://sap.com/xi/XI/System/SOAP", "XHeaderName1");

String value = conf.get(key1);

return value ;

Appreciate response in this regard

//Swetank