HTTPService Request w/XML

I am getting insanely frustrated over this.
I keep getting an error from the server saying wrong_node,
and I noticed after sniffing the HTTP post the xml is out of order
then what I have written here:
quote:
<mx:HTTPService id="shareRequest" resultFormat="e4x" url="
http://box.net/api/1.0/xml"
useProxy="false" method="POST" contentType="application/xml">
<mx:request xmlns="">
<request>
<action>public_share</action>
<api_key>v6gf5ghjppgc24n6gr</api_key>
<auth_token>ghhgn556df4s</auth_token>
<target>file</target>
<target_id>{idtxt.text}</target_id>
<password>{passwordtxt.text}</password>
<message></message><emails></emails>
</request>
</mx:request>
</mx:HTTPService>
And heres what it sends:
quote:
<request><action>public_share</action><api_key>v6mx99comslgqjth5ujb1jppgc24n6gr</api_key> <auth_token>e0903lezcyy4xetzl0772ose0drl2afs</auth_token><emails
/><message
/><password>fgg</password><target>file</target><target_id>71407783</target_id></request>
Its posting in alphabetical order and this looks like its
unacceptable to the server. Is there any way I can get around this
and get it to post in the order I want? Id really appriciate any
help.

Are you sure it is the order that the server is having
difficulty with? I would not expect that, and have not seen it with
any web server platforums I have worked with. The name=value pair
structure should make this moot. Oh, wait, i see you have changed
the contentType. I know some folks have had trouble with that. I
send my xml as strings in a normal name=value parameter.
Tracy

