How are you converting from XML to object?  You may need a custom
converter as I think our default code will try to make numbers out of
anything that is a valid number.  There's probably not enough info to
know it is a string.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Rafael Faria
Sent: Wednesday, June 11, 2008 9:27 PM
To: [email protected]
Subject: [flexcoders] Re: HTTPService Bug

 

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "LazerWonder" <[EMAIL PROTECTED]> wrote:
>
> Wherever you get the returned XML object from... does it pass in a 1 
> or 2? Or does it pass a "1.0" / "2.0". As far as I know, 
> HTTPService does not transform data (some one more experience can 
> correct me if I am wrong). It just spits back to you what it 
> receives.

The XML Returns 1.0 and 2.0;
But when it become an object the number 1.0 becomes 1;

> 
> If you have control over the server side of things (that is, where 
> the HTTPService connects to) you might need to see if 1.0/2.0 is 
> being passed to the XML object.... or maybe only 1 / 2 is being 
> passed to the object. If you have no control over this, then you 
> might need to add the ".0" manually; or if you do have control but 
> Flex still trip the ".0" off, then try adding quotation marks 
> around "1.0" / "2.0" on the server side.
> 

That's what i had to do. Add manually, although i still think that
FLEX shouldn't mess around whatever you pass as a variable.

> You can also do a trace (which I'm sure you already did - but I 
> thought I'll just plug this in here anyways) statement on the 
> returned object, just to see what you get.

Yeah i did indeed and that's why i'm saying it's returning as integer
and not as a string which is the one i need. =/

 

Reply via email to