on 07-04-2008 9:27 AM
Hi all
I want to send my xml file name in the payload data.
is there anyway I can do it?
it is very simple
Goto your sender communication channel -->Advanced Tab
Check on the Adapter Specific Message Attribute
In the chek boxes that follow tick the one called File name
To check the filename in payload
Goto sxmb moni, double click on your message
in the window that opens go on Dynamic Configuration
You will find your file name in SOAP Header called FileName
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes Deepak,
You will need to use Adapter Specific Message Attribute in the Adapter. And then in the mapping use this UDF to get the filename and map it to the file name field in the target side.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
You can refer to the blog by Michal for the same:
Regards,
Sanjeev.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.