PDA

View Full Version : "AMFPHP_INEXISTANT_METHOD" error in AMFPHP 1.9 + flex


maarek
10-02-2007, 09:49 PM
In mxml file I have:
<mx:RemoteObject id="kategorieService" source="kategorie2" destination="amfphp">
<mx:method name="sendCatTree" result="kategorieServiceResultHandler(event)"></mx:method>
</mx:RemoteObject>

In /amfphp/services/kategorie2.php I have:
<?
include "config.inc.php";
class kategorie2
{
function sendCatTree ()
{
return '<kategoria id="0" label="POLECAMY" produkty=""></kategoria>';
}
}
?>

After running I have this error:
[RPC Fault faultString="The method {send} does not exist in class {kategorie2}." faultCode="AMFPHP_INEXISTANT_METHOD" faultDetail="c:\usr\apache\httpd\html\amfphp\core\shared\app\Ba sicActions.php on line 86"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at ::NetConnectionMessageResponder/NetConnectionChannel.as$40:NetConnectionMessageRes ponder::statusHandler()
at mx.messaging::MessageResponder/status()