[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to stop HTTPService alphabetically sorting values when sending url...

Posted on 2008-11-11
5
Medium Priority
?
491 Views
Last Modified: 2013-11-11
Dear Experts,

New to Flex and programming so not sure what to do. I am sending a request to url using HTTPService but the values are being sent in alphabetical order and causing the request to fail or not work so to speak. I need the values in  the <mx:request> to be sent in the specific order in which there listed in the  <mx:request> tag.

How do I do this?

Joel
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
 
<mx:Script>
<![CDATA[
 
private function goLogin():void {
	
        httpSvc.send();
}
 
]]>
</mx:Script>
 
<mx:HTTPService resultFormat="e4x"  id="httpSvc" url="http://192.168.170.128:8088/server" showBusyCursor="true" useProxy="false" method="GET">
      <mx:request xmlns="">
            <command>Login</command>
            <username>admin</username>
            <password>1234</password>
      </mx:request>
</mx:HTTPService>
 
<mx:Button x="99" y="155" label="login" click="goLogin();"/>
 
</mx:WindowedApplication>

Open in new window

0
Comment
Question by:Joel_Sisko
  • 3
  • 2
5 Comments
 
LVL 7

Expert Comment

by:evcr
ID: 22937134
umm, I think we just fixed that
0
 
LVL 7

Expert Comment

by:evcr
ID: 22937143
you could link this to the other question as the URLRequest code I posted in there is the solution to this question
0
 
LVL 12

Author Comment

by:Joel_Sisko
ID: 22941034
So is the answer that there is no settings with the HTTPService tag to stop this from happening?
0
 
LVL 7

Accepted Solution

by:
evcr earned 2000 total points
ID: 22948663
That appears to be the case e.g. I just tested a simple object with three parameters.

  var params:Object = new Object();
                params.param3 = '3';
                params.param2 = '2';
                params.param1 = '1';
trace(ObjectUtil.toString(params));
returns...
(Object)#0
  param1 = "1"
  param2 = "2"
  param3 = "3"

So it seems to be more of an AS3 fundamental than related to just httpservice parameters
0
 
LVL 12

Author Comment

by:Joel_Sisko
ID: 22950289
Well thanks for that information.

Here is a link that may have the workaround if you need to pass the parameters in a specific order:

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Flex/Q_23888682.html

Joel
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question