Skip to Content
avatar image
Former Member

Dynamic Header during HTTP post.

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 10, 2008 at 10:58 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 14, 2008 at 02:11 PM

    Hi,

    You can try this blog:

    Posting and Testing using XI/PI HTTP Adapter

    Regards,

    Abhishek.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 20, 2008 at 04:57 PM

    Answered

    Add comment
    10|10000 characters needed characters exceeded