HTTP adapter: Query string with no payload

Hi,
I have a requirement where I want to send an HTTP request where the only thing I need to send is the Query String (ie. no payload details)
Is this possible to do this ?
I know how to set the query string (TargetURL) but unsure how to suppress the payload without any issues.
Knd regards
Colin.

Hi Collin, Did you find the solution? I am facing similar problem where I do not want to send any xml/payload. Invoke PI interface with URL only. Please help.

Similar Messages

  • Query string with flash lite, possible?

    I searched the net and Adobe website, read the complete i-mode document provided by Docomo (on adobe site) and couldn't find any information on the subject. I'm trying to figure out if this is something specific to the Japanese market or all flash lite players react the same way. I will explain my issue.
    In flash, you can pass variables as a query string like this:
    http://www.mysite.com/myFlashFile.swf?val=1&val2=2 (etc)
    Those variables will end up on the root time line. After doing some testing, I cannot receive any of those variables if the version of flash lite is lower than 3.0. It happens for Docomo, AU, Softbank carrier, all japanese ones I tested. If I test with the Docomo emulator, I can reproduce this behavior.
    Does this behavior is by design?  Nobody seems to be talking about it.
    Thank you for any information on the subject.

    Hi Collin, Did you find the solution? I am facing similar problem where I do not want to send any xml/payload. Invoke PI interface with URL only. Please help.

  • Soap adapter query string

    Sending Soap adapter question
    If the message id is duplicate , the message is rejected?
    How does the Query string look?
    thanks
    kumar

    Hi Kumar,
    the query string is
    http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel
    The message ID is give by XI, it is allways unique.
    Have a look to <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm">Configuring the Sender SOAP Adapter</a>
    Regards,
    Udo

  • Xi payload as attachments in http adapter

    hi,
    we have the requirement to send comma separated text file as attachemnt over http. is it possible to send and receive payload as attachments in http/s adapter in XI? if yes, how?
    regards,
    Rashmi

    dont think HTTP supports attachment.....at least in sender mode.....correct me if worng....
    For some reading: http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    From above link:
    The plain HTTP adapter only evaluates the main payload of a received XML message. Additional attachments are ignored and not forwarded.
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Jul 3, 2009 3:15 PM

  • Query String parameter with # in its value

    Hi,
    When I send a parameter in a query string with value that has the hash symbol (i.e #) that parameter when fetched returns null. Why so?
    Eg :
    Page 1 :
    String strTest = "1#2";
    <a href="test.jsp?test=<%=strTest%>">Page 2: test.jsp
    String strTest=request.getParameter("test");
    System.out.println("strTest : "+strTest); // Prints null
    Thanks</a>

    Hi,
    When I send a parameter in a query string with value
    that has the hash symbol (i.e #) that parameter when
    fetched returns null. Why so?
    Its a special character and the url has to be 'rewritten properly.
    >
    Page 1 :
    String strTest = "1#2";
    <a href="test.jsp?test=<%=strTest%>">>
    </a>
    try this
    <%
      String strTest = java.net.URLEncoder.encode("1#2");
    %>
      <a href = "test.jsp?test=<%=strTest%>">test</a>and check the output in your next jsp :)
    ram.

  • Need to customize the variable info sent to a query string

    Hello,
    I have run into a small issue while trying to send user data
    selected from 1 DateField and 3 ComboBoxes in a form. Everything is
    sending correctly except for the DateField, when sent is places
    much un-needed info in the query string.
    For example, this is what I need it to look like in the query
    string:
    https://reservations.ihotelier.com/onescreen.cfm?LanguageID=1&HotelID=13337&DateIn=09%2F28 %2F2006&Children=1&Adults=3&Length=3
    Here is what is actually showing up right now:
    https://reservations.ihotelier.com/onescreen.cfm?LanguageID=1&HotelID=13337&DateIn=Thu%20S ep%2028%2000%3A00%3A00%20GMT%2D0700%202006&Children=1&Adults=3&Length=3
    You'll notice that everything is fine except for the DateIn
    variable. So, I guess I'm asking if anyone knows how I can
    customize the data that is sent to the query string, with specific
    characters (example: I don't need "%20" in the DateIn, however I
    need those to be "%2F"), as well as the name of the month to be
    just the month number. I need to get rid of all the time
    information in the DateIn variable. Please, any help would be
    greatly appreciated! Thank you in advance! :)
    Here is my action script right now:

    The functionality of the GIS map was important. I was given the email for the person in charge of the map, who helped me out. It appeared that he was able to outline the road in the neighborhood that I needed to focus on. That provided a parcel ID, which in turn made it possible to focus in on the proper area. This is supposition on my part; perhaps he has other info that gave him the parcel ID.
    I'm not a huge fan of Flash on other than desktops and laptops, but it is what it is, client needs to use it, I need to help the client out!
    B

  • Can I encrypt a string with RSA encryption using DBMS_CRYPTO?

    We have an web application that does a redirect thru a database package to a 3rd party site. They would like us to encrypt the querystring that is passed using RSA encryption. The example that they've given us (below) uses the RSA cryptographic service available in .NET. Is it possible to do this using DBMS_CRYPTO or some other method in Oracle?
    Below are the steps outlined to use the key to generate the encrypted URL
    2.1 Initialize Service
    The RSA cryptographic service must be initialized with the provided public key. Below is sample code that can be used to initialize the service using the public key
    C#
    private void InitializeRSA( string keyFileName )
    CspParameters cspParams = new CspParameters( );
    cspParams.Flags = CspProviderFlags.UseMachineKeyStore;
    m_sp = new RSACryptoServiceProvider( cspParams );
    //Load the public key from the supplied XML file
    StreamReader reader = new StreamReader( keyFileName );
    string data = reader.ReadToEnd( );
    //Initializes the public key
    m_sp.FromXmlString( data );
    2.2 Encryption method
    Create a method that will encrypt a string using the cryptographic service that was initialized in step 2.1. The encryption method should convert the encryption method to Base64 to avoid special characters from being passed in the URL. Below is sample code that uses the method created in step 2.1 that can be used to encrypt a string.
    C#
    private string RSAEncrypt( string plainText )
    ASCIIEncoding enc = new ASCIIEncoding( );
    int numOfChars = enc.GetByteCount( plainText );
    byte[ ] tempArray = enc.GetBytes( plainText );
    byte[ ] result = m_sp.Encrypt( tempArray, false );
    //Use Base64 encoding since the encrypted string will be used in an URL
    return Convert.ToBase64String( result );
    2.3 Generate URL
    The query string must contain the necessary data elements configured for you school in Step 1. This will always include the Client Number and the Student ID of the student clicking on the link.
    1.     Build the query string with Client Number and Student ID
    C#
    string queryString = “schoolId=1234&studentId=1234”;
    The StudentCenter website will validate that the query string was generated within 3 minutes of the request being received on our server. A time stamp in UTC universal time (to prevent time zone inconsistencies) will need to be attached to the query string.
    2.     Get the current UTC timestamp, and add the timestamp to the query string
    C#
    string dateTime = DateTime.UtcNow.ToString(“yyyy-MM-dd HH:mm:ss”);
    queryString += “&currentDT=” + dateTime;
    Now that the query string has all of the necessary parameters, use the RSAEncrypt (Step 2.2) method created early to encrypt the string. The encrypted string must also be url encoded to escape any special characters.
    3.     Encrypt and Url Encode the query string
    C#
    string rsa = RSAEncrypt(querystring);
    string eqs = Server.UrlEncode(rsa);
    The encrypted query string is now appended to the Url (https://studentcenter.uhcsr.com), and is now ready for navigation.
    4.     Build the URL
    C#
    string url = “https://studentcenter.uhcsr.com/custom.aspx?eqs=” + eqs

    The documentation lists all the encyrption types:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_crypto.htm#ARPLS664

  • SOAP adapter works synchronously with EO !??

    Hello,
    I configured Sender SOAP Adapter with EO. The SOAP adapter follow the message to a BPM.
    All of this process work fine with the HTTP Adapter (that I use for test) but when I use the SOAP Adapter I receive a strange error message :
    <b>BPE_ADAPTER.SYNCHONOUS_MESSAGE
    The process does not support the given synchronous interface or does not support synchronous messages</b>
    Does anybody know how to sovle this ?
    Thanks
    Regards
    Chris

    I always have the return code 0. This process work with the HTTP Adapter but not with the SOAP Adapter.
    The only thing I change was the adapter in the sender agreement.
    This is the begeening of the XI Message :
      <!--  Call Adapter  -->
      <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30">
      <SOAP:Header>
      <SAP:Main xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" versionMajor="003" versionMinor="000" SOAP:mustUnderstand="1" wsu:Id="wsuid-main-92ABE13F5C59AB7FE10000000A1551F7">
      <SAP:MessageClass>ApplicationMessage</SAP:MessageClass>
      <SAP:ProcessingMode><b>synchronous</b></SAP:ProcessingMode>
      <SAP:MessageId>1CCC5F0F-F2BB-BC49-BDC3-A6C2F209A645</SAP:MessageId>
      <SAP:TimeSent>2006-12-26T11:50:36Z</SAP:TimeSent>
      <SAP:Sender>
      <SAP:Service>TOFFStaging</SAP:Service>
      <SAP:Interface namespace="http://t.be/xi/TOFF/LeadCreation">MIOA0001_Offer</SAP:Interface>
      </SAP:Sender>
      <SAP:Receiver>
      <SAP:Party agency="" scheme="" />
      <SAP:Service>BP0001_ToffLeadCreation</SAP:Service>
      <SAP:Interface namespace="http://t.be/xi/PI/LeadCreation">MIAA0001_Offer</SAP:Interface>
      <SAP:Mapping notRequired="M">
      <SAP:ObjectId>rrEYQC3BMRyBTROgtt+SaQ==</SAP:ObjectId>
      <SAP:SWCV>g2bqoJATEdu/Gvy1rBATzQ==</SAP:SWCV>
      <SAP:SP>-1</SAP:SP>
      </SAP:Mapping>
      </SAP:Receiver>
      <SAP:Interface namespace="http://t.be/xi/PI/LeadCreation">MIAA0001_Offer</SAP:Interface>
      </SAP:Main>
      <SAP:ReliableMessaging xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:QualityOfService><b>BestEffort</b></SAP:QualityOfService>
      </SAP:ReliableMessaging>
    Regards,
    Chris

  • HTTPS Receiver Adapter with POST and query String

    Hi there,
    we are currently running a http connection with an external partner. We use the plain http adapter to send documents.
    Now we want to secure the whole thing and switch to https.
    Currently we solely use the comm. channel in the directory. In the URL we include the required query string (http:/xxx/yyy<b>?msgtype=order</b>)
    As I understand, the only way to use httpS is to use a RFC Dest. Type G in sm59.
    But I am not able to add a query to the url there.
    I guess that it is not an option to ask our partner to search the posted document for parameters. We were already happy that they were able to do it like we have it.
    Does anyone has an idea how we could include a query in the url or give somehow the partner explicitly the info about the message type we send?
    Thanks in advance,
    Helge

    Hi Helge,
    as far as I know this should be possible with SP16 by using the settings in the adapter configuration.
    We had this requirement, but with SP15 it isn´t possible.
    Have a look on the documentation
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Chapter Adapter-Specific Message Attributes
    There you can use up to 6 URL Parameters. I never used it, if you have SP16, try it.
    Regards
    Thomas

  • 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

  • Action and Query-String in HTTP Adapter

    Hi,
    I am doing an IDOC -> SAP PI -> HTTP scenario
    HTTP application is external party (using Party).
    I have to build the URL Dynamically; so I use Dynamic Configuration in Message Mapping.
    The URL format (from help.sap.com) is http://<hostname:port>/<path>?<query-string>
    Hostname and port are know to me.
    From where will I get information about path and query-string , are they mandatory?
    help.sap.com has given details about sender HTTP: http://help.sap.com/saphelp_nwpi711/helpdata/en/44/8f54b8b01e3673e10000000a114a6b/content.htm but i want to know about receiver HTTP.
    Is there any example available?
    Thank you,
    Pankaj.

    > So I have to ask the External Parties to send the message (to SAP PI) to the URL (http://hostname:port/<action>?<query-string>)?
    When you replace the varaibles, yes.
    > Any idea about my original question (about action and query-string in receiver channel's URL) or should I use a RFC destination there (now it will be Type G I suppose)
    Just put the URL of the receiver.
    > There is SSL configuration also between External Parties and SAP PI (if this information is required).
    In that case, you put a URL with https://..

  • 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

  • In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String

    In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .

    Hi Srinath,
    The below blog might be useful
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
    PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
    regards,
    Harish

  • Reading parameters from Query string : Sender SOAP adapter.

    Hello Experts,
    I have a SOAP to SOAP scenario. Here we will have multiple receivers and dynamic receiver determination is needed.
    The sender will send a Value in Query string of URL to sender SOAP adapter. This value in Query string parameter will decide the receiver at runtime.
    I need to know, how can we read values from Query string of incoming call? I did tried to search blogs & forum threads but unfortunately not able to hit the right links.
    Any inputs will be of great help.
    Should i use "Use Query String" on sender soap channel? I tried it, but i was not able to find any query string parameters in SOAP header or payload.
    Please guide me, its bit urgent.
    Regards,
    Abhi.

    > But the argument provided from their side is: They are using standard XSD and this service is provided out of box with sender application.
    If they can add a URL parameter, they can also add a field to the structure.
    > They cant control the value mapping of parameters in payload to the extent required to implement this change.
    Adding a new field to the structure would not affect any existing mapping.
    > Since they have this custom requirement of multiple receivers & receiver to be determined at runtime, they need to go for Query string.
    This can be done based on any field of the payload.
    > I need to find a way to read the query string in any case.
    This is not supported by SOAP adapter.
    > Can I use one of the header parameters to be mapped to this value  (By selecting "Use Query string" & "Keep Headers" flag in sender CC) & then extract this value from header using Dynamic configuration ?
    This feature works only for XI header fields, like message ID or QoS.
    Not for individual parameters.

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

Maybe you are looking for