on 11-10-2008 9:41 AM
Hai Experts,
Is there any option to pass source filename which is going to be dynamic(ie any text file with any name ) as a header in HTTP post to a URL?
To be more clear on my question I am doing a File to HTTP scenario.In the source directory any text file with any name will be kept.I have to pick that file and then when i do an HTTP post at the target along with other static headers(which i can hard code with the header fields option in the receiver communication channel) i have to pass the source filename also as a header.Is it possible by any way.please remember that at the source we are having a text file which contains no structure.
good lighting into this will be appreciated and rewarded
Answered
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.
First u may use Dynamic Configuration to get the filename from the source file path. U may get this data in payload. Then at the receiver HTTP adpater, u may use the option "Header Fields". To see the complete structure in XI, go to tcode smicm and change the trace level there to 3.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.