cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Receiver file name in AS2 adapter

Former Member
0 Kudos

Hi Experts,

How to get dynamic receiver file name in AS2 adapter. We need receiver file name same as of sender file name.

We tried selecting dynamic attributes file name but we are getting followin error in CC.

Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.seeburger.xi.connector.queue.TaskBuildException: Mandatory attribute dtAS2FileName is not present in XI message., Mandatory attribute dtAS2FileName is not present in XI message.

Thanks,

Hari

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for your reply.

We can not create UDF, because there is no mapping in our scenarion.

Regarding this thread solution , we do not know how to use Attribute mapper module. Could you please give me more details to fix this issue.

Thanks,

Hari

0 Kudos

Please check the SEEBURGER modules manual that is part of the shipment of your SEEBURGER EDI adapter. Usage of the AttribMapper is explained in that manual. As a quick example you may add the module to your module chain and use the dynamic attribute (namespace / name) as parameter name and set the required value.

http://seeburger.com/xi/AS2/fileName = myFileName

Former Member
0 Kudos

hi hari,

You can't do it manually. As both adapter are in different context.

You can go with UDF to slove ur problem.

Just extract the input file name using Dynamic configuration

Store that in some variable.

Use same name in the dynamic file name in AS2 receiver. Below code might be useful.

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtAS2FileName", "DYNFILENAME");
conf.put(key,strfilename);

Thanks

Jai

Edited by: Jaideep Baid on Apr 9, 2010 9:16 AM

former_member200962
Active Contributor
0 Kudos

Same problem solved here:

Regards,

Abhishek.