Accessing a collection from outside of Apex without causing a HTTP redirect

First, some background:
I am running Apex version 2.2.1.00.04 on Oracle9i Enterprise Edition Release 9.2.0.7. IE 6 and Flash 9
My Apex page contains two third-party Flash controls. Each Flash control uses a passed in URL to get the data that it will display. The data that I need to pass to the Flash controls is stored in an Apex collection created in my page.
Using the technique outlined in the following posts,
Re: Accessing Collection through a DBMS.job
Re: Accessing application item value from database
I have created a stored procedure that will attach to my Apex session and query the collection. See procedure get_data below.
The URL that the Flash controls are passed is like this:
http://myhost/pls/mydad/get_data?p_user=MYUSER&p_session_id=535622580488397200&p_app_id=2332
The call to WWV_FLOW_CUSTOM_AUTH_STD.POST_LOGIN causes a HTTP redirect to the Apex at page p_app_id:1. The Flash control that initiated the request never sees the data stream that the get_data procedure is sending via HTTP.P. Instead, it sees the HTML produced by the Apex page at p_app_id:1.
Now, my question:
Is it possible to call the WWV_FLOW_CUSTOM_AUTH_STD.POST_LOGIN command in away that does not cause a HTTP redirect? If not, then is there another series of commands that will attach to an Apex session but not cause a HTTP redirect?
Thanks,
Ken
CREATE OR REPLACE procedure get_data(p_user IN VARCHAR2,
p_session_id IN VARCHAR2,
p_app_id IN VARCHAR2) as
BEGIN
APEX_CUSTOM_AUTH.DEFINE_USER_SESSION(p_user,
p_session_id );
APEX_APPLICATION.G_FLOW_ID:= p_app_id;
WWV_FLOW_CUSTOM_AUTH_STD.POST_LOGIN(p_user ,
NULL ,
p_session_id ,
p_app_id||':'||'1' );
FOR c_collection_rec IN (SELECT c001
FROM APEX_COLLECTIONS
WHERE collection_name='MY_COLLECTION')
LOOP
HTP.P(c_collection_rec.c001);
END LOOP;
END;

Ken - No way to prevent the redirect attempt, that's what the procedure is built to do. To use it otherwise is aberrant. I think you could use an on-demand process (FOO) callable from the URL that would spit the data back out. You do this by defining an application process (on-demand firing point) and callling it from the URL ( f?p=APP:0:SESSSION:APPLICATION_PROCESS=FOO). If the cookie is passed in the request (meaning you've authenticated) and authentication check passes again in your process request, the process will produce the result stream.
Scott

