on 08-05-2006 8:50 AM
Hello,
I am trying to use Adapter-Specific Message Attributes (ASMA) to retrieve filename from the adapter. Every place which talks about the ASMA has the samecode.
I have activated in the file adapter and checked box for filename. The message SOAP Header has Dynamic Configuration populated for FileName, still my map gives me <b>null</b> value when I execute this.
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;
Any ideas.
Thanks
Shravan
Hi Shravan,
do you execute the piece of code in a message mapping
in the interface determination ?
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Shravan,
if you're testing in message mapping, you'll always get an error, since there's no message header in message mapping itself. Try using Interface Mapping test for this.
Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.