Dynamic http query string

I had posted this question earlier in PI forum and it was suggested that I could use ABAP Webdynpro .
My requirement is to use execute a dynamic http query string and process the Output file that is returned. I would like to know if this would be feasible from ABAP web dynpro (we have ecc 6.0) ?

Hi,
  can you tell what File Format you need to process,,,
As it is easy to call dynamic query-string using "OPEN_WINDOW "URL using Webdynpro ..

Similar Messages

  • HTTP Query String

    We use mod_plsql to create webpages. One annoying charactersitic of this framework is having to explicitly define all Query String parameters that a procedure could possibly accept.
    We have some jquery stuff we're developing that retrieves data from oracle using PL/SQL procedures over http (mostly XML formated, but we're also lookg at JSON). We have 1 tool we're exavluating that does this, but fails, and we don't know why...I think it's because it is sending some query string parameters that are undocumented and we're not getting any notice to what might be missing/sent.
    So, my question is, is there a way to tell what query string parameters are being passed to a procedure? Assuming it is failing by sending undefined parameters of course...

    oBean wrote:
    We use mod_plsql to create webpages. One annoying charactersitic of this framework is having to explicitly define all Query String parameters that a procedure could possibly accept.Why not use the 2 parameter call interface instead?
    You add an exclamation mark to the URL call to the procedure. E.g.
    instead of
    http://my-server.mydomain.com/orcl/scott.myproc?name=John&code=123
    the call is changed to the following:
    http://my-server.mydomain.com/orcl/!scott.myproc?name=John&code=123
    This instructs mod_plsql to pass the query string as name-value arrays. The signature of procedure SCOTT.MyProc will thus no longer look like this
    create or replace procedure MyProc( name vachar2, code number ) is ...
    But as follows:
    create or replace procedure MyProc( name_array owa_util.vc_arr, value_array owa_util.vc_arr ) is
    The procedure can now deal with variable query strings from the web browser.

  • Query String in HTTP Body

    Hi Experts,
    Good day! I'd like to consult with you about an HTTP scenario of mine. The data flow goes like this
    SAP <-(ABAP Proxy)-> PI <-(SOAP)-> 3rd Party
    I'm currently using SOAP HTTP but without the SOAP Envelope so that it would behave like an HTTP Adapter. My problem is about using HTTP Post, the 3rd Party needs the HTTP Query String in the HTTP Body.For example:
    http://forums.sdn.sap.com/post!default.jspa?forumID=44
    The http://forums.sdn.sap.com/post!default.jspa? would be the URL in the SOAP Receiver ( Solved by dynamic configuration), but the HTTP Body should only contain ?forumID=44 and no xml tags in between.
    Inputs will be greatly appreciated.
    Regards,
    Mark

    Hi Stefan,
    Thanks for the reply. It solved my issue by adding the prolog in the xml.
    Regards,
    Mark

  • Parsing query string

    I am using ALSB 3.0
    If I parse the query string using the following:
    $inbound/ctx:transport/ctx:request/http:query-string/text()
    when the passed data is the following:
    https://webservicesdev.someplace.com/testing/order/163625/results?p1=Normal&p2=Complete
    I get the following string:
    p1=Normal
    Why does my query string not contain all of the parameters? How do I get access to the p2=Complete part of the query string?
    Thanks,
    Dave

    Thank you both for your response. The problem was more related to how I was attempting to test the service. I was using a curl script on a Unix box and my query string was being truncated at the & character. Once I tried testing directly with a browser, then I was seeing the full query string.
    Once I had the full query string I was able to use the following to parse the query string:
    let $parsed_query_string := tokenize( $a_query_string, "&amp;" )
    ["&" above is really "& amp ;" without the spaces]
    Where $a_query_string had previously been assigned to string( $inbound/ctx:transport/ctx:request/http:query-string/text() )
    Thanks again,
    Dave
    Edited by: dschmidt on Jan 25, 2011 1:53 PM

  • How to send query string to OSB Business Service?

    Hi
    I need to call a Servlet which is accepting http get request.
    My system design is
    I have a web service interface that I need to expose to Front end application. I am using Proxy service for this.
    Then I have a servlet at end system and using Business service to send request to servlet.
    I need to pass username, password, jndi context and payload using url encoding.
    What all steps do I need to follow for this? How to create query string , which variable I need to play with inbound or outbound?
    I have gone through all the answers on this forum but could not understand much.
    Thanks
    Vibhor

    Hii
    I am still unable to send http get request to end service.
    In flow I have setted $outbound/transport/request-http/query-string too.
    But I have to send request with url encoding.
    How to encode query string and how can I check whether my request is going correctly or not, is there any variable in which complete url would be stored.
    Thanks
    Vibhor
    Edited by: Vibhor Rastogi on Sep 15, 2010 9:49 AM

  • 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

  • Dynamic Interface in Query String does not work?

    Hi All,
    i have exposed a interface as a webservice with the help of the Define Web Service in Configuration Builder.
    In the SOAP Sender Communication Channel i have checked the options Use Encoded Headers and Use Query String
    The url of the webservice looks like this:
    http://server:50000/XISOAPAdapter/MessageServlet?channel=:BS:CC_SOAP_SENDER&version=3.0&Sender.Service=BS&Interface=http%3A%2F%2Fnamespace.com%2Fabc%2HER%2FGlobal%5EMIOS_GetDetails
    This works which is great, i can now retrieve supplier details with this webservice. Now i want to expose another interface as a webservice. That URL looks like this:
    http://server:50000/XISOAPAdapter/MessageServlet?channel=:BS:CC_SOAP_SENDER&version=3.0&Sender.Service=BS&Interface=http%3A%2F%2Fnamespace.com%2Fabc%2HER%2FGlobal%5EMIOS_EventBooking
    As you can see i have a different interface in the URL's of the Webservices. I want to have both make use of the same Communication Channel which is possible according to [SAP Note 856597|https://websmp130.sap-ag.de/sap(bD1ubCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=856597] See Q: Can I set the interface name dynamically from the client? also in this document : [How to Use the XI 3.0 Soap Adapter|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79]
    The problem is that when i try to call the second web service (EventBooking) that is routes to the mapping of the GetDetails interface, i can see this in SXMB_MONI. Therefore it gives an Error.
    When i try both scenarios in Configuration Builder they both work fine, only the webservice call of EventBooking ends up in the Message Mapping of GetDetail.... Why? And how to solve this?
    Anyone have experience with the feature mentioned in the SAP note?

    After some further examination it seems that both calls are picked up by the same interface. In the RWB both the messages are picked up by the MIOS_GetDetails...
    How can i fix this?

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

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

  • 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

  • Mod_plsql: /pls/apex/f HTTP-400 Missing '=' in query string or post form

    This is the message when I click the logout button. It destroys the session though. It should redirect to login page after clicking logout button.
    We are on Apex 4.1
    Bad Request
    Your browser sent a request that this server could not understand.
    mod_plsql: /pls/apex/f HTTP-400 Missing '=' in query string or post form
    Oracle-Application-Server-10g/10.1.2.2.0 Oracle-HTTP-Server Server at xxxx.xxxxx.edu Port 443
    Edited by: 965704 on Oct 30, 2012 11:42 AM

    It has been fixed but the new problem is: After signout, if I move back to previous page and click some link using <- sign then I suppose to get the login page, but i am getting
         ORA-44004: invalid qualified SQL name error message.
    The source for my login page is
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    );

  • Dynamic cell associated value as query string parameter in custom hyperlink property of KPI of scorecard in PPS SP2013

    Can we pass dynamic cell associated value [of scorecard] as query string parameter in custom hyperlink property of KPI of scorecard in PPS SP2013 , so that we can pass those values to another page 
    How to get those cell associated values and set these dynamic value as query string parameter in custom hyperlink property of KPI of scorecard in performance point services in sharepoint 2013

     I could somehow link to the table name, but that can be changed...  Any ideas?
    Not sure if this will help or not but maybe a little from several areas might point you in the right direction.
    If you are concerned about users changing the table name then you can define a name to reference the table and then if the user changes the table name then the Refers to automatically changes to the new table reference but your defined name remains the same.
    However, if users want to break a system even when you think you have it bullet proof the users come along with armour piercing bullets.
    Example:
    Insert a table (say Table1)
    Go to Define a name and insert a name of choice (eg.  ForMyTab1)
    Then click the icon at the right of the Refers to field and select the entire table including the column headers and it will automatically insert something like the following in the Refers to field.
    =Table1[#All]
    Now if a user changes the table name then Table1 will also automatically change.
    Example code to to reference the table in VBA.
    Sub Test()
        Dim wsSht1 As Worksheet
        Dim lstObj1 As ListObject
        Set wsSht1 = Worksheets("Sheet1")
        Set lstObj1 = wsSht1.ListObjects(Range("ForMyTab1").ListObject.Name)
        MsgBox lstObj1.Name
    End Sub
    Regards, OssieMac

  • Dynamic Routing Using Query String (SOAP)

    Hi Folks,
    Does anyone have any examples on how to do a dynamic routing using a query string from a SOAP Adapter. I know how to get the query string but don't know how to map for dynamic routing.
    Thanks,
    AArhyn.

    After some further examination it seems that both calls are picked up by the same interface. In the RWB both the messages are picked up by the MIOS_GetDetails...
    How can i fix this?

  • HTTP Connection to ABAP System - Query String Not Allowed message

    Hi All,
    We are trying to create HTTP Connection to ABAP System on a SAP ECC system.
    Following entries are added
    1 Connection Type: H
    2 Target Host: Host name
    3 Service Number: HTTP Port name
    4 Path Prefix: /sap/XI/engine/?type=entry
    It is not allowing me to enter Path prefix as "/sap/XI/engine/?type=entry". It is throwing a warning message as "Query String Not Allowed message".
    As per the documentation it is mentioned that -<b> If the system displays the Query String Not Allowed message, you can ignore it.</b>
    It is not allowing me to save the entries succesfully . I need to remove the path refix entry then only i am able to save other wise it is not allowing me to proceed at all.
    Please let me know what entry i can put for the same or let me know how can i ignore and proceed by saving the path prefix as "/sap/XI/engine/?type=entry".
    Please provide your valuable help on this.
    Regards,
    Nanda

    Hi Aamir ,
    Thanks for the response.
    Tried both but still same issue .
    Any more inputs .
    Cheers,
    Nanda

  • Jasper Reports Dynamic Query String

    Hi guys. Could you help me out? I'm trying to create a program with jasper reports where the query string should be dynamic. Meaning the sql queries are to change depending on certain conditions. For example, Condition A executes sqlqueryA while condition B executes sqlqueryB. All on the same report. Although of course not at the same time. Is it possible? Could you give me a sample code? I have no idea at all. Thanks.

    Hi guys. Could you help me out? I'm trying to create a program with jasper reports where the query string should be dynamic. Meaning the sql queries are to change depending on certain conditions. For example, Condition A executes sqlqueryA while condition B executes sqlqueryB. All on the same report. Although of course not at the same time. Is it possible? Could you give me a sample code? I have no idea at all. Thanks.

Maybe you are looking for

  • Issue in domain creation local deployment Error :  odi-core.jar

    Hi, I am trying to create a domain on my VM for local deployment of fincomm and Ess. But during domain creation it is failing with following errors. Error in writing to file '/scratch/software/mw_local/FMWTOOLS_11.1.1.7.0_GENERIC_130327.1838_PATCHES4

  • BUG or FEATURE ??????? pls comment

    Hello i am running iplanet message server 4.15 p6 , i have set UBE filters for not to accept mails which are destined for other then the local domain, i found that the the server is accepting mails for other domains too , infact its not delivering th

  • JDom package problem !!!

    Hi, Friends I have some problem while using JDom v1.0 from www.jdom.org since while i have seen all the examples on the net, they using org.jdom.*; package structure. but when i am using latest libs from v1.0 there is no package like org.jdom what sh

  • Sa-learn running?

    The Mail Service Guide http://images.apple.com/server/macosx/docs/Mail_Service_Admin_v10.6.pdf says that sa-learn runs every night. However, I see no sign of this in the amavis logs, nor in daily.out Under what user's crontab does it run Where is it

  • Keithley 2400 VISA driver limited resolution

    Hi, I have a Keithley 2400 sourcemeter, what I use in the +-1mA range, as a current-source. This is the driving part of a PID control. I use the official VISA drivers, and everything is okey, except that, it seems I cannot use the specified resolutio