0

私は、データ サービスを使用した Flex プロジェクトで忙しくしています。Flash ビルダーは、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());
    }
}?>

私を助けてください!

4

2 に答える 2

1

このエラーは通常、キャッチされていないサービスのサーバー側でスローされたエラーがある場合に発生します。ロギングを有効にして、PHP でエラーが発生しているかどうかを確認できますか? サンプルコードは問題なく動作するはずです。

于 2010-04-29T13:48:13.387 に答える
0

wamp サーバーとフラッシュビルダーを再インストールしましたが、うまくいきました。

于 2010-04-30T17:28:23.793 に答える