HTTPService.send doesnt send anny data

Hi all,
I have a serious problem when my application is online, i cant send anny data with HTTPService.send command. but when locally it does.
When i click the button tho send the data it doesnt even try to connect here is my code and i cant find the problem. I hope some one can point me in the right direction
here's my code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/halo"
    minWidth="700" minHeight="715" width="700" height="715"
    xmlns:upload="services.upload.*"
    creationComplete="initVars()"
    >
protected function btn_publish_clickHandler(event:MouseEvent):void
               var idioot:int = 1;
                var text_veld:String = new String();
                text_veld = tekst_stuk.text
                                            obj.user = idioot;
                                            obj.titel = titel.text;
                                            obj.keywords = zoek_data.text;
                                            obj.text = tekst_stuk.text;                                           
                                            if(voor_geld.text != null)
                                                obj.price_off = voor_geld.text + "." + voor_geld_cent.text;
                                            else if(korting_input.text != null)
                                                obj.price_off = korting_input.text;
                                            if(korting_radio.selected == true)
                                                obj.price = geld.text + "." + geld_cent.text;
                                                obj.price_type = "p";
                                            else if(gratis_radio.selected == true)
                                                obj.price = "0";
                                                obj.price_type = "g";
                                            else if(van_voor_radio.selected == true)
                                                obj.price = geld.text + "." + geld_cent.text;
                                                obj.price_type = "m";
                                            obj.img_1 = img.source;
                                            obj.img_2 = img_2.source;
                                            obj.img_3 = img_3.source;
                                            obj.img_4 = img_4.source;
            private function send_data_event(e:Event):void
                send_data.send(obj);
                send_data.showBusyCursor;
    <fx:Declarations>
        <mx:HTTPService id="send_data" method="POST" url="http://someURL"  resultFormat="text" useProxy="false"/>
    </fx:Declarations>
<mx:Image x="525" y="559" source="buttonpubliceren.png" width="150" height="30" id="btn_publish" click="btn_publish_clickHandler(event);" />

The function executes when hij press the Image button:
the new code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/halo"
    minWidth="700" minHeight="715" width="700" height="715"
    xmlns:upload="services.upload.*"
    creationComplete="initVars()"
    >
protected function btn_publish_clickHandler(event:MouseEvent):void
               var idioot:int = 1;
                var text_veld:String = new String();
                text_veld = tekst_stuk.text
                                            obj.user = idioot;
                                            obj.titel = titel.text;
                                            obj.keywords = zoek_data.text;
                                            obj.text = tekst_stuk.text;                                           
                                            if(voor_geld.text != null)
                                                obj.price_off = voor_geld.text + "." + voor_geld_cent.text;
                                            else if(korting_input.text != null)
                                                obj.price_off = korting_input.text;
                                            if(korting_radio.selected == true)
                                                obj.price = geld.text + "." + geld_cent.text;
                                                obj.price_type = "p";
                                            else if(gratis_radio.selected == true)
                                                obj.price = "0";
                                                obj.price_type = "g";
                                            else if(van_voor_radio.selected == true)
                                                obj.price = geld.text + "." + geld_cent.text;
                                                obj.price_type = "m";
                                            obj.img_1 = img.source;
                                            obj.img_2 = img_2.source;
                                            obj.img_3 = img_3.source;
                                            obj.img_4 = img_4.source;
                                           send_data.send(obj);
                                           send_data.showBusyCursor
    <fx:Declarations>
        <mx:HTTPService id="send_data" method="POST" url="http://someURL" resultFormat="text" useProxy="false"/>
    </fx:Declarations>
<mx:Image x="525" y="559" source="buttonpubliceren.png" width="150" height="30" id="btn_publish" click="btn_publish_clickHandler(event);" />

