Http Reciver Adapter Header fields

Hi all,
I have a requirement where the receiver is http adapter. I have some fields/structure to be added to the http request. One way i know is to generate entire envelope in the map and then send as request having header and body both.
Is there any option in com channel to be used to populate the header fields. I can see "Define Header fields" but do not know how to use it.
Any help will be really appriciated.
Thanks
-Kulwant

Hi Kulwant,
> Is there any option in com channel to be used to populate the header fields. I can see "Define Header fields" but do not know how to use it.
Yes, You can easily populate Header fields in mapping using dynamic configuration. For more details, refer to /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping .
Regards,
Sunil Chandra

Similar Messages

  • HTTP adapter header fields

    Hai All,
       Is there any option to add header fields dynamically in the HTTp adapter header fields?
    I am doing a file to HTTp scenario.In this i have to pick a file using file adapter and add some header values(header values are both static and dynamic)and using HTTP adapter place it at a target URL.Is it possible to avoid  mapping since there is only picking up of file and adding some headers to it.I can see header fields in the HTTP reseiver adapter.Can i use these to add the static and dynamiuc header fields.specifically i have two questions.
    1)I want to include the source file name which is DYNAMIC as a field in the header fields in the target payload.How can this be achieved?Should i go for mapping and write a UDF for the same or is there any option to add dynamic values in the HTTP receiver adapter header fields?
    2)what are these header fields for?
    Can somebody explain it to me.I have gone through the Blogs like http receiver adapter configuration etc..would be of great help if anybody could explain it to me in detail.

    Thanks for the replies but my question is still un answered.please guide me on how to proceed?
    I am going to send a txt file.On top of the contents of the file i want these headers to be attached
    In the header fields of HTTP receiver adapter configuration can i give the following format?
    Header           Value
    AS2 from:    hgdfdjfhd
    AS2 to:        fhdfjdfdfnd
    subject:       hdsjdhsdsd
    will it appear in the target file as
    AS2 from:    hgdfdjfhd
    AS2 to:        fhdfjdfdfnd
    subject:       hdsjdhsdsd
    //file content starts here
    dsgdsjfgdsfggf
    hfdjhfdhfdjfdfhhdsfh
    hgdsjfgdsjfgdfdgfdg
    gfdsahdgsdfdgfgdsg
    what is to be done for acheiving this kind of target file?
    "If you choose to use HTTP Header fields then you can enter Field1 to Field 6 values. This will be embeded into the HTTP request as HeaderFieldOne and so on."
    can this HeaderFieldOne to HeaderFieldsix be populated with any valueslike
    AS2 from: ggdhfsdf and all?
    please help me out.

  • Http - http redirection using header-field rule

    Hi,
    Is it possible to configure an http -> http redirection using header-field rules if the CSS is NOT performing the SSL encryption/decryption ?
    We can get the redirect working not using the header-field rule but not with it configured.
    cheers,
    Mike

    Gilles,
    The header-field rule works to redirect the http traffic to a specific service, but we also want the header-field rule config under the port 443 content rule.
    Can the CSS see the header or is it encrypted ?
    service 10.10.10.1-443
    ip address 10.10.10.1
    protocol tcp
    port 443
    keepalive maxfailure 2
    keepalive retryperiod 45
    keepalive frequency 45
    keepalive type script testscript "10.10.10.1 4000 3179 archepns"
    active
    service 10.10.10.2-443
    ip address 10.10.10.2
    protocol tcp
    port 443
    keepalive maxfailure 2
    keepalive retryperiod 45
    keepalive frequency 45
    keepalive type script testscript "10.10.10.2 4000 3179 archepns"
    active
    service archepns_redirect
    keepalive type none
    type redirect
    no prepend-http
    ip address 1.1.1.1
    domain https://www-knowledge-epe.company.com
    active
    header-field-group archepns_url
    header-field Request-Line request-line contain "/archepns"
    header-field-group archepns_url2
    header-field Request-Line request-line contain "/archepns"
    content archepns-redirect-sso
    vip address 20.20.20.1
    protocol tcp
    port 80
    url "/*"
    header-field-rule archepns_url weight 0
    add service archepns-redirect
    active
    content archepns-443
    vip address 20.20.20.1
    port 443
    url "/*"
    header-field-rule archepns_url weight 0
    add service 10.10.10.1-443
    active
    content archepns-redirect-sso
    vip address 20.20.20.1
    protocol tcp
    port 80
    url "/*"
    header-field-rule archepns_url2 weight 0
    add service archepns-redirect
    active
    content archepns-443
    vip address 20.20.20.1
    port 443
    url "/*"
    header-field-rule archepns_url2 weight 0
    add service 10.10.10.2-443
    active

  • Simulate FileUpload via HTTP Plain Adapter (input field type = file)

    Our Partner would like to get the payload via html input parameter with type=file.
    The Szenario:
    The payload is generatet in one CRM System as an individual structure. We send the payload via proxy to the integration enginge. Is it possible to simulate the fileupload technology of a simple html form with input field with type=file.
    Any idea is helpfull. Thanks!

    Hi Stefan,
    thank you for the tipps. I know about epilog parameters of plain http adapter and i. e. xslt mappings.
    I don' t know how the simple html upload works and if it is possible to build multipart upload?
    Manualy upload is resolvable with
    <HTML>
         <HEAD>
              <TITLE>Upload</TITLE>
         </HEAD>
         <BODY>
              <FORM ACTION="/cgi-sample/upload.pl" METHOD="post"
                                                ENCTYPE="multipart/form-data">
                         File: <INPUT TYPE="file" NAME="file"><BR>
                                   <INPUT TYPE="submit">
              </FORM>
         </BODY>
    </HTML>
    Meanwhile, we have solved the problem with a simple xslt mapping for plain html on the receiver side.
    Kind regards
    Jochen

  • HTTP Receiver adapter error ?

    HI Guys,
    I have configured the IDOC-HTTP. I have defined a bsuiness service on the receiver side as the receiver is not in our landscape and he is our business partner.
    I have created a RFC connection of type G and it is working properly but the HTTP reciver adapter gives the error as below
    I'm getting an error when I go to "sxmb_moni" which says
    Error Category = PLAINHTTP_ADAPTER
    Error ID = ATTRIBUTE_SERVER
    Kindly help..
    Thanks,
    Raj
    Message was edited by:
            raj reddy

    Hi Raj,
    <b>Error Category = PLAINHTTP_ADAPTER
    Error ID = ATTRIBUTE_SERVER</b>
    as far as i know this problem is due to high  traffic.When the data comes in bulk some of the message are failing or when they are not able to connect to reciever server.So it gives error.
    u can look @ these threads of similer taste
    PLAINHTTP_ADAPTER.ATTRIBUTE_SERVER error
    PLAIN HTTP ADAPTER -ATTRIBUTE_SERVER ERROR
    Plain HTTP adapter error
    PLAINHTTP_ADAPTER  -  ATTRIBUTE_SERVER
    and also look @
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    Regards
    biplab

  • HTTP Header fields in SOAP adapter - Part 2

    Hi All,
    With regards to my previous thread HTTP Header fields in SOAP adapter
    my header issue is solved and hence I have closed the thread but still I am not able to make the connection successful. The new problem is below
    My vendor requirement is to specify the header as "Ent-sender" but when we give the same in XI in communication channel it automatically convets into uppercase "ENT-SENDER".  Due to case-sensitive in vendor server the connection is not gettingestablished.
    Please help me out how to solve the problem.
    <b>Note:</b> Sorry for the new thread as it was created due to new problem and also the previuos thread is already too long.
    Regards,
    Dhill

    Hi Neaves,
      Thank you, I jave seen the note and find the below solution will be some what realated to my prblem.
    <u><b>The nosoap mode lets the adapter send the XI payload directly without wrapping it in the SOAP envelope. Although the main use of this mode is to send some plain text content directly to some web server, one can use this mode to send their own SOAP message (e.g., with arbitrary headers) to an external web service (See related questions). In this case, the XI payload must be formatted in the SOAP envelope.
               To use the nosoap mode, the channel must be configured to use no SOAP envelope.</b></u>
    If yes, can you please let me know how to use nosoap mode otherise let me the other possibilities.  I am already using tcpg2.zip to trace the SOAP adapter in which it was confirmed that XI is changing the header automatically into CAPS whatever case we give,
    Regards,
    Dhill

  • How to set HTTP header field "cookie" with http receiver adapter?

    Hi,
    I am using http receiver adapter (not axis) in a scenario. I could not set a parameter with key cookie in http header. Is there some kind of restriction to set it? I am able to set others like connection and create custom fields using ASMA and dynamic key configuration via UDF on mapping.
    Could you please comment on, is cookie http parameter special or noneditable by PI's http adapter? I am looking for a solution without editing any abap code...
    Regards,

    I believe it is possible since axis adapter provides very same functionality. Let me summarize my scenario may be it helps:
    I am trying to call series of webservice lets say in a BPM. First service (login service) will provide me with a session id (in http header with key Set-Cookie) then I will call another service which has that session id in its http header with key cookie then I am going to logout. So I am testing the second part now, but it doest let me send cookie http header parameter.
    I hope I clarified a bit more my problem.
    Regards,

  • Header Fields not picked in Http Adapter

    Hi ,
    I am sending a few custom header fields that have been set up in the HTTP adapter but for some reason they are not picked.
    Any suggestions..
    -Teresa

    Thanks Sameer,
      This note did help us pick up the header fields but on picking up it returns the header fields in lower case instead of the case Sensitive format I sent it in ..I looked at the trace log too and its in case sensitive format but when my 3rd party receives it, it is in lower case format...funny even the <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
    is also in lowercase..I am running XI 3.0 SP4..Is it an XI issue or something to do with my integration server which processes my HTTP adapter??? Or any other notes also needs to be applied??
    Please help..
    Trace level="1" type="T">---- Plain HTTP Adapter Outbound----</Trace>
      <Trace level="1" type="T">----
    </Trace>
    - <Trace level="1" type="B" name="CL_HTTP_PLAIN_OUTBOUND-ENTER_PLSRV">
      <Trace level="3" type="T">Quality of Service EO</Trace>
      <Trace level="1" type="T">Get XML-Dokument from the Message-Objekt</Trace>
      <Trace level="3" type="T">URL http://xkqbdev.ampton.net:50080/abc/Web/servlet/XMLChannelServlet</Trace>
      <Trace level="3" type="T">Proxy Host: 10.69.14.98</Trace>
      <Trace level="3" type="T">Proxy Service: 80</Trace>
      <Trace level="3" type="T">Authorization: Basic NDQ0NDQ0NDQ0OjQ0NDQ0NDQ0NA==</Trace>
      <Trace level="3" type="T">~request_method POST</Trace>
      <Trace level="3" type="T">~server_protocol HTTP/1.0</Trace>
      <Trace level="3" type="T">accept: /</Trace>
      <Trace level="3" type="T">content-type: text/xml</Trace>
      <Trace level="3" type="T">Header-Fields</Trace>
      <Trace level="3" type="T">X-Extricity-Sender-ID 444444444</Trace>
      <Trace level="3" type="T">X-Extricity-BO-Type-ID http://xml.cXML.org/schemas/cXML/1.2.011/cXML.dtd</Trace>
      <Trace level="3" type="T">Prolog conversion Codepage: UTF-8</Trace>
      <Trace level="3" type="T">Epilog conversion Codepage: UTF-8</Trace>
      <Trace level="3" type="T">content-length 3023</Trace>
      <Trace level="2" type="T">HTTP-Response :</Trace>
      <Trace level="2" type="T">Code : 500</Trace>
      <Trace level="2" type="T">Reason: Internal Server Error</Trace>
      <Trace level="2" type="T">Code : 500</Trace>
      <Trace level="2" type="T">Reason: Internal Server Error</Trace>
      </Trace>
      </Trace>
    -Teresa

  • Header Fields in HTTP Adapter

    Hi,
    Can anyone please explain meaning of "Header fields in HTTP adapter" ? It has "Name" and "Value" fields in the receiver HTTP channel.
    If I enter values like:
    Name                         Value
    Source                        XYZ
    Destination                  ABC
    Where will these appear in outbound HTTP post ?
    Also, is this different from "HTTP Header Fields" checkbox available in "Adapter specific message attributes" section ?
    Thanks
    Bhaven

    > Also, is this different from "HTTP Header Fields" checkbox available in "Adapter specific message attributes" section ?
    You use this, when you want to have dynamic header fields. You put here a key, but instead of a value you put a parameter name, which can be filled with a value during mapping runtime.
    Regards
    Stefan

  • How to send a signed SOAP message with additional HTTP Header fields

    Our Partner's integration requirements are that we send them asynchronous SOAP messages, that are digitally signed, and whose HTTP headers contains 5 or 6 additional header fields, of which 3 or 4 will need to be dynamically set during the message mapping.  I believe we can use the HTTP adapter for adding new fields to the HTTP header, but don't believe it supports signing.  I believe that the SOAP adapter supports signing, but I'm not clear on how to use it to add fields to the HTTP header.  What is the most straight-forward way to achieve both the signing of the message and the addition of the HTTP header values?
    Thanks,
    Kurt

    >>>What is the most straight-forward way to achieve both the signing of the message and the addition of the HTTP header values?
    Use Java mapping for both.
    1) Signing the message
    You can digitally sign the soap message using many standard api like WSS4j? or  refer Java XML signature API which comes in Jdk1.6.
    Refer these links
    WSS4J  -  http://ws.apache.org/wss4j/axis.html
    Java XML signature : http://java.sun.com/developer/technicalArticles/xml/dig_signature_api/
    2) >>whose HTTP headers contains 5 or 6 additional header fields, of which 3 or 4 will need to be dynamically set during the message mapping
    Use Dynamic configuration API to set the additional header fields during message mapping.

  • Outbound Plain HTML Adapter how to change the html-header field "host"?

    Hello,
    I'm using XI 3.0 SP11 and want to transmit a message to a business partner using the Plain HTML Adapter.
    My problem is now that I need to change the default Html-Header field "host" because it seems that the adapter engine is converting it to lower case and is attaching the port-number which is causing trouble with the loadbalancer/applicationserver of our business partner.
    I tried to set the appropriate http-header value in the communication channel configuration, but the adapter engine is ignoring this value.
    Thanks in advance for any ideas.
    Sascha Fuchs
    Message was edited by: Sascha Fuchs

    Hi Sascha,
    unfortunately the Plain HTTP adapter is not running in the J2EE, therefore you cannot extend the functionality with an adapter module.
    I am not sure to understand the problem right. Why do you need to change the HTTP header? What is in it in your case and what should be?
    Regards
    Stefan

  • Soap receiver - owerwrite default http header fields

    Hi,
    I'm using the soap receiver adapter in nosoap mode.
    How can I owerwrite the default settings for the header fields in the http request?
    The soap adapter will automatically set content-type = application/xml.
    I would like for example set "text/xml".
    Thanks,
    Bela

    Dear Mohan,
    I tryed with the keep headers option but it didn't change anything to the HTTP header fields.
    In the documentation we have the following : Keep Headers
    If you want to include the header of the XI message in the Web service message, set the indicator.
    Does it mean that I have to create a HTTP header section in the XI message??? Do you have an example?
    Best regards,
    Bela

  • Delivery and Service Header Fields in RNIF Receiver Adapter for Rosettanet.

    Hello all,
    I need to populate the Delivery and Service header fields in Rosattenet MIME message in the receiver side. 
    For the sender side RNIF adapter, we can very well use the Adapter Specific message to get those fields from Rosattenet MIME message. But in my scenario, I need to use RNIF as the receiver, which will pick messages from other system and post it to RNIF.
    Also, I have checked the receiver RNIF adapter, there I dont find any adapter specific messages to use.
    Regards,
    UP

    Prasad
    You have not mentioned which RNIF Adapter you are using whether 1.1 or 2.0. I will assume that you are using 2.0.
    If you are using Single action responder the parameters you should configure is given here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/70/d89d40c1252a54e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/6b98403de08368e10000000a1550b0/content.htm
    If you are using Two action responder the parameters you should configure is given here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6f/dc9d40759c2b54e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/7198403de08368e10000000a1550b0/content.htm
    ---Satish

  • How i use header fields in soap adapter

    Hi Experts,
    I need use  header fields http  in soap adapter receiver but i don't know where's the Variable Header
    Do you know where i find this?
    Somebody know how i put header fields http in soap adapter receiver?
    Thanks for all,

    It is similar like in this blog:
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Find in the online help the values for the SOAP adapter.
    You can only add additional fields, you cannot influence the standard field like content-type and content-id.
    Regards
    Stefan

  • REG : HTTP header fields (Synchronous response)

    Hi All,
             Can anyone please explain the advantage of using this function in the receiver HTTP adapter( ie
    "Set adapter specific message attribute -> HTTP header fields (Synchronous response)")
    and how this can be implemented?
    Thanks in Adavnce,
    Siva

    >
    sivarama krishna wrote:
    > Hi All,
    >
    >          Can anyone please explain the advantage of using this function in the receiver HTTP adapter( ie
    > "Set adapter specific message attribute -> HTTP header fields (Synchronous response)")
    >  and how this can be implemented?
    >
    >
    >
    > Thanks in Adavnce,
    > Siva
    from help:
    If you want to save HTTP header fields from the synchronous response in the XI message header, choose HTTP Header Fields (Synchronous Response) and enter the fields in the fields Field 1 to Field 6.
    The fields must have the same names as the fields that are also to be sent in the HTTP response.
    The technical names of the fields are HeaderFieldOne,...,HeaderFieldSix.
    this means that in case you look to access the header of the response message of a sync http you can use this ASMA.
    the implementation will be in your response mapping, using dynamic configuration - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

