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.
Similar Messages
-
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 .. -
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,
MarkHi Stefan,
Thanks for the reply. It solved my issue by adding the prolog in the xml.
Regards,
Mark -
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,
DaveThank 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, "&" )
["&" 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
VibhorHii
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 -
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://.. -
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 -
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 AMIt 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'
); -
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,
NandaHi Aamir ,
Thanks for the response.
Tried both but still same issue .
Any more inputs .
Cheers,
Nanda -
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.
-
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,
HelgeHi 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 -
Explicitly setting the query string in http get request
Hi All,
We are trying to use the query string parameter to send a GET request to a vendor. The parameter value is a string concatenated with xml ie. String=<xml></xml> It seems the vendor is reading this value as string and Looking for "<XML>" to strip out the values. The problem in OSB is when I concatenate the fn:concat("String=",<XML/>) the acutal value is translated to "String=<XML/>. Is there a way to explicitly set the value so the < doesn't get encoded to < ? the odd thing is that only the left less than bracket get encoded. Any help would be most appreciated...
thanks,
Matt
version of OSB:
Service Bus 10gR3
Oracle Service Bus Version: [WebLogic Oracle Service Bus 10.3 Sat May 30 06:12:38 EDT 2009 1223943 ]
Oracle Weblogic Server Version: [WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967 ]The left side bracket is actually getting encode as amplt; (this forum encoded it :))
-
QSUF (Query string url filter) and SQL Server reporting services report viewer parameters
Hi,
this is my issue:
I have a SQL Server reporting services web part on a page with a report with 1 parameter, lets say it's a client list
Then i have a QSUF that will be used to filter the clients list through the URL
However, once i connect the filter and the report viewer web part, the parameter goes away and is no longer accessible
I'd like to somehow keep the parameter visible, in case there is no parameter sent through the URL, i would like the user to be able to choose a client from the parameter drop down list
I saw that there is a "send empty if no values are passed" option, but i can't seem to get this working properly and i don't know if this option will make the parameter visible again
Any help would be appreciated
Thanks.Hi,
According to your post, my understanding is that the query string url filter web part not worked well with SQL server reproting services web part.
Did you use the Wiki page layout in your environment?
You can change the page to a web part page, then check whether it work.
There is a similar thread for your reference.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/4d7584e3-8e1a-48bf-9346-32f8cb480dd1/query-string-url-filter-web-part?forum=sharepointgeneralprevious
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
How do I add a record's primary key to a query string and add that to an .xml catalog?
Hello everyone,
I am using Dreamweaver CS3 on a MacBook Pro Leopard 10.5.6 and MAMP 1.7. I am also teaching myself how to work with PHP and MySQL, using David Powers book The Essential Guide to Dreamweaver CS3.
I am trying to create a wedding photography web site, with a personal page after login, which will display the photographs of the customers wedding.
The same page will also be a catalog/shopping cart, so the customer can choose which photo's they want, and pay for them. (I am aware that there are instructions in The Essential Guide in chapter 15 page 515, on how to redirect to a personal page, but it doesn't fully cover what I am asking).
I have already created the login success page, which greets users by name, as per the instructions in The Essential Guide. I have also created a catalog page. However my catalog page is not calling information from the database, instead it is taking information from an XML page using PHP.
I would like to insert a list menu on the login success page, which lists the customers name, and when they select their name they will then select a link that will take them to a personal page with just their wedding photographs.
I am unsure of how to pass the customer_id, in what will be the username list menu, to the page which will contain the customers set of wedding images.
Is it the same process used in chapter 14 where you add a record's primary key to a query string?
I am asking because when I set up a recordset from the MySQL database it lists the images as witten names not actual images, I have tried calling the images with PHP code but it just doesn't work.
The catalog page I have set up at the moment is not calling the images from the database, but directly from the image folder.
Is what I am trying to do possible?
If so how do I pass the customer_id and username to a recordset and link that recordset to the xml catalog so the customers personal wedding images are displayed on the catalog page for the shopping cart? I need step by step instructions, or maybe a link to a good tutorial.
Can somebody help me please?
Thankyou.QuickTime 7 can set the poster frame, but I've not had much success with it. This is what QuickTime 7 Help says about this topic:
+A "poster frame" is a still image of a movie that represents the movie in places like the Finder. The default poster frame is the first frame in the movie. You can change the poster frame.+
+To change a movie's poster frame:+
+In QuickTime Player 7, drag the playhead (or use the arrow keys to move the playhead) to the desired frame.+
+Choose View > Set Poster Frame.+
+To view a movie's poster frame, choose View > "Go to Poster Frame."+
If you don't have QuickTime 7 (version 7.6.6) it can be installed from your Snow Leopard disc using a custom install. Otherwise download it from this Apple site: http://support.apple.com/kb/DL923
John -
How to get the original query string in an event receiver when dialogs are enabled
I have scenario where I am adding a document to a document library which has an external data column on it. My goal for this column is to have it automatically populated with an appropriate value based on original query string to the page. The general
idea is that I am on a custom page that has various webparts on it including a view of my document library that is context sensative based on the query string, and I want to use that context sensitivity not just to filter the list but also when adding documents.
I have been searching around for solutions to this problem all day and have gotten this far:
I have an event receiver attached to my document library that handles the ItemAdded event syncronously (as such I have the new list item available to me). In that event receiver I am able to set the column values as required. Where I am stuck is on getting
the value from the query string that I need to actually set as the column value.
Based on:
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/8cfcb299-9a55-4139-86ec-0b53b2922a54 and several similar articles/posts I have been able to get the original source Url with the query string I want via the following
code in my event receiver:
private HttpContext context;
public EventReceiver1()
context = HttpContext.Current;
public override void ItemAdded(SPItemEventProperties properties)
var originalQueryString = context.Request.QueryString["Source"];
// Parse the query string and use the value ...
The problem is that this solution breaks down if the dialogs are turned on under the advanced settings for the list. The reason the solution fails is because the "Source" query string parameter goes away and is replaced by "IsDlg" set to a value of "1".
Does anyone know how to get past this hurdle? Any help would be greatly appreciated.Hi Stuart,
The reason I'm looking for "Source" in the query string is because that is something I found to be reliable when the Dialogs are turned off. I've dug around pretty deep in the Request object to see if anything had the data I was looking for and unfortunately
it doesn't appear to be there. The
context.Request.QUeryString.ToString()
returns a rather simple one of:
List=%7b43ECDCB0-8440-4652-B067-AA20481779D7%7d&RootFolder=&IsDlg=1
and the
context.Request.UrlReferrer.Query.ToString()
has the same value.
I suspect this is due to the dual step process that takes place in adding an item to a document library where the first modal popup (which I suspect likely has the information I need) gives you the opportunity to browse to your file and then the second
dialog (maybe this is getting brought up as a result of another request which is now referring back to the original request that brought up the first dialog?) where you edit your properties.
Thanks for the try though, if you've got anything else I'd love to hear it.
Maybe you are looking for
-
Adobe Media Encoder CS5 + .MTS Files
Greetings! In the past I have used Adobe Media Encoder CS4 to convert .mts files from my Canon Vixia HF200. These were taken off an external hard drive, not in the original file structure. I converted them to Quicktime H.264 and everything worked g
-
I need to transfer a large number of emails from an excel spread sheet to form a group to send emails to. I can either use address book or transfer them to BTYahoo contacts and send from there.
-
Payment Card in SD - Unable to unpack to reduce quantity on delivery
Hi, We are implementing the payment card functionality and has the below issue. Say the order is authorized for $ 1, and it is going to authorize at the delivery stage. Say the order is for 100 and the allocation was done for 100 PCS. The delivery ne
-
I got a contact request from someone who claims to be a skype lottery agent named "skype.userlottery2012(JAMES HEROLD)" saying that I have emerged as one of your lucky winners for the year 2011 skype user's lottery. Is this a scam or do I need to add
-
SPAM IMPORT_PROPER Phase delay
Hi all, I have SOLMAN 7 EHP1 SP 24. in a windows host, with Oracle database. I just update my spam to latest version 7.01/0041 then i need to updatethe component "ST-ICO 150_700" my actual SP is 24, i need get updated to patch 0025. I add to the qu