Similar Messages

  • HTTPService POST with XML does not declare charset encoding

    Hi all.
    I'm trying to do a HTTP POST of some XML using HTTPService
    and I've got it working apart form the fact that the HTTP message
    sent does no declare what charcater set it is using for encoding.
    As a test I send a 'ñ' character and it seems from the
    resultant bytes that the charset being used is UTF-8.
    My ActionScript is...
    var xml:XML=new XML(<root/>);
    xml.@testCharacter="ñ";
    xml.appendChild(<login/>);
    xml.login.@username="bob";
    xml.login.@password="secret";
    var httpService:HTTPService=new HTTPService();
    httpService.url='
    http://app.localhost/null';
    httpService.method="POST";
    httpService.contentType=HTTPService.CONTENT_TYPE_XML;
    httpService.request=xml;
    httpService.send();
    And what seems to get sent over the wire is (shown in
    8bit-ASCII)...
    POST /null HTTP/1.1
    Host: app.localhost
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
    rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7
    Accept:
    text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png ,*/*;q=0.5
    Accept-Language: en,en-us;q=0.7,en-gb;q=0.3
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Content-type: application/xml
    Content-length: 77
    <root testCharacter="A±">
    <login username="bob" password="secret"/>
    </root>
    Anyone know (1) how I can control what character set gets
    used for encoding and (2) how I can get either XML or HTTPService
    to declare what the encoding is?
    Thanks in advance, Neil.

    Jarod,
    XML parser product managers who might be able to help you on a parser-specific issue like this "hang out" here on OTN in the XML forum. Have you tried posting there to catch their attention? Thanks.

  • Timeout in resultHandler for HTTPService request

    Hello All,
    I have a flex application where I am calling to get data in XML format.  The data file most likely will contain 10's of thousands of records (in most cases).  What I am experiencing is a timeout in my rHandle function (see code snippets below):
    Error #1502 A Script has executed for longer than the default timeout period of 15 seconds
    My question/problem has 2 parts.
    1) how do you disable the timeout?
    2) the reading/parsing of the XML data seems to take waaaay too long.  Is there a better way?
    I put an Alert message at the top of the result handler function and it didnt trigger before the timeout message triggered.  I am reading what could be 10's of thousands of records.  Is there a better (and FASTER) way to do this than to read in XML format?  Currently, no matter what I set the httpservice requests 'timeout' value to doesnt seem to have any effect.  I get a timeout after 15 seconds every time.  I have tried setting the timeout value to -1 (as documentation suggested) and/or to some very large value (say, 1200...20 minutes).  Any and all help is appreciated.   Here is the code and an example of the XML file
    private var contactService:HTTPService = new HTTPService();
    private var xData:XML;
    private var T_Data:ArrayCollection = new ArrayCollection();
    private function get_data():void
       contactService.url="data/big_data.xml";
       contactService.format = "e4x";
       contactService.addEventListener(ResultEvent.RESULT, rHandle);
       contactService.requestTimeout = -1;
       contactService.send();
    private function rHandle(event:ResultEvent):void
       var i:int;
       xData = event.result as XML;
       for  (i=0; i < xData.el.length(); i++)
          var t:Object = new Object();
          t.cid = xData.el[i].cid; 
          t.date = xData.el[i].date; 
          t.y_axis = xData.el[i].y_axis;
          T_Data.addItem(t);
    <mx:PlotChart.....DataProvider="{T_Data}"
       <mx:horizontalAxis>
          <mx:DateTimeAxis />
       </mx:horizontalAxis>
       <mx:verticalAxis>
          <mx:LinearAxis />
       </mx:verticalAxis>
       <mx:series>
          <mx:PlotSeries id=... yField="y_axis" xField="date" />
       </mx:series>
    </mx:PlotChart.....
    contents of big_data.xml
    <xml.....>
    <data>
    <el><cid>1</cid><date>1243814400982</date><y_axis>10</y_axis></el>
    <el><cid>2</cid><date>1243814401982</date><y_axis>12</y_axis></el>
    <el><cid>3</cid><date>1243814451982</date><y_axis>44</y_axis></el>
    <el><cid>4</cid><date>1243815451730</date><y_axis>21</y_axis></el>
    .........(10s of thousands of records like this)....
    </data>

    Through trial and error, and some investigation, I found that the solution to my problem was to use remoteobject rather than httpservice.
    Flex doesnt seem to handle httpservice calls with XX meg feeds very well.

  • Status of the httpservice request?

    Im using httpservice to get XML from a live URL of a web service I run.... works great and Im just trying to make it a little more elegant and presentable... is there a way for me to have an animated busy indicator on the stage and have it sit on top (using depth control) of my list that populates with the XMl data... then based on the status of the httpservice request, toggle the depth so that when the xml has finished loading, the busy indicator drops beneath the list object (using a lower number for the depth).
    or maybe its better to have the list alpha change and just leave the busy indicator below the list -- either way -- Im trying to figure out how to use some type of listener routine (presuming thats how I'd do it) to get the status and check for some type of completion.
    heres the code Im using in FB 4.6 ...  if its a mess, please be kind... Im just beginning to dabble with FB (and having a real blast so far).
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        creationComplete="init(event)" splashScreenImage="@Embed('logo.png')"
                        title="Events Listing Demo">
    <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                            import spark.events.IndexChangeEvent;
                                  protected function init(event:FlexEvent):void
                                            lfXML.send();
                                  protected function list1_changeHandler(event:IndexChangeEvent):void
                                            navigator.pushView(Detail, event.target.selectedItem);
                                  protected function btnreload_clickHandler(event:MouseEvent):void
                                            navigator.pushView(HomeView);
                        ]]>
    </fx:Script>
    <fx:Declarations>
      <s:HTTPService id="lfXML" url="URL TO MY XML SERVICE HERE"/>
    </fx:Declarations>
              <s:List id="list1" y="191" left="10" width="460" height="407" change="list1_changeHandler(event)"
                                  contentBackgroundAlpha="90"
                                  dataProvider="{lfXML.lastResult.Events.EventListing}" depth="6"
                                  labelField="EventTitle">
    </s:List>
              <s:BusyIndicator id="indicator1" y="280" width="180" height="165" depth="5" horizontalCenter="0" />
              <s:Button id="btnreload" x="109" label="Reload Events Data" click="btnreload_clickHandler(event)"
                                    verticalCenter="301"/>
    <s:Image x="10" y="2" width="460" height="173" source="@Embed('views/logo.jpg')"/>
    </s:View>

    After making a call, HTTPService fires a FaultEvent (if there was a failure) or ResultEvent (if there was a success).
    Therefore, all you need to do is to display the busy indicator after any .send() and hide it again in response to any FaultEvent or ResultEvent.
    EG: You could do this using states like this.
    [code]
    <fx:Script>
    <![CDATA[
    import mx.events.FlexEvent;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    protected function init(event:FlexEvent):void
    lfXML.send();
    currentState = "loading";
    protected function lfXML_faultHandler(event:FaultEvent):void
    // TODO Auto-generated method stub
    currentState = "ready";
    protected function lfXML_resultHandler(event:ResultEvent):void
    // TODO Auto-generated method stub
    currentState = "ready";
    ]]>
    </fx:Script>
    <s:states>
    <s:State name="ready" />
    <s:State name="loading" />
    </s:states>
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    <s:HTTPService id="lfXML"
    fault="lfXML_faultHandler(event)"
    result="lfXML_resultHandler(event)"
    />
    </fx:Declarations>
    <s:List id="list1" y="191" left="10" width="460" height="407" change="list1_changeHandler(event)"
    contentBackgroundAlpha="90"
    dataProvider="{lfXML.lastResult.Events.EventListing}" depth="6"
    labelField="EventTitle">
    </s:List>
    <s:BusyIndicator id="indicator1" y="280" width="180" height="165" depth="5" horizontalCenter="0"
    includeIn="loading"
    />
    <s:Button id="btnreload" x="109" label="Reload Events Data" click="btnreload_clickHandler(event)"
    verticalCenter="301"/>
    <s:Image x="10" y="2" width="460" height="173" source="@Embed('views/logo.jpg')"/>
    [/code]

  • HTTPService request for each View inside a ViewStack

    Can someone point me in the right direction to have a
    httpservice request for each view inside my viewstack?
    <mx:ViewStack id="views">
    <mx:Canvas id="view0">
    </mx:Canvas>
    <mx:Canvas id="view1">
    </mx:Canvas>
    </mx:ViewStack>
    Can someone whip together a quick example or just point me in
    the right direction?
    Thanks

    Ahh, don't do that.
    Use a central HTTPService instance, and use AsyncToken to
    keep track of which result goes where. Some code snippets below.
    Tracy
    Sample code using HTTPService, e4x, handler function to
    populate a list item.
    Also shows usage of AsyncToken.
    The DataGrid tag:
    <mx:DataGrid id="dg" dataProvider="{_xlcMyListData}"
    .../>
    The HTTPService tag:
    <mx:HTTPService id="service" resultFormat="e4x"
    result="onResult(event)" fault="..../>
    Script block declaration:
    import mx.rpc.Events.ResultEvent;
    [Bindable]private var _xlcMyListData:XMLListCollection;
    Invoke send:
    var oRequest:Object = new Object();
    oRequest.Arg1 = "value1";
    var callToken:AsyncToken = service.send(oRequest);
    token.callId = "myQuery1";
    Result Handler function:
    private function onResult(oEvent:ResultEvent):void {
    var xmlResult:XML = XML(event.result); //converts result
    Object to XML. can also use "as" operator
    var xlMyListData:XMLList = xmlResult.myListData; //depends
    on xml format, is row data
    _xlcMyListData = new XMLListCollection(xlMyListData); //wrap
    the XMLList in a collection
    trace(_xlcMyListData.toXMLString()); //so you can see
    exactly how to specify dataField or build labelFunction
    var callToken:AsyncToken = oEvent.token;
    var sCallId = callToken.callId; //"myQuery1"
    switch(sCallId) {
    case "myQuery1":
    doQuery2();
    break;
    }//onResult

  • First HTTPService request takes forever

    Ok.  I have an interesting event taking place with my application.
    The first HTTPService request takes about 10-20 seconds and then, any additional requests are made between 1-5 seconds.
    A user types in a country code that and clicks a submit button.  The request is sent to a PHP page with the variable, the PHP creates an XML response.  Flex updates a datagrid accordingly which shows rates/minute for phone numbers with that country code.
    Any suggestions as to why this might be?
    Thanks in advance.
    Other Thoughts:
    First Request = 7 results (about 15 seconds)
    Second Request = 168 results (1 second)
    Third Request = 3028 results (5 seconds)
    Fourth Request = same request as First request (less than 1 second).

    im not sure about that one. i havent seen that issue before. as for the 'if i delete itunes, will it delete my music' question, the answer is no. if you uninstall itunes, it will just leave your music on your computer.

  • How to test SOAP request using XML SPY

    Hi,
    1. I am new to WebServices concept, I have downloaded the wsdl file and now I need to test the SOAP requests using XML Spy. However, when I try to test the SOAP request generated by XML Spy I receive an error "Internal Error: Session is not available. Aborting" , How do I go ahead to generate the session, Is there a way I can provide the Username and password in the XML Spy to generate something like session.
    2. The second problem that I am facing is when I import the WSDL in XML Spy and generate the SOAP request, for all the fields xml tags gets populated with "aaaaaaaaaaaa" kind of data through out. Am i doing something wrong ? Is there some step while creating a SOAP request that I am missing becasue of which the gibbrish data is being populated as default ?
    Please Help !
    Thanks .

    I got my SOAP Requests tested using SOAP UI .. However I am still looking for ways to test it using XML SPY.
    In the SOAP UI Tool just do right click and select Add WS Security Token ..
    Thanks :)

  • [svn] 949: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 949
    Author: [email protected]
    Date: 2008-03-27 07:12:59 -0700 (Thu, 27 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - try again with legacy-collection true and false.
    Doc: No
    Checkintests: Pass
    Details: Another try in fixing this bug. When legacy-collection is false, Actionscript Array on the client becomes Java Array on the server and my fix yesterday assumed this case. However, when legacy-collection is true, Actionscript Array becomes Java ArrayList on the server. So added code to handle this case.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • [svn] 931: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 931
    Author: [email protected]
    Date: 2008-03-26 11:31:01 -0700 (Wed, 26 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - we need automated tests for this basic case.
    Doc: No
    Checkintests: Pass
    Details: RequestFilter was not handling multiple headers with the same name properly.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • HTTP POST Request with XML file in

    Hi @ all,
    I would like to send an HTTP Request with an XML File in the body to an SAP System
    I have the target URL and the a XML File.
    Now the question is. Is it possible to use something like the HTTP_POST FuBa to send an url post request with an xml file?
    If yes can anybody give me a hint?
    I have a php script which exactly do this coding. But to integrate it all in one system it is necessary to transform it into ABAP and call it there.
    // compose url and request and call send function
    function test($productID, $categoryID) {
         // create url
         $PIhost = "XXX.wdf.sap.corp";
         $PIport = "50080";
         $PIurl = "/sap/xi/adapter_plain";
         $PIurl .= "?sap-client=800";
         $PIurl .= "&service=XXX";
         $PIurl .= "&namespace=XXX";
         $PIurl .= "&interface=Frontend_Interface";
         $PIurl .= "&qos=EO";
         $PIurl .= "&sap-user=XXX";
         $PIurl .= "&sap-password=XXX";
         // create xml
         $request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
         $request .="<n1:FrontendInbound_MessageType xmlns:n1=\"http://crmpiebay.com\">\n";
         $request .= "\t<FrontendInbound>\n";
         $request .= "\t\t<ProductName/>\n";
         $request .= "\t\t<ProductCategory>".$categoryID."</ProductCategory>\n";
         $request .= "\t\t<ProductID>".$productID."</ProductID>\n";
         $request .= "\t\t<MessageID/>\n";
         $request .= "\t</FrontendInbound>\n";
         $request .= "</n1:FrontendInbound_MessageType>";
         // send http request
         postToHost($PIhost, $PIport, $PIurl, $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"]."/".$_SERVER["PHP_SELF"], $request);
    // send post request to PI server
    function postToHost($host, $port, $path, $referer, $data_to_send) {
      $fp = fsockopen($host, $port);
      if($fp) {
           $res="";
           fputs($fp, "POST $path HTTP/1.1\r\n");
           fputs($fp, "Host: $host\r\n");
           fputs($fp, "Referer: $referer\r\n");
           fputs($fp, "Content-type: text/plain\r\n");
           fputs($fp, "Content-length: ". strlen($data_to_send) ."\r\n");
           fputs($fp, "Connection: close\r\n\r\n");
           fputs($fp, $data_to_send);
           while(!feof($fp)) {
               $res .= fgets($fp, 128);
           fclose($fp);
           return $res;
    Would be great if anybody could give me a hint how to solve such a HTTP Post request with XML body data.
    Thanks in advance.
    Chris
    Edited by: Christian Kuehne on Feb 26, 2009 4:32 PM

    hi friend could you please share your solution regarding this query if u got it already?

  • Workbench freezes on call to BAPI_PRODORDCONF_GETLIST Request/Response XML

    I have created a simple transaction in MII 12.0.6 with three JRA actions: Start Session, Function Call, and End Session.  From the configuration dialog of the Function Call action, I confirmed the existance of BAPI_PRODORDCONF_GETLIST via a BAPI search. I attempted to select this BAPI only to have the Workbench freeze up.  This BAPI works flawlessly in SE37. I checked the logs and saw that the following error message was thrown:
    com.sap.mw.jco.jra.JRA$ResourceException: Couldn't execute interaction. Transaction rolledback due to connection interruption...
    I am using the same JRA connection to call BAPIs in other transactions without any issues.
    Has someone ran into a similar issue before that could assist me in resolving this?
    FYI...my objective is to obtain a list of confirmations, including the confirmation number and confirmation counters, from the output of this BAPI which will be inputted into BAPI_PROCORDCONF_GETDETAIL to maintain a count of the yield and scrap already confirmed for that particular operation/phase.
    Thanks,
    Michael Teti
    Senior Solutions Consultant
    SeeIT Solutions, LLC

    Michael,
    It was my understanding (via customer confirmation) that the returned Yield and Scrap located in the Phase tables of the BAPI_PROCORD_GET_DETAIL Bapi are the Planned Operation Yield and Scrap for that operation and not the Yield and Scrap already confirmed.  The Help documentation in the BAPI Explorer does not verify this one way or another.
    Also, after numerous attempts of trying to pull down the BAPI_PROCORDCONF_GETLIST Request/Response XML, the configuration dialog actually closed.  It tooke quite a long time to complete.  My guess is that it timed out because when I look at the BAPI structure, there was none.
    I did see the other thread prior to my submission but since that thread was referring to a JCO connection and a timeout wasn't actually confirmed on my end, I decided to creat a new one.
    Thanks,
    Michael Teti

  • Multiple Httpservice requests

    Hi,
    I have a requirement where i have to load two components on
    one click.
    And each component has httpservice request.
    function onclick is the following
    public function onclick(event:MouseEvent):void{
    this.loadComponentOne();
    this.loadComponentTwo();
    when i get the response correctly , the invoke and result
    events from httpservice are in this order
    Httpservice from component one in invoked
    result from component one is [object Object]
    HttpService from component two is invoked
    result from component two is [object Object]
    but sometimes there is a conflict between the responses from
    the httpservices of these components
    in this case,Events from httpservice output the result in
    this order
    Httpservice from component one in invoked
    HttpService from component two is invoked
    result from component one is [object Object]
    result from component two is [] //empty for some reaon
    i get the result from my servlet correctly but
    ResultEvent.result is empty
    and the component two is not loaded because the result is
    empty..
    so how should the multiple httprequests be handled to get the
    responses correctly?
    Thanks
    chandana

    I am using a separate class to create a httpservice.
    following is the code where i send the Httpservice with all
    the event handlers.
    and from the component i call the methods from this class to
    get the response as follows
    public function selectedEntitiesList(id:String):void{
    backendRequest = new MittoBackendRequest(list_url);
    backendRequest.setRequest({action:action,id:id});
    backendRequest.addEventListener(ResultEvent.RESULT,getList);
    backendRequest.send();
    Thanks
    chandana

  • Dynamic HTTPService request AS3

    I'm doing a mashup in Flex right now using Yahoo Maps. One of
    the functions allows users to create their own routes.
    Here's the problem. I need a dynamic httpService request
    because I never know beforehand how many markers a route holds.
    Here's my code:
    [Bindable]
    private var rssFeed:String;
    private function opslaanRoute(event:Event):void
    if(this.tekstInputVenster.text!="")
    if(markerLijst.length>0)
    rssFeed = "<route>";
    rssFeed +=
    "<routebeschrijving>"+this.tekstInputVenster.text+"</routebeschrijving>";
    var lengte:Number = markerLijst.length;
    for(var d:Number=0;d<lengte;d++)
    rssFeed +="<marker>";
    rssFeed +=
    "<latlon"+d+">"+markerLijst[d][0]+"</latlon"+d+">";
    rssFeed +=
    "<indexMarker"+d+">"+markerLijst[d][1]+"</indexMarker"+d+">";
    rssFeed +=
    "<titel"+d+">"+markerLijst[d][2]+"</titel"+d+">";
    rssFeed +=
    "<beschrijving"+d+">"+markerLijst[d][3]+"</beschrijving"+d+">";
    rssFeed +="</marker>";
    rssFeed += "<aantal>"+indexMarkers+"</aantal>";
    rssFeed += "<userid>"+_loginid+"</userid>";
    rssFeed += "</route>";
    opslaanR.send();
    else
    Alert.show("U moet markers toevoegen om op te slaan!");
    else
    Alert.show("U moet een routebeschrijving toevoegen om op te
    slaan!");
    The httpservice looks like this:
    <mx:HTTPService
    id="opslaanR"
    url="url"
    useProxy="false"
    method="POST"
    resultFormat="e4x"
    result="opslaanSucces(event)"
    showBusyCursor="true"
    >
    <mx:request>
    {rssFeed}
    </mx:request>
    </mx:HTTPService>
    The "aantal" tag is the number of markers a route holds.
    Basically I want to loop the $_POST variables in php using "aantal"
    so I can add them to my database. The PHP works flawlessly but it
    never gets the httpservice values.
    Please help.

    well you understood me, I want an alternative to the script what I put in AS2,
    but I think. of the script as you sent me centenary assume that I have in the library button menu0 menu1 .....
    But I have only one menu button.
    because I tried it and it did not work.
    var ClassRef: Class = Class (getDefinitionByName ("menu" + i));
    I will be happy if later you look again

  • Multipe Flex Apps Multiple HttpService request fails

    I have multiple flex apps on the same page.  Both make calls to different httpservices on creation complete.  90% of the time one will fails with the useless generic 2032 error.
    The one request that fails never makes it to the webserver accroding to the logs.  In firebug is says the connection was closed - maybe the browser is closing it?  I have verified that the service url is not cached.  Is this is a known limitation with how flex is making httpservice request behind the scenes that it cant handle multiple apps on the same page??
    Anybody have this issue and know of a workaround?

    I have multiple flex apps on the same page.  Both make calls to different httpservices on creation complete.  90% of the time one will fails with the useless generic 2032 error.
    The one request that fails never makes it to the webserver accroding to the logs.  In firebug is says the connection was closed - maybe the browser is closing it?  I have verified that the service url is not cached.  Is this is a known limitation with how flex is making httpservice request behind the scenes that it cant handle multiple apps on the same page??
    Anybody have this issue and know of a workaround?

  • Tree Doesnt populate the whole data with HTTPService request

    Hi,
    I am working with the tree control which populates the tree
    with the HTTPService request.
    Step1. Make a HTTPService Request and fetch the top level
    entries.
    Step2. When ever the user opens an treeItem by clicking on
    the Triangular icon besides the tree item
    Make a HTTPService, fetch the data, on the callback method
    append the Datasource with the new data for the item to open.
    problem is the tree branch gets populated with partial data
    instead of the full data where as the DataSource has the full data.
    Step3. when ever the user clicks on the item
    Make a HTTPService, fetch the data, on the callback method
    append the Datasource with the new data for the item to open.
    Now the tree item gets populated with the correct data.
    tried every thing to refresh the tree....

    private function refreshTree():void{
    tree.expandItem(rootNode, false);
    tree.expandItem(rootNode, true);
    this helped

Maybe you are looking for

  • Is there a manual for iOS7, and how it pertains to th iPhone 4s?

    Is ther a manual for the new features in iOS7 and how to use them on an iPhone4s?

  • Do I need to synchronize my stubs?

    I have a client application that gets an RMI stub for an object in my server application. I am adding a shutdown hook to the client application, and I want to use the RMI stub in the shutdown thread. I'm concerned that my main thread may be in the mi

  • Borderless printing in custom sizes

    I'm working on an HP 2575 with Windows 7 I need to print borderless at custom sizes - the main one being 125x250mm. I understand that this isn't a pre-programmed option but somehow in the past I have managed to create a template in print properties t

  • Where can i find dms metrics stored in the server?

    hi, where will be the dms metrics be stored inside the server.how does a spy retrives those data metrics. This is very important.if anyone can answer it will be of great help to us. thank you

  • MacBook Air or MacBook Pro for Quark XPress?

    I've been a Windows PC user for the past 20+ years (Windows 3.0, people!  Believe it or not!), but my new job responsibilities require me to work extensively with Quark XPress.  I've got the Windows version, but everyone I'm having to swap files with