cancel
Showing results for 
Search instead for 
Did you mean: 

ent-filename in HTTP adapter

PratibhaK
Participant
0 Kudos

Hi...

I have a sender file adapter and HTTP receiver adapter.

In HTTP adapter, in the parameter "ent-filename" , I want to retain the name of the file that was picked.

In Sender File adapter, I have checked the File Name under Adapter specific message attributes.

In the HTTP receiver , I tried putting the value for ent-filename as %FileName% .

When I check in sxmb_moni, it shows me the ent-filename = %FileName%, but not the actual file name.

Kindly help!

Thanks,

Pratibha.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos
In HTTP adapter, in the parameter "ent-filename" , I want to retain the name of the file that was picked.

What parameter do you mean?

PratibhaK
Participant
0 Kudos

I meant in the HTTP header field ent-filename.

stefan_grube
Active Contributor
0 Kudos

Here is a blog how to provide the HTTP header fields:

/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

If you do not want to write a UDF, you can do it like described in that blog:

/people/stefan.grube/blog/2009/06/19/unknown-use-case-of-dynamicconfigurationbean-store-file-name-to-jms-header-without-mapping

Put the modules in sender channel and use the parameters of HTTP adapter.

PratibhaK
Participant
0 Kudos

Stefan,

In XI -> Response, I can see the file name in Dynamic Configuration.

But, I want it to appear in the ent-filename.

thanks,

Pratibha

stefan_grube
Active Contributor
0 Kudos

What in the blog written by Bill is not clear to you?

PratibhaK
Participant
0 Kudos

Hi,

I am using HTTP receiver.

So, u suggest that I write the DynamicConfigurationBean in the File sender.

But, I want the filename in the ent-filename which is a Header field in HTTP adapter.

How do I reference that in file sender?

Please help..

regards,

Pratibha

stefan_grube
Active Contributor
0 Kudos

For the second DynamicConfigurationBean you use parameter :

key.1 read http://sap.com/xi/XI/System/HTTP HeaderFieldOne

In HTTP adapter config you put ent-filename into "Field 1"

PratibhaK
Participant
0 Kudos

I have maintained this in the SENDER File Comm channel.

But, I get the error ; In Plain http adapter - Dynamic Header Missing message attributes/parameters.

regards,

Pratibha

stefan_grube
Active Contributor
0 Kudos

check in SXMB_MONI if the dynamic configuration fields are set correctly.

check for typos.

PratibhaK
Participant
0 Kudos

Getting the error "no header mapping defined" in sxmb_moni-> Trace.

In sxmb_moni->DynamicConfiguration, I can just see - http://sap.com/xi/XI/System/File FileName - and the file name.

regards,

Pratibha.

stefan_grube
Active Contributor
0 Kudos

What do you see in audit log for message monitor of adapter engine?

Have you put the DynamicConfigurationBean before the standard module?

PratibhaK
Participant
0 Kudos

It worked!!!!

Thanks a loads for the quick responses!

regards,

Pratibha.

Answers (0)