Hello Gurus , 

I am facing one issue where i am attempting to use Zend_amf but that code 
exactly work well with Amfphp,
I have seen all internet resources for zend and I am very courios on thier 
machine same code is working why not at mine :(
if I am trying to access gateway(Zend File) it work well but its not working 
from Flex App .
I have follwoing code and structure 

Gateway File :
<?php
require_once 'Zend/Amf/Server.php';
require_once 'include/services/BListsService.php';
require_once 'include/services/UserService.php';
// Instantiate the server
$server = new Zend_Amf_Server();
$server->setClass('BListsService');
$server->setClassMap('BListsVO', 'BLists');
$server->setClass('UserService');
$server->setClassMap('UserVO', 'User');
$server->setProduction(false);
$server->handle(); // if I am echoing this its not execute and instead it comes 
up for download 
?>

Services-xml :
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service id="amfphp-flashremoting-service"
class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">
<destination id="zend">
<channels>
<channel ref="my-zend"/>
</channels>
<properties>
<source>*</source>
</properties>
</destination>
</service>
</services>
<channels>
    <channel-definition id="my-zend" class="mx.messaging.channels.AMFChannel">
        <endpoint uri="http://localhost/gateway.php"; 
class="flex.messaging.endpoints.AMFEndpoint" />
    </channel-definition>
</channels>
</services-config>

Remote Services :

<mx:RemoteObject
        id="BListsService"         
        source="BListsService" destination="zend" 
endpoint="http://localhost/gateway.php";
        showBusyCursor="true">
    </mx:RemoteObject>

Please Reple
-Saj



      

Reply via email to