Flex 服务的 AMF 数据不完整

发布于 08-31 00:07 字数 1748 浏览 8 评论 0原文

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

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

我不知道问题是什么意思。我在谷歌上搜索过,但没有找到好的结果。 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());
    }
}?>

请帮助我!

I am bussy with a Flex Project with a data services. Flash builder installed Zend Framework with Zend_Amf.

When i run the project i get the error NetConnection.Call.Failed: HTTP: Failed. With chalers i say that Zend_Amf give the error: AMF data is incomplete (0 bytes of 0 bytes). Please check the recording limits in the Recording Settings.

I don't know what the problem means. I have searched on google, but i haven't found a good result. The Flex project code is:

<?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>

The php code is:

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

Please, help me!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓝天2024-09-07 00:07:35

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

This error normaly happens when there is an error thrown on the server side in a services that is not caught. Can you enable logging and see if there are any errors going on in your PHP? Your example code looks fine and should work.

演多会厌2024-09-07 00:07:35

我重新安装了 wamp 服务器和 flash 构建器,结果成功了。

I reinstalled the wamp server and flash builder, and that worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文