Listen for HTTP Post in Flex

Hello,
I just have a simple question.  In my Flex program, I am trying to find a way to listen for an incoming HTTP POST message - something with functionality similar to that of the HttpListener class in C#.  I have not been able to find anything at all to help with this though, would anyone know of something like this?
Thanks.

My Flex program subscribes to changes that occur in a program on remote server.  The change notifications are sent back to my client in the form of an HTTP Post message.  The Flex program needs to be able to detect when these Posts are received.

Similar Messages

  • 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

  • Http_utl.text_write for http 'POST" does not work

    i have a proc that uses utl_http code I have seen all over on web sites for 'POST'ing to a REST web service ..... i use utl_http.write_text to write data to the request body but no data gets written ...... below are the code segments I use
    url entered directly into browser that **works fine**: http://www.media.com/admintool/Services.aspx?par_string=[{ "PAR_Transaction_Id" : 5566338, "MRI_Title_Name" : "4 Wheel & Off Road"}]
    calling routine:
    declare
    l_url varchar2 (300) := 'http://www.media.com/admintool/Services.aspx';
    l_data clob;
    l_query varchar2(32767);
    begin
    dbms_output.enable(3000000);
    l_data := '[{
    "PAR_Transaction_Id" : 5566338,
    "MRI_Title_Name" : "4 Wheel & Off Road"}]
    http_util_pkg.http_post(
    p_url_in => l_url, p_data_in => l_data);
    end;
    called routine segment:
    l_http_req := utl_http.begin_request (p_url_in, 'POST');
    -- Set the HTTP request headers
    utl_http.set_header(l_http_req, 'User-Agent', 'Mozilla/4.0');
    utl_http.set_header(l_http_req, 'content-type', p_data_type);
    utl_http.set_header(l_http_req, 'content-length', v_length);
    -- Write the data to the body of the HTTP request
    utl_http.write_text(l_http_req, 'par_string=');
    while v_index <= v_length
    loop
    utl_http.write_text(l_http_req, substr(p_data_in, v_index, 4000));
    dbms_output.put_line ('data = ' || substr(p_data_in, v_index, 4000));
    v_index := v_index + 4000;
    end loop;
    results .... you can see below that the header content length is non-zero but the response header says there is no content, so something is haywire with the write_text method
    url = http://www.media.com/admintool/Services.aspx
    length in data = 1271
    http package; url = http://www.media.com/admintool/Services.aspx
    after set authentication
    after write headers
    data = [{
    "PAR_Transaction_Id" : 5566338,
    "MRI_Title_Name" : "4 Wheel & Off Road"}]
    after write text
    status code: 200
    reason phrase: OK
    Connection: close
    Date: Tue, 06 Apr 2010 03:59:27 GMT
    Server: Microsoft-IIS/6.0
    X-Powered-By: ASP.NET
    X-AspNet-Version: 2.0.50727
    Cache-Control: private
    Content-Length: 0 *************** response header says no content !!!
    can you help me figure out what is wrong with the utl_http.write_text method ???
    thank you

    Please do not resurrect old threads - rather ask your question in a new thread. If need be, add a URL in your new thread posting that refers to the old thread. Also add as much relevant details as possible. Your Oracle version (all 4 digits). Your o/s. If possible, sample code and data that can be used as a test case. Complete error details. And what the intent of the code is (i.e. what the actual problem is that you're trying to solve).
    As for HTTP post - works just fine as far as I've used it.

  • Example-WSDL for http-POST binding

    Hi all,
    i'm looking for an example-WSDL of a http-POST binded service. I was searching in the ~\OraBPELPM_1\integration\orabpel\samples\tutorials\702.Bindings\HTTPBinding directory, but its the example is of a http-get binded service.
    I need to know, how the message-definitions for the input have to look like (in the message-section and in the operation-section) when using an XML-input message.
    thanks in advance
    Albrecht

    Gee! i didn't know there are some more samples! :o)
    Thanks Clemens, i will test it.

  • HTTP authentication key for hand shake at receiver side for HTTP POST

    Hi All,
    HTTP post receiver system is expecting an authentication key to be send by PI HTTP_AAE adapter while posting XML message to them.
    The receiver system has a utility program in JAVA to validate this key. Has anyone done this kind of scenario in PI 7.31/7.4
    How does this simple authentication mechanism works? If this doesn't work, we have to rely on just uname/pwd but that is not really recommended for our landscape because of security concerns. So the key is the only better option as of now. Please help!!
    thx
    mike
    Attached some import packages used in the java util program in the receiver system. for  validating the authentication key send by PI
    import java.security.MessageDigest;
    import java.util.Calendar;
    import java.security.NoSuchAlgorithmException;
    import java.io.UnsupportedEncodingException;
    import java.io.IOException;
    import sun.misc.BASE64Encoder;
    import sun.misc.BASE64Decoder;
    I am not pasting the java program utility here due to proprietary reasons. thx for understanding

    Hi Michael
    You can construct the target URL to include the query parameter/value using Dynamic Configuration in Message Mapping.
    This previously worked on the ABAP HTTP adapter, but from the thread below it seems it is not supported on the HTTP_AAE. Not sure what version you are on, and if SAP has provided support for this in the latest SPs.
    HTTP_AAE Adapater - using of dynamic url parame... | SCN
    If HTTP_AAE approach can't work for you, you can use the SOAP adapter - check ASMA and "Do not use SOAP envelope"
    Here is a snippet of the code you can use in a UDF for your message mapping
       //write your code here
      DynamicConfiguration conf = (DynamicConfiguration)container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP", "TServerLocation");
    String url = "http://local.yahooapis.com/MapsService/V1/mapImage?appid=" + appid + "--&amp;street=" + street + "&city=" + city + "&zip=" + zip;
    conf.put(key, url);
    return appid;
    Rgds
    Eng Swee

  • How to make the App Server Listen for HTTPS

    I have a web application that needs to be accesible over an HTTPS connection, not HTTP.
    When I deploy an application with Java Studio Creator to the App Server it is automatically set to an HTTP URL. How do I setup HTTPS ?
    Thank you in advance,
    Joe Paladin

    Looks like I should have thanked myself in advance....
    Turns out its pretty easy. Open the admin console, go to configuration, add and HTTP listener, check the security check box, and fill out the other mandatory fields like the port. Standard SSL port is 443.
    Save changes, and restart the App Server. Any deployed apps should be reachable via https://localhost:443/myWebApp
    This approach uses a default certificate that comes with the app server. Here is a link if you want to create a certificate :
    http://java.sun.com/developer/technicalArticles/WebServices/appserv8-1.html
    Joe Paladin

  • Java Mapping for HTTP Post

    Hi
    Im following this blog http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/09/12/html-form-upload-using-http-plain-adapter-with-java-mapping but I have encountered an issue which I cannot solve.
    My issue is, in addition to the required output, I am also getting unwanted XML added, which originates from the Message Type in the source Service Interface,
    i.e.
    Content-Type: multipart/form-data; boundary=--ejjeeffe1
    --ejjeeffe1
    Content-Disposition: form-data; name="event"
    Content-Type: text/plain
    Import File
    --ejjeeffe1
    Content-Disposition: form-data; name="Filename"
    Content-Type: text/plain
    TestFile.zip
    --ejjeeffe1
    Content-Disposition: form-data; name="content";filename="TestFile.zip"
    Content-Type: application/zip
    Content-Transfer-Encoding: binary
    <?xml version="1.0" encoding="UTF-8"?><__EmptyDoc></__EmptyDoc>
    --ejjeeffe1
    Any suggestions much appreciated.
    Regards
    Steve

    Hi Stephen
    The xml must be getting added in the below part of the code. It is coming from arg[0]
    You can put a check and get it removed.
    while ((len = arg0.read(buffer)) != -1) {
      arg1.write(buffer, 0, len);
    Regards
    Osman

  • Beginner question: support to HTTP POST om Oracle AS

    Hi!
    I don't know if this is a suitable forum but since i use JDeveloper and Oracle BPEL I'll try my luck here :).
    I have a Java web application built in JDeveloper and a couple of BPEL processes.
    In these processes I use Java embedding (a piece of Java code) that opens a connection to a given URL and post a XML message to this URL. I didn't have much problems creating these processes.
    Now I have to provide a support to HTTP POST on my side. Since web application and services development are quite new to me I hope someone can point me the right way to do this. The requirements I have are: I can have a single URL to which the http POSTs will be issued.
    If I understand correctly I cant use a web service since I have to enable different types of XML posts. What are my options? Can I create some kind of listener for http POSTs? Can I create a jspx that will 'wait' for http posts and than call some of mine BPEL processes? Is there a way to create a BPEL process that 'waits' for http POSTs? Are there other options.
    I'd really appreciate any pointers on this.
    Regards,
    BB.

    Frank,
    I've tried creating a Servlet listener that implements HttpSessionListener interface. Now I have two methods, sessionCreated and sessionDestroyed but I don't know where to go next. I can't find any documentation on this issue yet.
    Should I create a jspx page with form node that has method attribute set to POST or maybe I don't even need a web page? I already have a login page that has a form with method set to POSt, will this pose any kind of troubles for me?
    I apologize for any stupid questions but as I said I have no experience in doing this and las couple of days I'm searching and reading different documentation on this topic so any more pointers would be appreciated.
    BB

  • Beginner question: support to HTTP POST at Oracle AS

    I tried same post on Application Server - General forum, but had no success.
    I have a Java web application built in JDeveloper and a couple of BPEL processes.
    In these processes I use Java embedding (a piece of Java code) that opens a connection to a given URL and post a XML message to this URL. I didn't have much problems creating these processes.
    Now I have to provide a support to HTTP POST on my side. Since web application and services development are quite new to me I hope someone can point me the right way to do this. The requirements I have are: I can have a single URL to which the http POSTs will be issued.
    If I understand correctly I cant use a web service since I have to enable different types of XML posts. What are my options? Can I create some kind of listener for http POSTs? Can I create a jspx that will 'wait' for http posts and than call some of mine BPEL processes? Is there a way to create a BPEL process that 'waits' for http POSTs? Are there other options.
    I'd really appreciate any pointers on this.
    Regards,
    BB.

    Frank,
    I've tried creating a Servlet listener that implements HttpSessionListener interface. Now I have two methods, sessionCreated and sessionDestroyed but I don't know where to go next. I can't find any documentation on this issue yet.
    Should I create a jspx page with form node that has method attribute set to POST or maybe I don't even need a web page? I already have a login page that has a form with method set to POSt, will this pose any kind of troubles for me?
    I apologize for any stupid questions but as I said I have no experience in doing this and las couple of days I'm searching and reading different documentation on this topic so any more pointers would be appreciated.
    BB

  • Handling incoming "HTTP Post"

    I'm a bit confused here...
    I've Flex 3/ActionScript as front-end with Java back-end (with BlazeDS in between);
    I need to receive an incoming "HTTP Post" sent by external server (paypal IPN) to a specific URL I need to provide - notifying on specific event, and do some action in response to that event.
    > How do I implement such listener to an incoming HTTP Post in Flex?
    > What kind of setup is needed to link that listener to the relevant URL?
    Haim

    Hello,
    I have the same problem. Could anyone manage this situation?
    Thanks,
    Daniel Viero.

  • How to set mouse listener for title bar of JFrame ?

    Hi, all
    How to we can set mouse listener for title bar of JFrame ?
    Please help

    Again, why did you not state this in your original
    question? Do we have to ask you every time what your
    actual requirement is?
    As I said in your last posting, if you don't give us
    the reuqirement in you question we can't help you.
    Sometimes your solution may be on the right track
    sometimes it isn't. We waste time guessing what your
    are trying to do if you don't give us the
    requirement.
    I gave you the answer in your other posting on this
    topic. The AWTEventListener can listen to events
    other than MouseEvents.
    The Swing tutorial has a list of most of the events.
    Pick the events you want to listen for:
    http://java.sun.com/docs/books/tutorial/uiswing/events
    /handling.htmlthe first, i am sory because my requirement not clear so that it wasted everybody time.
    The second, thank for your answer
    The third, AWTEvenListener do not support listener event on title bar
    but ComponentListener can know when we can change frame position.
    please see below that ComponentListener can handle action:
    public void componentHidden(ComponentEvent e) {
            displayMessage(e.getComponent().getClass().getName() + " --- Hidden");
        public void componentMoved(ComponentEvent e) {
            displayMessage(e.getComponent().getClass().getName() + " --- Moved");
        public void componentResized(ComponentEvent e) {
            displayMessage(e.getComponent().getClass().getName() + " --- Resized ");           
        public void componentShown(ComponentEvent e) {
            displayMessage(e.getComponent().getClass().getName() + " --- Shown");
        }Thanks for all supported your knowledge, you are great !

  • How to send plain text body in HTTP Post method ?

    Hi Exeperts,
    I have a scenario http post - ptoxy. Sender sending the data in http post in plain text body (only field values will be in the body).
    how should i capture this plain text for receiver to map..
    is any udf or xsl code ?
    please guide me for achieving this requirement .
    find the attachment for http post body value.
    Regards
    Ravi

    Hi Mark,
    Thanks for your reply,
    Please share you have any udf  for this .
    can you explain me how should i map to target side.
    what are the configuration should i done in communication channel level
    Regards
    Ravinder.s

  • CSS Sorry Server for HTTPS

    How to configure Sorry server for HTTPS (443) port. Sorry server works fine with HTTP, But not with 443
    In the following config if server1 and server2 are down, the HTTP requests goes to the Sorry Server, but for HTTPS nothing is displayed. I am running the sorry server on port 81
    Please suggest
    !************************** SERVICE **************************
    service prisorry
    ip address 10.100.11.11
    keepalive type http
    keepalive port 81
    port 81
    active
    service secsorry
    ip address 10.100.11.12
    keepalive port 81
    keepalive type http
    port 81
    active
    service server1
    ip address 10.100.11.11
    keepalive type http
    keepalive port 80
    active
    service server2
    ip address 10.100.11.12
    keepalive type http
    keepalive port 80
    active
    !*************************** OWNER ***************************
    owner Loadbalancing
    content L4Rule1
    protocol tcp
    add service server2
    add service server1
    port 80
    url "/*"
    vip address 10.100.11.4
    advanced-balance sticky-srcip-dstport
    primarySorryServer prisorry
    secondarySorryServer secsorry
    active
    content L4Rule2
    protocol tcp
    add service server2
    port 443
    add service server1
    vip address 10.100.11.4
    advanced-balance sticky-srcip-dstport
    primarySorryServer prisorry
    secondarySorryServer secsorry
    application ssl
    active
    content L4Rule3
    add service server2
    protocol tcp
    port 1443
    add service server1
    vip address 10.100.11.4
    advanced-balance sticky-srcip-dstport
    primarySorryServer prisorry
    secondarySorryServer secsorry
    active
    Thanks

    I just deployed a couple 11050's the other day so my experience is limited, but I'd guess your problem is that, when using the Primary Sorry Server, you end up with clients sending HTTPS requests to an HTTP port. Having HTTPS requests redirected to HTTP ports is one thing because the client then makes an HTTP request to that port, but the way you have it above, it appears to me that the client will be talking HTTPS to port 81 on the Sorry Server, which is listening for HTTP.

  • Configure HTTP POST on arrowpoint with version 5.00

    I configured the headers rule for http post but it´s doesn´t work.
    Someone have any idea..??
    This is the config.....thanks
    service wqa01-27
    ip address 172.16.51.27
    keepalive uri "/newadmin/admin/arrow.asp"
    keepalive frequency 35
    keepalive type http
    string wqa0127
    active
    service wqa02-27
    keepalive uri "/newadmin/admin/arrow.asp"
    keepalive frequency 35
    keepalive type http
    string wqa0227
    ip address 172.16.52.27
    active
    content ar-qa-post
    vip address 200.41.112.38
    protocol tcp
    port 80
    url "/*"
    advanced-balance arrowpoint-cookie
    arrowpoint-cookie advanced
    header-field-rule POST-METHOD weight 0
    add service wqa01-27
    add service wqa02-27
    active
    !********************* HEADER FIELD GROUP *********************
    header-field-group GET-METHOD
    header-field GET request-line contain "GET"
    header-field-group POST-METHOD
    header-field POST request-line contain "POST"

    Javier,
    I would suggest you to start with something basic and than add complexity.
    Create a very simple content rule with just an ip address. no port. no protocol.
    Then add one or more servers.
    Activate.
    Give it a try like this.
    Does it work ?
    If yes, define 'protocol tcp' and 'port 80'.
    Does it work ?
    If yes, configure 'url "/*"'
    does it work ?
    If yes, configure 'advanced-balance arrowpointcookie'
    This config is explained at
    http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_tech_note09186a0080094398.shtml
    It it does not work, tell us what is not working.
    Is it the stickyness that does not work or you can't even connect to the vip address ?
    Also collect a sniffer trace on client and server.
    Thanks,
    Gilles.

  • Connect by HTTP-Post

    Hi,
    am i correct if i think that it is not possible to connect to rwservlet via http-post, only http-get.
    And that is the reason i get REP-56048 when i try it?
    Thanks.
    Regards
    Chris

    Hi,
    thanks for this suggestion. It put my on the right way, because i examined the http-request, sended by the form with paramform=yes.
    In my case a report is called with paramters which executes a sql-query on a database.
    For this a key is configured in cgicmd, that holds the DB-connection data and takes the other parameters from the url-parameters.
    Calling a report per HTTP-Post that doesnt need a database connection was easy, since it didnt need to use the cgicmd-key.
    But calling the cgicmd-key didnt work.
    The report enginge crashed:
    [2012/6/12 11:1:58:807] Exception 50125 (org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 208 completed: Maybe
         at com.sun.corba.se.internal.iiop.IIOPConnection.purge_calls(IIOPConnection.java:438)
         at com.sun.corba.se.internal.iiop.ReaderThread.run(ReaderThread.java:70)
    ): Interner Fehler org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 208 completed: Maybe
    [2012/6/12 11:1:58:807] Info 56029 (EngineManager:shutdownEngine): Shutting down engine rwEng-0
    It turns out that for HTTP-Post not the same URL as for HTTP-GET can be used.
    In contrary to GET in case of POST the cgi-cmdkey must be passed in the additional paramter "hidden_run_parameters" to make the HTTP-POST to the cgicmd-key work:
    hidden_run_parameters=your_cgicmdkey
    It is not needed as the "first paramter" in the URL anymore. Perhaps that is due the fact, that there is no specific order on post parameters (is this true?, sounds correct ;-)
    However, i still have the feeling that this is a kind of undocumented hack, as since now, i didnt find any documentation on this.
    Has anyone had any expirences with this?
    Regards
    chris

Maybe you are looking for

  • Can i hook up ethernet and use airplay on Apple tv 3rd gen?

    I would like to connect to my apple tv with an ethernet connection for fast networking from my iMac, but would still like to use airplay with iphone and ipad. Is it possible to have both ethernet connected and wifi on at the same time?

  • Making master DVD from FCP Quicktime

    Could someone please explain to me exactly what process, every step, I have to do to with my master FCP Quicktime movies in order to make a DVD master using iDVD? Its 4.8GB plus a second film of 2.4GB. Much appreciated!!!

  • WLC release 7.4.110.0 and CPI 1.2.1

    Hi fellows. I need a quick answer regarding upgrading 5508 wireless controllers currently running 7.3.112 to 7.4.110 The answer is needed to asess if I MUST or mustn't do the CPI upgrade beforehand. SInce this is for testing the functionality for app

  • DropdownByKey is not showing values from checktable

    Hi, I have a Dropdown by Key UI element and i have bound it to a context attribute whose type is PROJ-PROFL. The "Determined input help" property of the context attribute is automatically taken as check table TCJ41 (not changeable) but my UI element

  • Apex version control: what are "good practices"?

    I have made my first Apex application that is been tested right now. Once this version is released, I should want to have a stable and robust versioning system for this application. I don't have any experience with this. So any info about this issue