Similar Messages

  • Is it possible to access my TimeCapsule from outside my local network via internet? If so what is the best app  that  can help me?

    is it possible to access my TimeCapsule from outside my local network via internet? If so what is the best app  that  can help me?

    iCloud can do it..
    http://www.apple.com/au/support/icloud/back-to-my-mac/
    You need Lion and latest firmware on the TC..
    Were you hoping to use the ipad/iphone??  That maybe possible but I am not sure how.
    You cannot use windows without opening SMB to some strange port and this is going to mess with security.. you also need a static ip address from your ISP.. most private net users do not have this.
    You can do it via vpn.. you will need to buy a vpn router and bridge the TC to it.
    Just google remote access time capsule.. there are a zillion posts about it.

  • Access SAP data from xMII 12.1 without RFC or JCO

    Hi All,
    Is it possible to access/get data from SAP in xMII without RFC/ JCO call?
    Let me know if there is other option available..
    Regards,
    Sachin

    Sachin,
    As far my knowledge goes the primarily used forms of achieving MII to ERP connectivity,
    1) MII -- ERP (via RFC, IDOC's, BAPI's)
    2) MII -- PI(XI) -- ERP
    3) MII -- ESR -- ERP (Web-services)
    But, I completely concur with Mike on this, you do not need to create any function modules unless you have no other choice.
    Check this link for List of Bapi's available and their description
    [BAPI List|http://www.sapbapi.com/bapi-list/]
    If none of the BAPI's really meets your requirement then you can go for "RFC_READ_TABLE" this RFC accepts the SAP table name and desired column names. (in a way you will be accessing the SAP DB you are looking for...)
    Yet, if none of the above options suffices your requirement only then you go for writing a custom Function module.
    [Writing Function Module|http://abaplovers.blogspot.com/2008/02/creating-function-module-in-sap-abap.html]
    Good Luck!!
    Regards,
    Adarsh

  • HT204053 I have downloaded Lion onto my MacBook Pro.  My husband and I share a desktop.  Can download Lion onto the desktop from my Apple ID without causing problems for my husband's Apple ID use.

    I have downloaded Lion onto my MacBook Pro.  My husband and I share a desktop.  Can we download Lion onto the desktop from my Apple ID without causing problems for my husband's Apple ID use?

    Yes. In the future, however, only you will be able to update Lion because it will now require your Apple ID.

  • Trying to access my 851w from outside my lan, but can access inside fine

    Hi,
    I purchased a 851w to use as my home router and to learn more about the cisco IOS. I have been spending some time studying for CCENT/CCNA and so far I have enjoyed learning as I go. However, I am having problems accessing this router from a remote location via ssh. I can access it just fine from my lan, but not outside it from another location. Currently, I am not using this router for internet access or anything else other than learning about the IOS, and it is connected to a basic dlink wireless router dir-615. I have port forwarding setup on the dlink that any traffic coming in on port 22 is directed to the 851w at 192.168.0.150. I also have the 851w connected with a crossover cable to a switch that is connected to the dlink router.
    Like I said, I can connect just fine from my lan, but can't connect from outside. I have tried a few different things but nothing works. I also use Teraterm to connect, but have tried Putty too. I also use ddns to access it, but I have also tried the wan ip address of the dlink with no luck.
    Could someone please take a look at my very basic running config and explain what I might need to do different?
    Thanks in advance.
    Sean

    Hi and thanks a bunch for your quick response.
    No, I can't ping anything other than my main router which I have setup as the gateway so why is that? For example,
    ip default-gateway 192.168.0.1
    Wouldn't it automatically send anything it doesn't know about to the 192.168.0.0/24 router?
    I have one of the switch ports, Fast Ethernet 0, connected to another switch connected to the dlink router. I have tried different ports but it didn't change anything. I don't have anything connected to the wan port of the 851w. I was trying to simulate remote access of a switch on an internal network. My next step would be to make the 851w my default router and then try to access it from the outside, but I wanted to succeed this way first.
    optimus#show ip int br
    Interface IP-Address OK? Method Status Protocol
    Dot11Radio0 unassigned YES unset administratively down down
    FastEthernet0 unassigned YES unset up up
    FastEthernet1 unassigned YES unset down down
    FastEthernet2 unassigned YES unset down down
    FastEthernet3 unassigned YES unset up down
    FastEthernet4 unassigned YES unset administratively down down
    Vlan1 192.168.0.150 YES manual up up
    Yes, my internal pc is on the 192.168.0.0/24 subnet.
    Best Regards,
    Sean

  • Windows server anywhere access not working from outside the lan

    ok so heres what i have done so far i installed windows server 2012 essential on a computer followed the wizard to add a couple of users and gave them anywhere access followed the wizard and ran the anywhere access to completion setup the ports 80 and 443
    on router manually to forward to my router ip 10.0.1.20 
    my server is still on dynamic ip
    then i go to a windows 7 ultimate computer whent to the connect url downloaded the connect tool ran to completion and restarted the computer so far everything working inside my lan i can connect to the server see shared files and open the dash management
    now i go outside connect to a wired or wireless network of a friend and try to connect to http://xxxxxxx.remotewebaccess.com
    but am unsuccessfull then i check on my network adapter page and see that there is a new adapter that is called as my remotewebaccess.com so i click on it and try to connect but still fails........
    please help what am i doing wrong?
    i checked everywhere and cant find a solution.
    Thank you

    It is probably better to assign a static IP to your server, but OTH it may not change.  But you really hate to go off on vacation and have the ip change and everything break.
    Now you said you forwarded ports 80 and 443 to your router, I bet you meant your server?
    Do www.whatismyip.com and from outside ping xxxx.remotewebaccess.com and make sure they are true same ip
    From a PC or the server on your network go to grc.com and do shields up and make sure it reports 80 and 443 as open
    Grey

  • Access Oracle 9i from a Client Application without Oracle Client Install.

    Is it possible to access an Oracle Database from a Client Application without having an oracle Client Installation ?
    I want to write a program that connect to an Oracle Server. I use Borland C++. But my Programs only works with having the Client Oracle Software installed on the Client. Is there any way to realise this ?

    The way that 99% of the people that want to do this manage is to write Java code that connects to the database via JDBC, using Oracle's thin JDBC driver.
    If you absolutely have to use C++, you can purchase thin ODBC drivers from third parties (DataDirect for example) that will connect to the database without the Oracle client. I'm not aware of any thin, free ODBC drivers.
    Justin

  • How to make the application access the fonts from outside library?

    actually the fonts located in the library are considered from the system/library/fonts path. is it possible to make it accessible from outside that path through programatically for indesign applications? if yes means, how to do it?
    thanks
    subha

    i think am not mentioned the question clear.
    the fonts menu inside InDesign lists the fonts from
    for mac: System/Library/Fonts
                  Adobe InDesign CS2/fonts
    for windows: C:\WINDOWS\Fonts
    C:\Program Files\Adobe\Adobe InDesign CS2\Fonts
    is it possible to list the font from someother folder rather than this folders.
    by
    Subha...

  • Setting Session item from outside of APEX

    Hi All,
    First a little background: I've been learning APEX for a couple of days now. I'm evaluating it to see if it's suitable for the application we need to make, otherwise it'll be done in PHP.
    The application needs to act as a web service client: as requirement number 1, we need to interface with a 3rd party IDP server to get a SAML2 assertion. This assertion will later need to be injected into the SOAP header of web service call, but I'm not worrying about this bit for now.
    I've gotten half way there. I've created a new page with a process at runs before the header. This can handle creating our authn request (which is a bit of xml) and forward the browser onto the IPD server for authentication (with anthn request set as a GET parameter that has been deflated and base64 encoded). Whoo!
    Once the IDP server has finished authenticating the user, a http post (with the SAML assertion we need) is done back to the application.
    Now as I understand it, I can't get the IDP to post back to an APEX page directly, as we need to access the HTTP Post data. So, I plan on writing a PL/SQL procedure (which I've added to the FLOWS ok list to be called via the PL/SQL gateway).
    So inside this procedure, I'm not in APEX, but I'll want to keep track of the SAML Assertion (which will just be a CLOB for arguments sake) such that I can use in APEX for when I make my SOAP call. If it was down to me, I'd have a table with session_id and the assertion, and just query that from APEX.
    BUT this 3rd party that we have to work with is the government, and they've given us rules. We aren't allow to store these assertions, they can only exist in the scope of a users session (no storing in files, databases, anything that could be permanently stored on the hard drive), virtual memory is ok though.
    So, after all that useless info, onto my question: Can I set an apex application item from this pl/sql procedure? If so, how would one do it? Now I understand that in the background, an item is probably written to a table, but I'm going to gloss over that for now (in the hope that the people certifying the app do the same).
    Thanks for all the help,
    Tim

    Tim,
    I am working a similar issue, but slightly different. I am trying to determine if we are trying to answer the same question.
    Here is what I understand about your initial posting...
    You are authenticating a user.. that must make a call to some "place".. then wait for that place to respond with an OK message, without storing the value. There is enough lag in this process that you want the response from "the place" that you want the response from "the place" to change the session value in the Web based UI. Is this correct?
    Issue: Even if you did have this process setting the session value, the client web browser would not respond unless it was in some type of checking loop.
    If you are in a checking loop, you would have the ability to call the "service" in some sort of checking mode from APEX.
    If this is a smooth process (no major lag), you could manage it within a custom authentication scheme. Is this the area you are working in?
    I understand your need to set from an outside connection. But if you are using the outside database connection method, you are isolated to a different session... I would believe (I do not work for Oracle) for security reasons.
    --Tim St. Hilaire                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to access OBI Dashboards from outside Network.

    Hi Gurus
    I want to access MY Dashboards Reports from any where on internet. My BI server is available on LAN so how i ;ll make it available to access it from any place.
    Any Reference DOC, Blog or guide.
    Regards
    Sher

    Sher Ullah Baig wrote:
    I want to access MY Dashboards Reports from any where on internet. My BI server is available on LAN so how i ;ll make it available to access it from any place. I've just re-read your original question - If you want the BI Server accessible on the internet you need it visibile outside of your firewall - Your network people should be able to set up any routing you need to achieve this.
    Chances are if you have a VM running on an internal server, you wont have this access by default - there are various security hoops to jump through to get this working.

  • How can I easily access my photos from outside iPhoto?

    My wife recently got a Mac for the first time and imported all of her photos into iPhoto. Today she was trying to upload some photos to a community website. The website had a Browse button that opened a Finder window. We were quite surprised to find that there was no easy way to access her photos. It seems like they are all in one big 100GB database file. We can "open" that file and in a Master subarea we can find the photos arranged by the date of import.
    Is there a way to easily access photos, and find the ones we want? On Windows here photos were just kept in the file system with Albums correspondiong to directories and both Picasa and Windows Live Photo Gallery worked fine with this approach, and it was trivial to find a photo from the explorer.

    Is there a way to easily access photos, and find the ones we want?
    Absolutely
    Under the media heading in the lower left of the browse window click on Photos  ==> iPhoto and you events/albums/etc from iPhoto will be there - not sure how much easier it could be
    LN

  • Access NLB cluster from outside

    I crated nlb cluster using 3 servers, one is used to create cluster and other 2 for hosts. I assigned 192.168.1.2 for cluster ip. Every server has two nic and one of nic connected to public ip. My worry is how can I access cluster from out side? As mentioned
    in
    this question I asked my server provider enable NAT and this is their reply. "We dont offer any NAT solutions but you can easy set up one of your servers to perform this."
    can anyone tell me how can I do this?
    chapneox

    Hi chapneox,
    Could you clarify your question, I am not quite understand your description “can I access cluster from out side”. You can use the “Internet” IP address as your NLB virtual
    IP address. But if your cluster after NAT or firewall you must map the NLB port from the NAT or firewall device.
    More information:
    Establish Communication in NLB Clusters
    http://technet.microsoft.com/en-us/library/bb687525.aspx
    I’m glad to be of help to you!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Accessing the SMTP from outside network through ASA 5510

    hello good people,
    I have an issue with my mail server(SME Server) which is behind a Cisco ASA 5500(firewall)  problem is that if one leaves my network they can receive but can not  send email via my SMTP also internal people can only send if they use  the IP address of the server rather than the domain (mail.xxxx.com) any pointers will be appreciated.
    here is my layout
    ISP - ASA 5510 - LAN (includes mailserver)
    Kind regards

    Hello George,
    If you have public DNS , in order to access the servers hosted inside using their fqdn, then you need  to have dns doctoring. but unfortunately, you are using port address translation ( not a one to one nat) which doesnt work well with dns doctoring..
    I assume you can solve this issue with alias command as follows
    alias (inside) 199.199.199.99    255.255.255.255
    Also, for the other issue can you try to configure an SMTP inspection as follows
    policy-map type inspect esmtp esmtp_map
    parameters
    allow-tls
    policy-map global_policy
    class inspection_default
    inspect esmtp
    Hope this helps
    Regards
    Harish

  • Access Action Listener from outside

    Hi,
    I have been working on a clone of the classic Minesweeper game to get better acquainted with Java and programming in general.
    If you were to open up Minesweeper, you might come to understand my difficulty better. Notice how, if you press on any of the buttons (or anywhere on the pane), the smily face reacts with a surprised look.
    I have my clone set up with a JPanel component which contains a grid (for the buttons) of JButtons. I can't figure out how to get my MouseListener within my JPanel to notice when a button is clicked. Any ideas on how to get this interaction to work?
    Thanks!

    Read the tutorial: [How to Use Buttons, Check Boxes, and Radio Buttons|http://java.sun.com/docs/books/tutorial/uiswing/components/button.html].
    You should add an ActionListener to each of the buttons and not a MouseListener to the JPanel.

  • BT home hub access from outside LAN

    I have set up my home hub so that I can access my Nas from outside my LAN, this works fine.
    My problem is I need to access my home hub settings and set up proxy settings so that I can access BBC iplayer etc as I am abroad for the next few weeks and I forgot to do it before I left.
    Whenever I try to connect to the hub I go straight to the Nas
    How can I get to the home hub without being at home to change the settings ?

    I had the same problem, using Firefox. My home network was working fine until BT installed a new homehub and it took a little while for me to discover the problem: an IP Address conflict. My previous Router used the stanard http://192.168.0.1 address, whereas the BT Homehub uses http://192.168.1.254. Ordinarily that wouldn't matter, except that I have TP-Link wireless access unit on the FreeSat box, which just happens to have the same default address used by BT.
    I changed the IP address on the TP-Link unit and the BT Homehub pages now respond instantly.
    Hope this helps.

Maybe you are looking for

  • How can I redirect my feed on MobileMe to another server?

    iTunes is currently pulling my feed from my MobileMe account: http://web.me.com/myusername/podcast.xml. I want to move the feed to another server. I understand that I can create a new feed, publish it, and then edit the old feed with the <itunes:new-

  • Screen sharing and vnc not working

    OSX Lion Screen Sharing I was using screen sharing on OSX Leopard using VNC Viewer.  Even after upgrading to OSX Lion this worked ok.  But then the other day there was an update to screen sharing which I applied.  This first, switced screen sharing o

  • What is the ac power cord for

    i dont know why i have it

  • Illustrator CC Links Pallet

    Having problems with the Links pallet:  When I have large files linked into Illustrator I am not able to select the image to check the modified date or relink new images.  The pallet will flash on me when trying to select the image in the links palle

  • Chart Comb with  Static Table.

    Hello everyone! I have a graph made of bars and one static table below (with a column sorting). I need that the graph actualize automatically when I click on the table to see the next 10 items in the column sorting button. Thank you for your help! Ed