Get a specific Http header field from an http request in a component

Hello,
In a custom component that I've created ( which extends ServiceHandler), I'd like to access a specific http header field from the http requests that this component receives.
I assume this could be accessible through m_binder or m_service, but I didn't find any solution so far.
Any Idea?
Thanks in advance,
Leo

As it may help others, I answer what I figured out.
Every details of the http request is put into the m_binder.
So a specific field can be accessed with m_binder.getEnvironmentValue("My_data")
You can also list all the available data as it is a standard properties set.

Similar Messages

  • 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,

  • 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

  • How to add a user defined HTTP header field?

    Hi, everyone!
    I want to add a user defined HTTP header field to a HTTP
    response header.
    I use the following statements in testHeader.jsp
    response.addHeader("myheader", "123");
    response.sendRedirect("middleHeader.jsp");
    in middleHeader.jsp,
    out.print(request.getHeader("myheader"));
    But the output in middleHeader.jsp is null!
    How to add a user defined HTTP header field to a HTTP
    response header? Are there some sample codes?
    Cheers,
    George

    the send redirect actually creates a new request (through the client) and thus a new response
    thus the headers you set in the response are gone for the next request/response
    You can try servletDispatcher.forward

  • Hoiw do I get HTTP Header fields?

    Hi,
    I want to get the http header field If-None-Match. How do I get a hold of the HTTP headers for a request? I do not want to use If-Modified-Since due the the problems with out of synchronized clocks, determining time zones etc.
    The content is in a BLOB, and I don't want to deliver it at all if not necessary. OWA_CACHE does not help, it still delivers the large amount of data.
    I can set the ETag header, no problem, but how do I get theIf-None-Match header field returned from the browser so I can avoid unnecessary content delivery?
    Thanks,
    Larry

    Is there a mod_plsql forum?
    I can't seem to find it, this looked the closest since I am under the impression HTMLDB depends on mod_plsql...
    Larry

  • Accessing Message Header fields from envelope

    I am doing an interface with the RNIF adapter. They want me to pull the delivery header information, which is in the RNIF envelope, not the payload document and map it into some fields that exist in the inbound schema. Can this be done in message mapping? I would suppose that this question would apply if one wanted message header fields from the SOAP envelope also.
    Kind Regards,
    Chris

    Have you checked this ?
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    Regards,
    Amol

  • 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

  • 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

  • How to delete User-Agent header field from http request ?

    Hi,
    I'm currently using HttpUrlConnection to create a HTTP 1.1 POST client, and I wish to remove the User-Agent field from my request.
    However, java seems to set this field to "java.1.4.2" if none is provided.
    I have found methods to modify the User-Agent ( "setRequestProperty()" and system property "http.agent" ) but none to delete it.
    Is there a way to remove this header from the request ?
    This field is said as "should be implemented" but is not required in rfc2616(http1.1), so I'm a bit surprised that I can't remove it in the java HttpUrlConnection...
    Thank you for your help,
    Gregoire

    You can always go around java.net.HttpUrlConnection with your own subclass of UrlConnection or simply a socket. You may lose some functionality, for example with handling binary content, but it may still be a solution.
    (But are you saying that the server requires that there's no user-agent header? That's not a case of incompatibility, it's a bug. Scrap the server, and get one that works.
    It seems a lot more likely that the server just have strict ideas of what user agents it wants to talk to. Then instead of removing the header, you want to find out what values the server will expect.)

  • OSB - Content length http header missing from business service out message

    Hi all,
    I am having some diffuclty with a business service in OSB. I created the business service from the wsdl and created a regular proxy service that just routes to the business service. When i run the test console i get the below fault.
    <faultcode>soapenv:Server</faultcode>
    <faultstring>BEA-380000: Length Required</faultstring>
    <detail>
    After some debugging i find that the content length http header is missing from the outbound message the business process creates and sends to the acutal web service which sends back the http 411 fault.
    Does anyone know how to configure the message flow of my proxy service to ensure that the outbound message sent from the business service contains that content length http header or any suggestions on how to fix this issue will be appreciated.
    Thanks

    Disable the "Use Chunked Streaming Mode" property in HTTP Transport Configuration of your business service. By default it remains enabled.
    Regards,
    Anuj

  • SOAP Sender Adatper - Read custom http header field

    Hello,
    i try to read a custom http header into the dynamic configuration of a message - but it is not working as expected - in ASMA i configured to get the value of MYHEADER1 into XHEADERNAME1 - when testing with a MYHEADER1 value, the value is not put into XHEADERNAME1.
    Is it possible to get custom HTTP Headers in the message?
    bf
    franz

    I have quite the same problem!
    I try to make the receiver determination based on the content of XHeaderName1, but none of the Dynamic Configuration parameters is shown in the sxi_monitor.
    I've described my scenario in more detail in this thread
    http://scn.sap.com/message/13586532#13586532
    Does anyone have an idea?

  • 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.

  • Getting Error while deleting a field from the 'Z' Structure

    Hi All,
    I have created a 'z' structure in which i have 5 fields, now i want to delete one field from the structure, but it is giving me error like Invalid Change.
    Its a structure so i cant activate and adjust as we do for Tables.(se14)
    So pls help me out asap.
    thanks & Regards,
    Dhruv Shah

    Thanks for Quick Reply.
    I have not used this field in any FM/ Report.
    I have tried log off and then log on. but it make no difference.
    Now the Other scenario is that i want to change the datatype of this field to TEXT25.
    But it is also not allowing me to change because currently datatype is TEXT20.
    So now how can i change the length from 20 to 25.
    Regards,
    Dhruv Shah

  • Custom information in HTTP Header in an outgoing GWWS Request

    Hello Xu,
    Hello Everyone,
    With reference to the recent post activity in the post:
    [Adding custom information in HTTP Header in an outgoing request from GWWS|https://forums.oracle.com/forums/thread.jspa?threadID=2366358&tstart=0]
    We are looking for an option to send custom header information with the a webservice request (HTTP post) that happens via GWWS server.
    I prematurely marked that post as answered since we got a link to documentation in one of the answers, which suggests that problem has been taken care in TUXEDO11gR1.
    However, it would be difficult (almost impossible) for us to move to 11gR1 immediately.
    Since I marked that post as "answered" and I did not know if replies in that post will get any attention, I opened up this post.
    Xu (He) suggested (in reply to my previous post) that there might be a patch for our problem.
    It would be wonderful/perfect if we can get a patch for 10gR3!
    We are using the following:
    TUXEDO10gR3 PATCH LEV=44
    SALT Patch Lev = 15
    Please do let us know.
    Thank you again
    Sincere Regards,
    Mrugendra

    Maurice,
    Thanks for confirming this. (in the post: [Adding custom information in HTTP Header in an outgoing request from GWWS|https://forums.oracle.com/forums/thread.jspa?threadID=2366358&tstart=0] )
    It clarifies the doubts that I was having while reading through the documentation Xu pointed to.
    Yes, we need to add HTTP Headers (not SOAP header).
    For now we just need to add Basic Authentication HTTP Header for outbound service calls.
    We have developed a plugin to do that for now.
    And even if the salt plugin takes care of adding the Basic Authentication in the HTTP Header for outgoing calls, I guess we do not have any option to include some custom information in the HTTP Header which might be required in the future.
    At-least, not unless we request that enhancement.
    Bringing the plugin into our mix requires a lot of changes to our architecture including inclusion of AUTHSVR in the UBB,
    Which, in turn, makes it imperative to change the endpoint clients of our application.
    In addition to that, the incoming web service calls also need to include TUXEDO authentication information, which would again require either communicating the authentication information to the consumers of our service or device some kind of a proxy which would add the authentication information for all the incoming requests!
    With these facts in mind, we were wondering if we have an easier way to include the HTTP header information.
    As you say, Maurice, it seems it is not possible yet.
    Thank you again for your replies.
    Sincere Regards,
    Mrugendra

  • Call HTTP POST Service from SOA HTTP Binding (one - way)

    Hi All
    Why doesn't HTTP Binding support one-way Reference (It only allows request-response in outbound mode)? I need to call a one way HTTP post service from BPEL.
    How can i achieve this with HTTP-Binding. This one way HTTP POST service is on OSB. Please help!
    Thanks!

    Look at 10g samples under tutorials/702.bindings.

Maybe you are looking for

  • Chinese text in Indesign CS3

    Hi, I have a computer (WXPSP3 EN) with Adobe Creative Suite CS3 (incl. InDesign) installed. Now the user has a problem with Chinese text, he never used before. He got a Word file with the translation English => Chinese and copied the text from Word t

  • Netbeans Enteprise Pack 5.5 Installation error

    I am getting an error when installing the enterprise pack. Attached log. [2006/05/22 11:32:43]: installation started [2006/05/22 11:32:43]: PRE-INSTALLATION PHASE: [2006/05/22 11:32:43]: initializing installer utilities [2006/05/22 11:32:43]: ... Ins

  • Help on packages

    hi, i am just learning java and i have a problem. I have 3 files, A.java and B.java and C.java I need to use A and B java file variables in C.java So i wrote package statements like this. all the files are in the "waves" directory. //in A.java packag

  • IPhone 4S Calendar

    Does anyone else not have the "+" to add event to the calender on the white IPhone 4S?

  • From localtime to UTC on both Windows and Linux (Solved)

    Hi, It has been a while since I updated my Archlinux. I read from the news corner that it is now strongly recommended to change from localtime to UTC (http://www.archlinux.org/news/initscripts-update-1/). Since I have a dual-boot system of Archlinux