Search code examples
apache-flexactionscript-3mxmlremoteobjectzend-amf

Flex RemoteObject + Zend AMF Server problem


I am working with php, Flex and zend's AMF Server using this guide. I successfully managed to connect php with Flex but after 'reconstruction' of my MySQL query I get a little bit different objects - some of their values are NULL. That confuses Flex and I get an error from my RemoteObject:
Was expecting mx.messaging.messages.AcknowledgeMessage, but received null
I was searching around the web, and I believe it is happening because some values are NULL, but I couldn't find appropriate solution... I hope that someone here will be able to help me =)

Thanks in advance!


Solution

  • I'm not sure this is a null value - I suspect you have an error in your PHP code, and it's getting a null instead of a AcknowledgeMessage because the PHP is erroring out before it sends anything back. Have you tried running it directly (i.e., not from Flex)?

    I've found Charles Proxy (http://www.charlesproxy.com/) an invaluable tool for debugging such issues. You have to pay for it ($50), but the amount I've saved on Excedrin Migraine has paid for it.