Bits are just bits.  Some look like readable characters, others do not.
When you send bits from a server to a Flex app, there has to be an
agreement as to what the bits mean.  If you want to send bits that become
useful instances of data classes or value objects in Flex, you have to use
AMF or SOAP and have the right decoder/encoder set up on the Flex side.
Otherwise, you are going to get plain objects or ObjectProxy instances.

I've never used PDO or MySQL.  I'm unclear what you are using to encode
the type information in the bits.  I seem to recall that PHP has an AMF
capability.  Not sure what MySQL APIs you are using.

If you are using AMF, you have to have the registerClassAlias calls match
the type identifier in the data stream.

HTH,
-Alex

On 4/7/17, 9:06 PM, "bilbosax" <[email protected]> wrote:

>OK, now I am truly baffled, more so than usual :) Before attempting to
>look
>at network traffic, I decided to do a little test, totally forgetting
>about
>PDO.  I did this all in mysqli, which is what flex generates if you ask it
>to build a service.  I had flex generate a service for a table with three
>columns.  When I set the return types, it generated a string and two
>numbers
>- working perfectly.  I then created my own service using the same order
>and
>structure of mysqli code as the service Flex generated.  There were two
>notable differences.  One is that my service is dynamic and has to bind
>the
>variables using an array instead of individual parameters.  I don't think
>this should make a difference.  The second is that my service has 59
>columns
>to retrieve instead of 3.  When I try to set the return types on MY
>service,
>I get a primitive object instead of individually typed fields.
>
>So, it doesn't seem to matter in my case whether I use PDO or mysqli, my
>return type is always a primitive object.  Why is this???
>
>My only guess is that Flex is unable or unwilling to type that many
>columns,
>and therefore just defaults to a primitive object, and leaves it up to me
>to
>handle inside of Flex instead of in PHP.
>
>Any thoughts???
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2FPDO-vs-mysqli-Web-Service-Return-Values-tp
>14970p14999.html&data=02%7C01%7C%7Cdc1194482d654719592b08d47e35eb9d%7Cfa7b
>1b5a7b34438794aed2c178decee1%7C0%7C0%7C636272217453822794&sdata=UNsG2%2F2J
>hSrNYbuGadosBMwv1u%2BKnTfmOSQYH5R%2BGjY%3D&reserved=0
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to