Flex RemoteObject + Zend AMF 服务器问题
我正在使用 此 指南来使用 php、Flex 和 zend 的 AMF 服务器。我成功地将 php 与 Flex 连接起来,但在“重建”我的 MySQL 查询后,我得到了一些不同的对象 - 其中一些值为 NULL。这让 Flex 感到困惑,我从 RemoteObject 中收到错误:期待 mx.messaging.messages.AcknowledgeMessage,但收到 null
我在网上搜索,我相信它正在发生,因为有些值为 NULL,但我找不到合适的解决方案...我希望这里有人能够帮助我 =)
提前致谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定这是一个 null 值 - 我怀疑您的 PHP 代码中有一个错误,并且它得到的是 null 而不是 AcknowledgeMessage,因为 PHP 在发送回任何内容之前就出错了。您是否尝试过直接运行它(即,不是从 Flex 运行)?
我发现 Charles Proxy (http://www.charlesproxy.com/) 是一个非常宝贵的调试工具等问题。你必须支付费用(50 美元),但我在 Excedrin 偏头痛上节省的金额已经支付了费用。
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.