HTTP Post - Capture URL parameters(USER)?

Hi,
My scenario is HTTP - XI - ABAP Proxy.
I wanted to capture USER id of the person who posted(HTTP) into XI(Mapping). <b>How to read/evaluate the value of sap-user from querystring of URL ?</b>
http://HOST:8008/sap/xi/adapter_plain?namespace=http%3A//abc.com/sales_oa&interface=MI_sales_OA&service=DEV_D&party=&agency=&scheme=&QOS=EO&<b>sap-user=SM9999</b>&sap-password=xxxxx&sap-client=001&sap-language=EN

Hi Mallik,
Check the following url’s with reference to Adapter-Specific Message Attributes
Plain HTTP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
Configuring the Sender Plain HTTP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
Configuring the Receiver Plain HTTP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
Regards,
Mike

Similar Messages

  • HTTP reciever adapter URL parameters

    Hello all,
    I have a question regarding passing parameters as querystring in the url of reiever HTTP adapter. This is an RFC> XI> HTTP scenario and we're posting to an external URL. Here are the details
    URL: xxxx.yyyyy.com
    Service Number: 80
    Path: /api/company_codes
    It works fine with these. I want to pass a parameter called "bulk" with value "1".
    How should I do it. Should I append it to the Path directly like
    Path: /api/company_codes?bulk=1
    or enable Apply URL Parameters under Adapter Specific MJessage Attributes and fill in
    Parameter 1 : bulk=1
    Could somebody clarify this please?
    Thanks
    Karthik

    When the parameter is fix, so apply it to the path.
    Regards
    Stefan

  • HTTP Receiver with URL Parameters

    Hi, I need to pass the following parameters when I do an HTTP post
    1. Data
    2. DataType
    3. Protocol
    4. Security
    5. DataFormat
    Here the Data will have the payload to be sent to HTTP receiver. Can anybody tell me, how I can pass the payload using URL Parameter.

    in the HTTP reciever CC
    from the help...
    - If you want to use URL parameters, select Apply URL Parameters and enter the parameters in the fields Parameter 1 to Parameter 6.
    The parameters are included in the HTTP request under the names specified here.
    The technical names of the fields are URLParamOne, u2026, URLParamSix
    Also check this blog
    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part III
    Edited by: Anand on Oct 15, 2008 8:40 PM

  • How to call HTTP Post Method URL in SOA 10g

    Hi,
    I have a requirement where i need to call a HTTP Post Method, I have a URL, if i hit it in the browser, i am getting the response details. I know there is a HTTP Binding Adapter in 11g, but we are on 10g. Can anyone please let me know whether we can do it in 10g and how ?
    Thanks Always
    N

    You will need to write the WSDL by yourself. Just make sure you have the end point detail, operation name(if required) and the schema available to write the WSDL.

  • How to send HTTP Post to URL (third party software) in JSP/JSPDynpage

    Hello,
    we want to integrate a third party application in our Portal Component (JSPDynpage using JSP and HTMLB). This third party component is called like this:
    http://servername:port/cgi-bin/cgi.exe?request=map&format=html&swldy_ace=GDF&swldy_image_format=p n g&width=525&height=375
    How can we do this in the JSP using HTMLB?
    Thanks for your help.
    Best regards,
    Daniel

    Hi Detlev,
    thanks for your hint regarding the App. Integrator, but it seemn not to be what we want to do: We call a CGI and get a JEPG Image back as request.
    Now we used the java.net.URLConnection to do the HTTP post in the JSPDynpage:
    // send HTTP POST
    try {
      u = new URL("http://server/path/ourcgi.exe");
    } catch(MalformedURLException ex) {
      System.err.println("MalformedURLException");
    // build query sting      
    String query = "request=plot&format=jpeg&template_name=......."
    int cl = query.length();
    try {
      // open the connection and prepare it to POST
      URLConnection uc = u.openConnection();
      uc.setDoOutput(true);
      uc.setDoInput(true);
      uc.setAllowUserInteraction(false);
      DataOutputStream dos = new DataOutputStream(uc.getOutputStream());
      dos.writeBytes(query);
      dos.close();
    } catch ...
    Best regards,
    Daniel

  • Http receiver adapter - url parameters

    I have a scenario where I'm calling a client proxy and passing a file name to xi.  I have a receiver http adapter configured to post to a servlet.  I want to pass the file name from payload to my query string variable.  i.e PATH = parser/servlet/parsereng and I want to have a url parm like the following:
    ?filename=<filename from payload>
    Any sap documentation walk thru would be great.
    Thanks,
    Mark

    Hi,
    you can set the url dynamically in this was:
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    read:
    which Adapter-Specific Message Attributes you can use on:
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/frameset.htm
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Outbound HTTP adapter and URL parameters

    Hi all
    I'm having some trouble with a XI scenario I'm supposed to implement.
    I should get invoices from a vendors webserver using a url with parameters (ex. http://myvendor.com/getinvoice.jsp?invoiceid=12345) and send it as INVOICE IDoc to the R/3.
    I thought that would be an easy one using the Plain HTTP-Adapter but I can't figure out how to build the URL. Is there a way to do that, or do I need to implement my own adapter??
    Thanks in advance
    Stefan

    Hi experts ,
    I have this scenario from Legacy to XI to external app server.I have a test jsp to execute that functionality .Its a jsp which has 1 textarea named "test" and when I click on the submit buton I get a response back.This way I am able to test this independently.Now from XI when I am executing my scenario I am getting status code '1250' and message as ' http request(test) is null'.Now in the scenario in http adapter I just provide the target host : ip of server ,
    service number : port no ,
    path: the container or the request handler. But this scenario fails and gives me the above erroneous response.Now Basically I am not able to get how to send the value to the textarea "test"? please provide help as soon as possible.Do we have to put the name of the jsp in the "path" in http adapter and use prolog as test= or should it be &test= .I tried this but it doesnt work.So please provide help on this as soon as possible or please suggest a solution at [email protected]
    Thanx in advance,
    Akshata

  • HTTP Sender - how to read URL Parameter USER id into Mapping

    Hi,
    My scenario is HTTP - XI - ABAP Proxy.
    I wanted to capture USER id of the person who posted(HTTP) into XI(Mapping). How to read/evaluate the value of sap-user from querystring of URL ?
    http://HOST:8008/sap/xi/adapter_plain?namespace=http%3A//abc.com/sales_oa&interface=MI_sales_OA&service=DEV_D&party=&agency=&scheme=&QOS=EO&<b>sap-user=SM9999</b>&sap-password=xxxxx&sap-client=001&sap-language=EN
    please help.

    Mallik,
    Try  URL Parameters in HTTP sender communication channel.
    In the sender communication channel set Adapter Specific Message Attributes. Click on Apply URL Parameters. In Parameter1 put sap-user (U can query any URL parameter by giving its name as in the HTTP URL).
    Now in SXMB_MONI, in inbound payload SOAP Header, under Dynamic configuration u can see the value of the user. Query the same in Mapping using Dynamic Configuration using keyName as UrlParamOne.
    Regards,
    Sudharshan N A
    Message was edited by:
            Sudharshan Aravamudan

  • Pass URL parameters from BSP to WDA for ABAP (via Post   )

    Dear Gurus,/ Joerge,
    I am unable to post my Code here, but with the guidance provided by Joerge i am able to solve this
    i Have been through the Below thread
    Pass URL parameters from WD to BSP via Post
    Dear Gurus,
    "Since I am unable to Post new thread i am Continuing this thread, though this Issue has been
    " resolved,i need some more info on the following issue, Kindly guide me,
    I have gone through the below thread but left with no clue
    Pass URL parameters from WD to BSP via Post
    Here i have 2 Issues
    First one is --->
    " After pressing the Button I am calling this URL which is WDA for ABAP
          action="http://company/sap/bc/webdynpro/sap/zuser"> " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    Second one is -->
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    " And how to Capture this Value in Webdynpro INIT method
    "Here am using Form and method = post , I am removing this as it is causing some problem while posting
          action= my WDA For ABAP URL here " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    Thanks and Regards
    Ramchander Rao.K

    Hi,
    let me see if I understand you well.
    BSP -
    You wrote the code for catching the user name in the event OnCreate, which means that you know who´s working with the BSP application when it starts.
    Somewhere you must have a button or something with text like "Call WDA application". When user presses the button, it triggers events OnInputProcessing. Here you must write the code for the cookie that "sends" the parameter(s), something like:
    CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_value            = PAGE_DATA
        data_name             = 'PAGE_DATA'
        EXPIRY_TIME_REL       = 3600.
    you call then the URL for the WDA application.
    WDA -
    probably in method WDDOINIT of the component controller you´ll write the code for reading the "content" of the cookie:
    CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_name             = 'PAGE_DATA'
    CHANGING
        data_value            = PAGE_DATA.
    read more about the cookies in SDN, because I am not sure if this is the correct example for transmiting values. I´ve used it in conjunction of instructions IMPORT and EXPORT for transmiting an internal table.
    if this is not working properly, then try with IMPORT TO MEMORY and EXPORT FROM MEMORY.

  • Error using XI HTTP adapter specific message attribute URL parameters

    Hi XI gurus, in our XI 7.0 SPS11,
    we have problem using URL parameters of plain HTTP receiver adapter.
    If I set Adapter specific message Properties in communication channel and activate switch for Apply URL parameters (using Parameter 1 to 5) filling them using message mapping, we have no effect; instead we have error "Dynamic Header - Missing Message Attributes: Fields/Parameters".
    We carried out this test:
    1. not using adapter specific message attribute and setting
    a static URL target with fixed parameters it runs correctly.
    2. using adapter specific message attribute for target
    URL and URL parameters both doesn't runs correctly.
    3. using adapter specific message attribute only for target
    URL doesn't run correctly.
    These attribute key used for URL parameters:
    URLParamOne
    URLParamTwo
    URLParamThree
    URLParamFour
    URLParamFive
    Namespace: http://sap.com/xi/XI/System/HTTP
    Can you solve this issue? Are there oss notes, corrections, ...
    Thanks in advance.
    Marco Tricase

    Some other test done with TCP gateway.
    Activated adapter specific message properties for
    *URL
    *HTTP Header fields (one header field named "lisca")
    *URL Parameters (one param named "objectType")
    The HTTP message catched by TCP Gateway
    POST /csl/cslinker HTTP/1.0
    content-type: text/xml; charset=UTF-8
    content-length: 318
    connection: close
    accept: /
    user-agent: SAP Web Application Server (1.0;700)
    host: 10.10.43.94:54000
    accept-encoding: gzip
    <?xml version="1.0" encoding="UTF-8"?>
    seems nothing has been generated, and obviusly URL and params have been set in message mapping.
    Hope some guru has been solved the issue ...
    Pasquale Rossiello

  • Sends URL to my jsp or servlet then it redirects to an ext. site http post

    Hi,
    A user sends URL request to my jsp or servlet and then it redirects to an external site with a http or https post (not get). The post has a number of name/value parameters that are sent with it.
    How can I accomplish this?
    Thanks,
    John

    http://java.sun.com/products/jsp/tags/11/syntaxref11.fm9.html

  • Where does firefox cache the form parameters to be used in the reload event of a page that was the resposne of a HTTP POST request?

    Suppose there is form in a web page and it submits data in HTTP POST method. After submitting the form, if I reload the page [either by the refresh button or back button; whichever applicable], firefox asks permission to resend the form data by saying "To display this page, Firefox must send information that will repeat any action...". Now if the user clicks on the resend, firefox resubmits the form data.
    So where does firefox store this from data for such future resending/resubmission?
    Is it possible to retrieve/manipulate those stored form data?

    I thought I'd tried that, as tried lots of other things like encoding URL, but obviously not as this works.
    Thanks for the quick reply.
    We also have an issue with the people results not being able to be refined by Department or Job Title now we have connected the SP2010 farm to use the service applications from a SP2013 farm.
    Any ideas on this?  I've started a new thread as its unrelated though:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c89d5463-4531-4a28-9586-1f690c7b580d/can-you-refine-people-search-results-using-a-sharepoint-2013-search-service-application-connected-in?forum=sharepointsearch

  • Http post to a url from a WebDynpro (Java) application

    Hi,
    I want to send http post parameters to a url from a WebDynpro (Java) component. I need to do this to send OCI catalog data back to SAP SRM.
    I found this thread:
    HTTP Post
    which suggests to use the the Suspend plug for this purpose.
    <quote>
    Sending POST parameters with Web Dynpro Suspend Plugs
    1) Define a an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map
    </quote>
    After adding the postParams parameter of type java.util.Map to the Suspend-plug the WebDynpro gives the following error during build:
    Outbound plug (of type 'Suspend') 'suspend_plug' may have at most two parameters: 'url' of type 'string' and 'postParams' of type 'Map'.
    I use SAP NetWeaver Developer Studio version 7.0.16.
    Does someone know a solution? I would highly appreciate it.
    Thanks in advance.
    Eric

    Hi,
    Please have a look at this thread,
    Pass Table as Input to Adaptive RFC
    Regards,
    Saravanan K

  • HTTP reciever adapter pass URL parameters

    Hello all,
    I have a question regarding passing parameters as querystring in the url of reiever HTTP adapter. This is an RFC> XI> HTTP scenario and we're posting to an external URL. Here are the details
    URL: xxxx.yyyyy.com
    Service Number: 80
    Path: /api/company_codes
    It works fine with these. I want to pass a parameter called "bulk" with value "1".
    How should I do it. Should I append it to the Path directly like
    Path: /api/company_codes?bulk=1
    or enable Apply URL Parameters under Adapter Specific MJessage Attributes and fill in
    Parameter 1 : bulk=1
    Could somebody clarify this please?
    Thanks
    Karthik

    Can anybody help wwith this please?
    Thanks
    Karthik

  • How to configure HTTP receiver comm channel with dynamic URL parameters?

    I need to perform HTTP Post using PI. URL contains some parameters. I need to set these parameters with different values in run time.
    Please help to do this.
    Thanks
    Ranji

    Check the section Adapter Specific Message Attributes from this help section:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    The parameters can be set in the Message Mappinga nd then using the appropriate options in communication they can be included in the message header....for more info search with keywords "Dynamic Configuration" and you will get to know how the procedure works.
    Regards,
    Abhishek.

Maybe you are looking for