Maybe you are looking for

  • Redesigning the Collections Framework

    Hi! I'm sort of an experienced Java programmer, in the sense that I program regularly in Java. However, I am not experienced enough to understand the small design specifics of the Collections Framework (or other parts of Javas standard library). Ther

  • The form could not be certified, possibly because of your password timeout policy

    I am obtaining an error while attempting to distribute a form signed with a digital ID. I can't find any documentation or discussion threads to resolve the problem. Specifically, while attempting to distribute the signed form in Adobe Acrobat X, the

  • Dynamic Operators

    Is is possiable to use a bind variable for a operator in a dynamic PL/SQL query. For example.. l_query := 'select * from users where username :P1_OPERATOR :P1_USERNAME' With this the user can do = or !=.

  • Creative Cloud 2014 processes not stopping

    I am running Creative Cloud 2014 on a Windows 7 system with nVidia Quadro 2000 display adapter.  Since upgrading to CC 2014 I've noticed that a lot of my Creative Cloud programs (Premiere, Audition and After Effects, Media Encoder, and I'm guessing o

  • 11.3 SAT OS question

    In the 11.3 docs primary servers support MS 201 R2 but under managed devices SAT only 2012 standard is listed. Is that an over site that R2 is not listed for satellites? Will this change in FRU1?