Similar Messages

  • HTTPService send large data

    Hi, All.
    I need transfer a big data module (aprox.10-20 MB) from
    client to server. I'm using HTTPService.send(params) to send this.
    But I get a problem on 600K and more volume. It take a long time
    (40 sec. and more on 500-600K). Its inredable to transfer so little
    data for big time!
    And at another hand, I can read big data module by
    HTTPService (12 MB and more) for 10-15 seconds!
    Why it can be, and how to solute this?
    Thanks... (sorry for bad english :) )

    Hi, All.
    I need transfer a big data module (aprox.10-20 MB) from
    client to server. I'm using HTTPService.send(params) to send this.
    But I get a problem on 600K and more volume. It take a long time
    (40 sec. and more on 500-600K). Its inredable to transfer so little
    data for big time!
    And at another hand, I can read big data module by
    HTTPService (12 MB and more) for 10-15 seconds!
    Why it can be, and how to solute this?
    Thanks... (sorry for bad english :) )

  • Httpservice.send() resulting in two http requests

    hi,
    I am using HTTPService() to send some xml data inside an HTTP
    POST request. But very often, i do
    see this resulting in two local ports being opened and the
    http request being sent out twice, once from each port.
    is this possible in some race condition?
    thanks,
    Sunil

    some snippets of my code:
    //build the http request
    var request:HTTPService = new HTTPService();
    request.method = "post";
    request.headers = headers[request.method];
    request.url = httpServer;
    request.resultFormat = HTTPService.RESULT_FORMAT_TEXT;
    request.contentType = "text/xml";
    request.addEventListener(InvokeEvent.INVOKE , httpInvoke,
    false);
    i do see the invoke callback only being called once. That
    makes me guess that from the application code, httpservice.send()
    is called only once.
    any help will be great.

  • Send POST-Data does not work

    Hi all,
    I am new to Flex so I try some stuff to get myself into
    AS/Flex in a good way (I hope :)).
    I wrote a small class that encapsulates the HTTPService class
    using AS. Then I tried to send some data and I get a response from
    my server but the POST-Data I try to send does not come up.
    Everything else seems to wokr in my class...
    Code attached!!!
    Anyone knows why there is no POST-Data sent to my PHP? When I
    alert the contents of my _objPostData.objPostData I get the Data I
    entered in my edtLoginUsername/edtLoginPassword. So what goes
    Wrong???
    Thx
    polysign

    "polysign.lu" <[email protected]> wrote in
    message
    news:gc7dga$ise$[email protected]..
    > Hi all,
    >
    > I am new to Flex so I try some stuff to get myself into
    AS/Flex in a good
    > way
    > (I hope :)).
    > I wrote a small class that encapsulates the HTTPService
    class using AS.
    > Then I
    > tried to send some data and I get a response from my
    server but the
    > POST-Data I
    > try to send does not come up. Everything else seems to
    wokr in my class...
    >
    > Code attached!!!
    >
    > Anyone knows why there is no POST-Data sent to my PHP?
    When I alert the
    > contents of my _objPostData.objPostData I get the Data I
    entered in my
    > edtLoginUsername/edtLoginPassword. So what goes Wrong???
    Are you SURE you're sure that no post data is getting sent?
    To me it just
    looks like you're not actually WAITING for the result by
    attaching an event
    listener to the result event. Instead, you're trying to read
    the result
    event immediately.
    HTH;
    Amy

  • Unable to send the data entered in sap portal

    Hi
    All
    i am trying to configure and test  Leave Request  from portal. When, we create the leave request and submit for the first time, it is giving the error/message Unable to send the data entered However, if do a submit for the second time, the same leave request, it sends the leave request.
    Please share your valuable thoughts or solutions.Thanks in advance.
    Tanks
    Rafi Shaik

    Hi Rafi,
    We are also facing similar kind of issue.
    When i select type of leave as annual it is giving an error message as
    " Parameter  missing in call of method BUILD_ACTOR_SELECT_CLAUSE in class CA_PT_REQ_ACTOR "
    But when i select some other leave type and click review it is working fine, again if i click on previous step and change the leave type to annual it is working fine without giving any error message.
    Please let us know how you have solved your issue?
    Thanks.
    -Suresh

  • How to send Array data using Post Method?

    Var array = $_POST['myData'];
    array[0] => 'ABC'
    array[1] => 'DEF'
    how to improve this code to support send array data...?
    String url ="http://xxxxx/test.php";
    String[] arraystr={"ABC", "DEF", "EDFF"}
    String parameter = "myData=" +arraystr;    // no support this
    Strint str = postMrthod(url, parameter );
    public static String postMethod(String url, String parameter) {
            StringBuffer b = new StringBuffer("");
            HttpConnection hc = null;
            InputStream in = null;
            OutputStream out = null;
            try {
                hc = (HttpConnection) Connector.open(url);
                hc.setRequestMethod(HttpConnection.POST);
                hc.setRequestProperty("CONTENT-TYPE", "application/x-www-form-urlencoded");
                hc.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0");
                out = hc.openOutputStream();
                byte postmsg[] = parameter.getBytes();
                for (int i = 0; i < postmsg.length; i++) {
                    out.write(postmsg);
    out.flush();
    in = hc.openInputStream();
    int ch;
    while ((ch = in.read()) != -1) {
    b.append((char) ch);
    } catch (IOException e) {
    e.printStackTrace();
    try {
    if (in != null) {
    in.close();
    if (hc != null) {
    hc.close();
    } catch (IOException e) {
    e.printStackTrace();
    return b.toString().trim();

    yes, you can send integer value like this. But I think you have to put quotes around <%= TAMID%> i.e.
    <input type="hidden" id="HTTP_CVHTAMID"
    name="HTTP_CVHTAMID" value= "<%= TAMID%>" >

  • Can I just send the data to NIC's buffer in LV? (how to access data link layer?)

    Now, I need to send something over network, yet those are not packed in TCP/IP or IPX packet, them are just some data a device can understand.
    So the problem I met is seems I cann't send the data into NIC's buffer(I can do that in C, yet I want to use LabVIEW to do that)
    And I don't want to do that by using a CIN, every time the program call or exit the CIN,there will be a delay, it's would bring me a bad impace to my application.
    So is there anyone can help me with that? I really need some master can give me a comfirm!

    I'm not an expert on network communication, so maybe you can explain how data can travel on an IP based network without being wrapped in some packets from a protocol like TCP or UDP? Maybe it's possible for LabVIEW to do what you want, or maybe compiling your C code into a DLL (no need for a CIN) and calling that will be fast enough for what you want.
    In any case, I think I can answer one question:
    So, how long would we have to expect LV add/improve these functions? Could it be in next minor update?
    Not likely, nor is it likely to be in any other version soon. LabVIEW is not built to handle this sort of thing any more than PHP or perl are and I don't think NI will change it to be able to do so. For that you have C, which you can call through a DLL. Some DLLs are supported on RT targets as well, but I'm not sure what the criteria are. They are probably listed somewhere on this site.
    I assume that calling a DLL in an RT target will hurt your determinism, but communication code should not be time-critical code, unless your application is an application which requires high speed data transfers and synchronization between different nodes.
    Try to take over the world!

  • Error while sending the data using input schedule

    Dear Friends,
    I am unable to send the data using input schedule due to following error is occur while sending the data.
    The Error Message : Member (H1) of dimension (ENTITY) is not a base member (parent or formula)
    Can anyone please help me to resolve the above error.
    Thanks and regards,
    MD.

    Hi,
    You are trying to send data to a parent/node, you can only send data in BPC to lowest-level children (base mamabers) of any dimension.
    "H1" is a parent in the entity dimension so you should try sending to a child.
    Tom.

  • 'unable to send print data' on HP Laserjet 1536dnf MFP

    Hi there,
    I'm running an iMac with OSX 10.6.8. Via an USB cable I have attached a HP Laserjet 1536dnf MFP to the iMac.
    I also use this printer to print via wifi (i.e. through the iMac) with my MacBook Pro (with OSX 10.7.3).
    Suddenly today the printer stopped working via my MacBook Pro. I get an error message: 'unable to send print data'.
    I have checked my antivirus etc., but that does not appear to be the problem. I have also updated the firmware of the printer, without success.
    Can somebody help me out? Is the OS difference the problem? But until today that hasn't been a problem.
    Thank you very much! Regards, Luc.

    Hi jemenake
    I understand you lost connection with the network for the Laserjet 1536 through ethernet connection.
    Disconnect the routers power cable, wait 10 seconds, then reconnect the power cable. Wait till it's ready. The router might not be finding the printer on the network.
    If this doesn't resolve the issue continue to the next steps.
    Print a  configuration report from the  LaserJet 1536dnf.
    Press the Setup button, (the one with the wrench on it)
    reports, press OK, Config Report, press OK.
    Check to see if the ip address is valid.
    If you have a valid ip address then delete and add the printer on the mac, the driver might have become corrupted.
    Delete printer on mac.
    Click on the Apple, click System & Preferences,then click the Print & Scan icon (on some systems this may be displayed as Print & Fax),highlight your printer name and click the  button on the bottom left corner of the screen.
    Add printer on the mac.
    Click on the Apple, click System & Preferences, and then click the Print & Scan icon (on some systems this may be displayed as Print & Fax),click add a printer, then select the printer from the list, make sure the printer listed beside use or print: shows proper printer name and not airprint, (airprint is a preinstalled apple driver with basic funtionality if on 10.8) add it in.
    If the ip address is not valid please let me know.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How to send the data from mac pc to External drive

    how to send the data from mac pc to External HDD
    or Pen Drive but with out deleting the preview as data

    You can use "Finder", which is in your dock, to copy files from your iMac folders over to the external hard drive.
    Hope this helps

  • How to send multiple data for a single element

    Hi All,
    I have a requirement where I have to send multiple data for single element per single transaction. For example
    Id details
    1 abcd
    1 efgh
    1 def
    Now, when I am selecting this ID from database, I have to get all the details in a single xsd like
    <id>1</id>
    ---><details>abcd</details>
    <details>efgh</details>
    <details>def</details>
    Thanks

    Hi,
    The following XSLT...
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
    <xsl:variable name="root" select="/"/>
    <root>
    <xsl:for-each select="distinct-values(/root/entry/id)">
    <xsl:variable name="id" select="."/>
    <entry>
    <id><xsl:value-of select="$id"/></id>
    <xsl:for-each select="$root/root/entry[id = $id]">
    <details><xsl:value-of select="details"/></details>
    </xsl:for-each>
    </entry>
    </xsl:for-each>
    </root>
    </xsl:template>
    </xsl:stylesheet>Will work for a document like this...
    <root>
    <entry>
    <id>1</id>
    <details>detail1</details>
    </entry>
    <entry>
    <id>1</id>
    <details>detail2</details>
    </entry>
    <entry>
    <id>2</id>
    <details>detail3</details>
    </entry>
    </root>Hope this helps...
    Cheers,
    Vlad

  • How to send joystick data over TCP connection

    Hi all,
    I am a long time Labview discussion forum user for learning, but this is my first time posting a question, I hope somebody can help me!
    In the attached VI I am trying to send data from a joystick over a TCP connection. I can send data fine using the TCP examples (in fact the majority of my VI is just a copy of the example). However I am to the point where I do not know how to send all the data necessary (3 axis data, 12 buttons, and the POV data) over TCP. Strings, clusters, and arrays were never my strong suite and converting between them is a nightmare for me.
    Basically I am trying to send each axis data (X,Y, and Z), button data (12 buttons), and POV data (the POV data will be calculated to adjust the position of a camera, so the immediate data is not important, I will add functions to add the change in the button movements to write a standing position for two servos [pan and tilt], for which that I will need to send over the TCP connection) over the TCP connection to control various cameras and motors. I don't know if it is posible to send that much data over a TCP connection in one write VI through a string, and also how to separate the string on the other side in order to control the client VI.
    Again, the actual TCP communication I get, and can operate fine, just formatting all the data into a string (or whatever is required) so that I can unpack on the other side is the issue here.
    Another question I have (not impotant to get the program running just might make it easier on me) is can a TCP server (which sends the data to the client) also recieve data back from the client on the same port ( for example sensor data and digital positions [on,off])? Or do I need to set up two TCP communication loops with the first client acting as the server on a different port than the first, which then sends the data to the original server, which also has a client TCP configuration in another loop? I hope this makes sense...
    One final question.....I already have a solution to this but using labview for the entirety of this project would be nice. I use skype to stream 1080p video from a webcam to my computer so I can view live feed. Can labview do this? This would be awesome if so, I am just not sure if the communication protocols in use could support real time (or as close as possible to streaming) for 1080p video.
    Thanks all in advance for your help,
    Physicsnole
    Attachments:
    cameraserver.vi ‏24 KB
    cameraclient.vi ‏18 KB

    Physicsnole wrote:
    In the attached VI I am trying to send data from a joystick over a TCP connection. I can send data fine using the TCP examples (in fact the majority of my VI is just a copy of the example). However I am to the point where I do not know how to send all the data necessary (3 axis data, 12 buttons, and the POV data) over TCP. Strings, clusters, and arrays were never my strong suite and converting between them is a nightmare for me.
    Well, you cast the axis info cluster to a string, but then you cast it back to an array of DBL. Thatr's not compatible. You should probably cast it back to an "axis info" cluster of exactly the same type. Go the the other VI and right-click the cluster wire to create a constant. Now move that diagram cluster constant to the other VI and use it as type.
    Your default ports don't seem to match. You seem to have client and server roles confused. In the sever you create a listener, but then you start sending packets, even though no connection is established. The connection needs to be initiated by the client.
    Your client stops the loop the first time a timeout is encountered. Shouldn't that be more permanent? Also, please retain code clarity and avoid unecessary complexities. For example, replace the "not or" with a plain "or" and change the loop to "stop if true"
    Physicsnole wrote:
    Basically I am trying to send each axis data (X,Y, and Z), button data (12 buttons), and POV data (the POV data will be calculated to adjust the position of a camera, so the immediate data is not important, I will add functions to add the change in the button movements to write a standing position for two servos [pan and tilt], for which that I will need to send over the TCP connection) over the TCP connection to control various cameras and motors. I don't know if it is posible to send that much data over a TCP connection in one write VI through a string, and also how to separate the string on the other side in order to control the client VI.
    You can send as much as you want. The casting to/from string is the same as described above.
    Physicsnole wrote:
    Another question I have (not impotant to get the program running just might make it easier on me) is can a TCP server (which sends the data to the client) also recieve data back from the client on the same port ( for example sensor data and digital positions [on,off])? Or do I need to set up two TCP communication loops with the first client acting as the server on a different port than the first, which then sends the data to the original server, which also has a client TCP configuration in another loop? I hope this makes sense..
    The primary function of a "server" is to wait for a connection and then communicate with the client once a conenction is established. An established TCP/IP connection is fully two-way and both sides can send and receive.
    LabVIEW Champion . Do more with less code and in less time .

  • I need to find out how much wifi data my apps are using. I have a very limited amount of wifi data, and I am exceeding my monthly allowance. Apparently, even apps I think are not open are sending/receiving data through the wifi and using up my allowance.

    I need to find out how much wifi data my apps are using. I am on a very limited amount of WiFi data each month, which I am regularly exceeding. I have been told to work out which of my apps is using the data. Also, I think I have closed an app by double clicking the home button, then swiping the app up - is this the way to close it, or will it still be sending/receiving data?

    Go into your Settings : General : and turn off background refresh for your apps.  In Settings : Mail  turn Fetch new data to OFF and Load Remote Images to OFF.  This will mean that Mail will only check for messages when you actually use it, and all your advertising junk mail won't have all the images in it.
    Turn off push notifications every chance you get.
    Make sure you are actually quitting apps:  to quit apps press the Home button twice and you should see a bunch of smaller screen images for every open app.  To quit the app swipe from the screen image (not the icon) upward off the top of the iPad.  You can swipe left and right to see more open apps, but there must be no left-right movement on the screen when you swipe upward to close the app.
    Turn off your internet connection when you do not need it.  The easiest way to do this is to swipe up from the bottom of you screen to get the control centre, and then touch the airplane to turn on airplane mode.  You can repeat this sequence to turn it back on again when you need it.  Most especially turn airplane mode on whenever you are sleeping your iPad for long periods.  This will save battery life too.  OR actually turn your iPad off - which means holding the power key down for several seconds until the red swipe bar appears, and then swipe to turn it off.  If you go this route, note that it will take longer to turn on then it takes to wake from sleep.

  • Unable to check send workout data in itunes to setup account

    after setup my nikeplus account the automatic send workout data box in itunes will not be selected to enter my account details. does anyone know who to resove this problem.

    do you have the latest itunes ?
    it might take some time for the account to be created.
    otherwise try reinstall itunes.

  • T-code F.27 or F.61 send raw data (tab delimited) to customers statements

    To enable intercompany customers to reconcile their accounts with ease we want to give them an excel file of all open items.
    Our thoughts are to use T-code F.27 (standard transaction for generating account statements) or F.61 and instead of sending a form, we would like to send raw data (tab delimited) which can easily be opened in excel to their email address.
    Each time I try I can only get a pdf or fixed file.
    Has anyone else done this?
    How to do, create this?
    Export text file to SAP Gui ?
    Many thanks for any ideas or help
    Edited by: Christine Kendall on Mar 16, 2010 6:00 PM
    *has anyone else extracted info to send to customers in format that can be amended i.e excel ? *

    Hi
    do you find a solution for your issue? Or did anyone else know how to send raw data instead of the pdf or fixed file from transaction F.61?
    Thanks for any ideas or help
    Axel

Maybe you are looking for

  • Mac office 2008......

    Hey all, i'm just about to buy office 2004 for my macbook...can anyone explain what the difference with the office 2008 that was announced today??i basically just need it for word(writing essays) and powerpoint(class presentations)but at the same tim

  • Widescreen preview mode, how to disable?

    hello everyone i already have a project that i made using the templates in idvd 08,my project was shot in 16x9 anamorphic and then i put it on a 4x3 sequence so it will letterbox on normal 4x3 televisions, when i hit the preview button and played my

  • Drag and Drop emails to the desktop

    When I select an email and try to drag it to the desktop nothing happens. This is possible in Entourage. Is it possible in Mail? Am I doing something wrong? PBG4 12, 2 iMacs G5 (20 & 17)   Mac OS X (10.4.4)  

  • Excise in Consignment Process

    Hi All, Somebody please explain how we create excise invoice in consignment sales process during: Fill up, Issue, Return, & Pick up. Will be suitably rewarded. Ravi

  • Slideshow Captions in Different Positions

    Is it possible to have the captions in a slideshow in different places on the slides?  I uncheck "Edit Together" but when I move the caption in 1 slide they move in all of them.