【问题标题】:AMF data is incomplete with Flex ServiceFlex Service 的 AMF 数据不完整
【发布时间】:2010-04-28 15:18:50
【问题描述】:

我正忙于一个带有数据服务的 Flex 项目。 Flash builder 使用 Zend_Amf 安装 Zend Framework。

当我运行项目时,我收到错误 NetConnection.Call.Failed: HTTP: Failed。对于 chalers,我说 Zend_Amf 给出错误:AMF 数据不完整(0 字节的 0 字节)。请检查录制设置中的录制限制。

我不知道问题是什么意思。我在google上搜索过,但没有找到好的结果。 Flex项目代码为:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:authservice="services.authservice.*">
    <fx:Script>
        <![CDATA[
            import mx.controls.Alert;

            protected function click_me_clickHandler(event:MouseEvent):void
            {
                text.text += "Test started";
                testmeResult.token = authService.testme();
                text.text += testmeResult.lastResult
                text.text += "Test ended";
            }

        ]]>
    </fx:Script>
    <fx:Declarations>
        <s:CallResponder id="testmeResult"/>
        <authservice:AuthService id="authService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Button x="124" y="85" label="Click Me!" id="click_me" click="click_me_clickHandler(event)"/>
    <s:RichText x="58" y="114" width="238" height="182" id="text"/>
</s:Application>

php代码为:

<?php
class AuthService {
    public function testme() {
        return 'ik ben getest op'+date('d-m-Y H:i:s', time());
    }
}?>

请帮帮我!

【问题讨论】:

    标签: php apache-flex zend-framework flash-builder zend-amf


    【解决方案1】:

    此错误通常发生在服务器端在未捕获的服务中引发错误时。您可以启用日志记录并查看您的 PHP 中是否有任何错误?您的示例代码看起来不错,应该可以工作。

    【讨论】:

      【解决方案2】:

      我重新安装了 wamp 服务器和 flash builder,并且成功了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-08-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-12-31
        • 2016-11-18
        相关资源
        最近更新 更多