cancel
Showing results for 
Search instead for 
Did you mean: 

ASMA in HTTP Sender channel

PratibhaK
Participant
0 Kudos

Hi,

We have a HTTP to FILE scenario.

A 3rd party application is sending data to our PI server on HTTP URL:

http://host:port/sap/xi/adapter_plain?namespace=&interface=&service=&party=&agency=&scheme=&QOS=EO&q...

We want to retain the file name of the sender in the receiver.

Please guide on how the ASMA should be configured so that the file generated by File receiver channel has the same name as that of the file sent by 3rd party application.

Please note: This scenario does not involve mapping and hence, ESR objects have not been configured.

Please help as this issue needs to be addressed urgently.

Thanks,

Pratibha

Accepted Solutions (0)

Answers (1)

Answers (1)

PratibhaK
Participant
0 Kudos

Hi,

In the HTTP URL, we have added 1 field : FileName that carries the value for the file name.

In HTTP sender, we have activated ASMA, and in URL Parameter 1 , we have mentioned FileName.

In File receiver adapter, we have added Dynamic Config bean before the Call Adapter module,

Module processing sequence:               Module Key
AF_Modules/DynamicConfigurationBean   get
AF_Modules/DynamicConfigurationBean   set


Module Config:
Module key    Parameter Name  Parameter Value

get                 key.get               write http://sap.com/xi/XI/System/HTTP UrlParamOne   
get                 value.get             module.filename
set                 key.set               read http://sap.com/xi/XI/System/File FileName
set                 value.set             module.filename

But, in the audit log it shows as the value of the property module.filename is being set to "null".

Please help.

Thanks,

Pratibha

javier_alcubilla
Contributor
0 Kudos

Hi Pratibha

Try this, it worked for me:

Module processing sequence:               Module Key

AF_Modules/DynamicConfigurationBean   get

AF_Modules/DynamicConfigurationBean   set


get                 key.0               write http://sap.com/xi/XI/System URLParamOne  

get                 value.0             module.filename

set                 key.0               read http://sap.com/xi/XI/System/File FileName

set                 value.0             module.filename


URLParamOne must begin with capital letters

Kind regards