Receiver HTTP Adapter Dynamic Query String

Hello,
I am using HTTP Adapter on receiver side.
My URL is  <b>http://server:port/abc/def?xyz=123&luw=345</b>
When I am using Adapter specific attributes.
If I check apply Parameters and pass
Parameter 1 as xyz and Parameter 2 as luw and pass their values through dynamic configuration will they get appended to the dynamic querystring
http://server:port/abc/def at the end and I get back the complete URL.
Can this be achieved? I am stuck on this.
Regards,

Srihari,
The best way to debug this and check what is happening would be to use the TCP gateway tool as shown in this blog by Stefan Grube.
/people/stefan.grube/blog/2007/03/29/troubleshooting-soap-http-and-mail-adapter-scenarios-with-tcpgateway
Send the request to the TCP gateway and forward it from there to the correspionding target.
You will be able to see the URL being passed including the Query String parameters.
Regards
Bhavesh

Similar Messages

  • Receiver SOAP Adapter Use Query String

    Hello everybody,
    I want to include in my Receiver SOAP Adapter the message id as part of the URL String, but I need to include only the MessageId value, if I use the Use Encoded Headers and Use Query String options it includes all the header fields as part of the URL, is there a way to define only the fields that I need?, thanks in advance.
    Regards,
    Julio Cesar

    May be you could try to use adapter specific message attribute "TServerLocation". This will help you set the dynamic URL.
    http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
    Regards,
    Prateek

  • HTTPS on Receiver  Http Adapter

    Hi ,
    In the http receiver adapter , if i'm using 'https' communication where do i specify that . Is it in the RFC destination of type 'G' . I also read in some places that i would have to do that in the Receiver Agreement . But i think the security options in the Receiver Agreement are meant for adapters - XI, SOAP, Mail, or CIDX and i couldn't find anything for http.
    Is there any need to specifiy it in the adapter . And in the RFC destination we would be giving the host name , port and the path prefix string . Do i have to activate the SSL option there, is that all thats needed to make sure that the receiver http adapter sends the message out via http.
    PS. I've already enabled the SSL on my server in the abap stack .
    Thanks & Regards,
    Rahul

    Hi Rahul,
    Yes, you need to make the SSL option in the G type connection active, if authentication is via certific you can select there itself.
    Thanks,
    Srini

  • Convert XML payload to HTML form data in Receiver HTTP Adapter

    Hi,
    I want to make a HTTP request ( Receiver HTTP Adapter ) to a servlet where I need to send the payload in HTML form format ( name=value ). As per the help document:
    A typical HTML form comprises named fields. When transferring a completed form to the server or a CGI program, the data must be transferred in such a way that the CGI script can recognize the fields that make up the form, and which data was entered in which field.
    The plain HTTP adapter constructs this format using a prolog and an epilog
    Has anyone done this before? I looked through all help documents and forums but in vain. I can resort to Java Mapping to do this but I do not want to re-invent the wheel if I can do it easily using HTTP Adapter Configuration. Please help.

    The parameters available in HTTP adapter for message header are:
    HeaderFieldFive     http://sap.com/xi/XI/System/HTTP
    HeaderFieldFour     http://sap.com/xi/XI/System/HTTP
    HeaderFieldOne     http://sap.com/xi/XI/System/HTTP
    HeaderFieldSix     http://sap.com/xi/XI/System/HTTP
    HeaderFieldThree     http://sap.com/xi/XI/System/HTTP
    HeaderFieldTwo     http://sap.com/xi/XI/System/HTTP
    HTTPDest     http://sap.com/xi/XI/System/HTTP
    TargetURL     http://sap.com/xi/XI/System/HTTP
    URLParamFive     http://sap.com/xi/XI/System/HTTP
    URLParamFour     http://sap.com/xi/XI/System/HTTP
    URLParamOne     http://sap.com/xi/XI/System/HTTP
    URLParamSix     http://sap.com/xi/XI/System/HTTP
    URLParamThree     http://sap.com/xi/XI/System/HTTP
    URLParamTwo     http://sap.com/xi/XI/System/HTTP

  • How to send the payload to a jsp using receiver Http adapter?

    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=.I tried this but it doesnt work.
    Is there any way to check the URL that it forms after appending the querystring in the url ...?
    So please provide help on this or suggest a solution to [email protected] as soon as possible.....
    Thanx in advance.
    Akshata

    hey Shekhar,
    thanx for that prompt reply but I have configured the communication channel in the same manner as suggested by u.
    actually I have this jsp page http://xx.xx.xx.xx:8080/abcdef/try/efg.jsp where there is a textarea "test" which has to be filled and there is a submit button.When I test this http client i.e the above jsp page independently then it goes to handler
    http://xx.xx.xx.xx:8080/abcdef/trial/    And it gives a proper response message after clicking on the submit button.
    now I want to carry out the same using receiver http adapter. I need to pass the value for this inputfield names "test" on that jsp . so right now I have configyured the adapter as
    addressing type: url
    target host : xx.xx.xx.xx
    service no:8080
    path : here I have given the path of handler i.e /abcdef/trial I tried giving the jsp page also but logically I guess it should be the handler.
    content type: text/xml; charset=iso-8859-1
    xml code: UTF-8
    Mask special characters (URL escaping) checked.
    now since the name of the inputfield is "test" in the prolog I gave test=
    But it doesnt work I get this error "http request parameter [test] is null" in the response message  which I guess suggests that it is not able to send the value for the field"test" to that handler.Please suggest how to send this and tell me if there are any other configurations that I have to do in the receiver communication channel.
    Thanx ,
    Akshata

  • How to configure message header in receiver http adapter?

    Hi all
    I need the outgoing message payload from receiver http adapter to backend system with below form.
    POST http://222.222.33.22 /HTTP1.0
    content-type:application/x-www-form-urlencoded
    USERID=xxxxxx&PASSWORD=xxxx&SRCID=10&CDDATE=20070601...........................................................................
    ×POST http://222.222.33.22 /HTTP1.0
    ○content-type:application/x-www-form-urlencoded
    ○USERID=xxxxxx&PASSWORD=xxxx&SRCID=10&CDDATE=20070601...........................................................................
    Is there a parameter to enable POST method as a part of message header outputing?
    thanks in advance.

    The parameters available in HTTP adapter for message header are:
    HeaderFieldFive     http://sap.com/xi/XI/System/HTTP
    HeaderFieldFour     http://sap.com/xi/XI/System/HTTP
    HeaderFieldOne     http://sap.com/xi/XI/System/HTTP
    HeaderFieldSix     http://sap.com/xi/XI/System/HTTP
    HeaderFieldThree     http://sap.com/xi/XI/System/HTTP
    HeaderFieldTwo     http://sap.com/xi/XI/System/HTTP
    HTTPDest     http://sap.com/xi/XI/System/HTTP
    TargetURL     http://sap.com/xi/XI/System/HTTP
    URLParamFive     http://sap.com/xi/XI/System/HTTP
    URLParamFour     http://sap.com/xi/XI/System/HTTP
    URLParamOne     http://sap.com/xi/XI/System/HTTP
    URLParamSix     http://sap.com/xi/XI/System/HTTP
    URLParamThree     http://sap.com/xi/XI/System/HTTP
    URLParamTwo     http://sap.com/xi/XI/System/HTTP

  • Using Receiver HTTP Adapter ?

    Hi,
    Is it possible to call the Mail service using receiver HTTP Adapter?
    Appreciate your help...
    Thanks,
    kumar.

    Hi,
    If we are using the multi mapping, Is it possible to call Mail service using SOAP receiver adapter & IDOC has sent parallely..
    Correct me if i'm wrong...
    Thanks,
    vasanth.

  • HTTPS in Receiver HTTP adapter

    Hi ALL,
    I have a HTTP receiver scenarion..i.e The interface is XML over HTTPS..
    Can we do HTTPS in receiver HTTP adapter ..how to do the SSL for this in Receiver HTTP channel because when i check the receiver HTTP adapter ..i don't find any setting for HTTPS on tht ..
    Thanks
    Souz

    prateek ,
    thanks for the reply ...
    You mean to say ..i have to select addressing type "HTTP Destination" and in the HTTP destination input files mention the RFC destination of type G..?
    Provide the SSL details there u2026 where can I provide this.. ?
    thanks
    Souz

  • How  to config receiver http adapter for HTTP POST without XML tags ??

    Hi All,
    Can you please provide some infornation on How  to config receiver http adapter for HTTP POST (Request) without XML tags ?? Our receiving product doesn't support XML formats.
    Is there any option to bypass server authentication on the XI?
    If anybody has the same experience or know how to please provide inputs.
    Thanx
    Navin

    Hi,
    you can use xsl mapping for this in which u xtract
    the contents only but not the xml tag.
    Ranjit

  • Dynamic Query string in Receiver HTTP_AAE adapter

    Hi All,
         Currently I am working with a scenario where I need to use HTTP_AAE receiver adapter. I need to create the query string http://server:port/WebOrder?param=value dynamically.
    I created below mentioned UDF.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey urlParameter1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP_AAE", "URLParamOne");
    conf.put(urlParameter1, "value");
    return "";
    In configuration part I entered below mentioned details in HTTP receiver adapter,
    Target Host: server
    Target Port: port
    Path: /WebOrder?
    Click Set Adapter specific Message properties
    Click URL Parameters
    I entered "param".
    But I am getting the below mentioned error.
    exception caught with cause com.sap.aii.adapter.http.api.HttpAdapterException: STATUS_CODE_NOT_OK-Not Found.
    Could you please help me here.
    Thanks
    Dipankar

    Dear Team,
    I am working on SAP PO 7.4 Single stack. we are have scenario to send sms to customers via portal system and the delivery status has to be updated in ECC. Failed to hit the sms portal by using the HTTP_AAE adapter.
    URL - http://103.112.70/smpp/sendsms?username=xxxxx&password=xxxxx&to=919797979797&from=919560054422&text=test message.
    Scenario - ECC(proxy) -> PO(HTTP adapter) -> SMS portal
    Development:
    ESR - In the mapping
    Five parameters- username , password , to , from and text from ECC to PO as part of request message.
    UDF -
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey parmValue;
    try{
                      parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "URLParamOne");
                      conf.put(parmValue, var1);
                      parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "URLParamTwo");
                      conf.put(parmValue, var2);
                      parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "URLParamThree");
                      conf.put(parmValue,  var3);
                      parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "URLParamFour");
                      conf.put(parmValue,  var4);
                      parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "URLParamFive");
                      conf.put(parmValue,  var5);
    }catch(Exception ex){}
    return "";
    Integration Directory-
    Communcation channel:
    Tranport Protocol - HTTP 1.1
    Message Protocol - GET
    General Tab-
    Addressing Mode - URL Address
    Target Host - 103.112.70
    Target Port - 80
    Path - smpp/sendsms
    Mainpayload Parameter Name - MT_SMS_Cust_Req
    Advanced Tab-
    Header fileds - EMPTY
    Query Parameters - sender party - enabled
                                  sender service - enbled
                                  Receiver Interface - enabled
                                  Message ID - enabled
                                  Quality of service - enabled
    Adapter -Specific Message Properties
    set Adapter -specific Message Properties - enabled
    URL parameters - enabled
    parameter 1(URLParamOne) - username
    parameter 2(URLParamTwo)-password
    parameter3(URLParamThree)-to
    parameter4(URLParamFour)-from
    parameter5(URLParamFive)-text
    After the configureations..The structture is not getting created as per the url format . In runtime PO system is sending only - smpp/sendsms to SMS portal and getting the response as Not authorized means the username&Password&to&from&text are not hitting the SMS porta.
    Please check the configurations and guide me if any configurations were missing.
    Regards,
    Teja.

  • How to build dynamic query strings in the query using DB adapter 'Pure SQL'

    Dear Forum,
    I am building an application which will access DB to fetch some result set. The query involves retrieving data from multiple tables(nearly 10 tables). So I have created a DB adapter using 'execute pure sql' option. With this query works fine, but my inputs parameters will vary. So I need to make my query dynamic to append the query strings at runtime depending on the inputs.
    For example I have 3 input variables - input1,input2 and input3 (in my request xsd) which are used in the pure sql query. Now if I get a 4th input parameter input4 in the request, I need to append this to query string as 'AND input4=[some value]' at runtime. Otherwise my query should have only 3 parameters. Please suggest how this can be achieved.
    Regards,
    Satya.

    This is a strange requirement, depending on the columns you have and what are optional in them, one way is to have separate operations and each opeartion will have different inputs and for each operation , a different DB Adapter is called. But this way, it results in more number of operations for the service as well as more number of references in the composite. Even if you pass the column inputs to the SQL procedure, it will result in a large number of if-else cases..
    Thanks,
    N

  • HTTP Sender Adapter - URL / Query String - Posting problems ?

    Hi All,
    Scenario: Partner sending order request via HTTP adapter to XI
    I have configured my scenario and this is a sample URL I gave to Partner but when they try to post, they get "Connection Failed" error.
    http://server.cmpny.com:1234/send/test/message?
    service=Send_Order
    &namespace=urn%3Asap-com%3Adocument%3Asap%3Aidoc%3Amessages
    &interface=ORDERS.ORDERS05
    &party=ABC&qos=EO/
    Party Name : ABC
    Service : Send_Order:
    Interface: ORDERS.ORDERS05
    Namespace: urn:sap-com:document:sap:idoc:messages
    This partner has been "successfully" exchanging data for other messages using the same hostname/userid/passwd, so is there any problem my URL encoding ?
    Any help is appreciated
    Bob

    Hey
    i m not sure how u generated the URL for the scenario but the best approach would be to use the following HTTP test tool for it
    /message/266750#266750 [original link is broken]
    just use the code given by Mr.Stefan Grube .
    secondly instead of host name ,give the IP address of the XI server.
    Thanx
    Aamir

  • Receiver File Adapter - Dynamic FTP Server Address

    Hi,  I would like to pass the FTP Server address to the Receiver File Adapter as an parameter.  Is this possible and if so what Name Space / Parametr Names add to the Product to define these values.
    Thanks
    Andre

    Hi Andre,
    If you have your server as a part of your payload, thendynamic file server generation concept can be done is as follows. 
    In your server name field. just give a variable with % symbols. (eg: %file% ).
    Now, under the option Variable Name Substitution, you can give how the value has to be created.
    It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
    For the former, your give
    message:interface_name ,etc
    and for the payload part you give,
    Payload: "your element root which u wanna acecss"
    Just check this link out,
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    And read the contents under variable substitution and it will help you understand the concepts better.
    If you have any clarifications, do get back,
    Regards,
    Bhavesh

  • How to send mails to "CC" and "BCC" using receiver mail adapter dynamically

    Hi,
    Due to business requirement PI need to send mails dynamically to u201CCCu201D and u201CBCCu201D using receiver mail adapter.
    We have an option to send mails to u201CTou201D dynamically, but are there any option to send mails u201CCCu201D and u201CBCCu201D dynamically.
    Please some help to resolve the issue. Thanks
    Regards,
    Sreeramulu Konjeti.

    Hi Sreeramulu,
    As mentioned by Lucas, you can use the UDF. Inn addition to that, you need to define the Variable Headers under Variable transport binding after enabling the Adapter Specific Message Attributes.
    For the Enabling ASMA, follow the below steps and check for the variable attributes.
    Select the Advanced  tab page.
       To save adapter-specific attributes in the message header of the XI message, select Use Adapter-Specific Message Attributes and Variable Transport Binding.
    The following attributes in the message header are then available for processing:
    ○       User: (technical name: TServerLocation)
    ○       Authentication key: (technical name: TAuthKey)
    The following mail header fields are available for processing:
    ○       From: (technical name: THeaderFROM)
    ○       To: (technical name: THeaderTO)
    ○       Cc: (technical name: THeaderCC)
    ○       Bcc: (technical name: THeaderBCC)
    ○       Subject: (technical name: THeaderSUBJECT)
    ○       Reference to the mail that is to be replied to: (technical name: THeaderIN-REPLY-TO)
    ○       Reply to: (technical name: THeaderREPLY-TO)
    ○       Mail client program: (technical name: THeaderX-MAILER)
    ○       Send confirmation of receipt: (technical name: THeaderDISPOSITION-NOTIFICATION-TO)
    ○       Priority: (technical name: THeaderPRIORITY)
    ○       Importance of message: (technical name: THeaderIMPORTANCE)
       To transfer further header fields, set the relevant indicator for Variable Header. The technical names for the fields are XHeaderName1, XHeaderName2, and XHeaderName3.
    The parameters are included in the mail header under the names specified here.
    The attribute namespace for the adapter is http://sap.com/xi/XI/System/Mail.
    Thanks,

  • How to configure HTTPS in the receiver HTTP adapter ?

    Hi Guys,
    How to configure HTTPS in the HTTP receiver adapter and where i need to mention the QOS=BE in the receiver adpter.
    any suggestions or help would be appreciated
    Thanks,
    Srini

    You would need make sure that SSL is enabled on the ABAP stack . I rememver seeing a blog on SDN that shows how this is to be done.
    Once you have SSL enabled in the ABAP stack ( you would also need to install the cryptographic libraries as a part of this exercise) , you would be able to use HTTPS and also provide the necessary digital certificates etc.
    I have tried this with SOAP adapters etc but havent with the HTTP adapter but I dont see why this should be any different.
    Regards,
    Bhavesh

Maybe you are looking for

  • F4IF_INT_TABLE_VALUE_REQUEST in me53n

    Hi all, in customer tab data of me53n, i added field zzafnam. when i added AT SELECTION-SCREEN ON VALUE-REQUEST FOR eban-zzafnam. in the module input, error occurs indicating that the POV should be done after endmodule..how can i fix this? shall i de

  • How can I get Siri to not see some iCal calendars?

    When I ask to see my calendar, Siri shows calendars that I want to supress. I have some iCal calendars with misc info (warranties, medicines, etc.) that I turn off in iCal, off on the phone calendar. But Siri shows me (for ex: "19 meetings"" when I a

  • ? Unable to update adobe content viewer for desktop.

    To Dps Users, Having downloaded the new adobe content viewer 2.3.1 through itunes and installed it onto my ipad. I now find I cannot update the desktop version this still remains at 2.3.0 anyone any advise how to get the most current version onto my

  • How to get past red screen on Galaxy s4?

    I tried to restart my phone this morning and it is now stuck at the red screen that says "Verizon".  Any suggestions?

  • How to move iTunes form pc to mac

    I originally loaded iTunes onto my PC. I have now bought a MacBook and need to know how to move my iTunes library from my PC to my Mac. How do I do this?