Php – Flex AMFPHP vs WebORB vs XMl

amfphpflex3weborb

I am a newbie to Flex 3 and Flash remoting and I can't decide which technique to use for frontend/backend communication.

I started of with XML, but it seems overhead to construct all XMLs in PHP, parse them in Flex, and for sending back data constructing again XMLs in Flex and then parsing them in PHP.

That's why I found AMFPHP, which seems great in the way that I can directly access classes/objects in PHP and modify them. Seems much cleaner. For example doing updates on data in the database, I just call a set method with defined attributes.

Then I also found WebORP.

Would are the greatest disadvantages of AMFPHP? Any recommendations?

Thx a lot,
Martin

Best Answer

I don't know anything about WebORP but AMFPHP will definitely work better for you than the xml. AMF is a binary transport and is MUCH faster than transferring all of that ascii text and parsing it all out. Plus it will allow you to work directly with your PHP class files.

I really can't think of any disadvantages ;)

About the only time that xml makes more sense is if you are writing a service that is going to be used (consumed) by multiple different languages and you need the least common denominator.

Related Topic