Hi,
I've set up Zend and running my zendAMF on localhost, i can hit
localhost/amftest with the browser, and it looks like it's trying to send AMF
data. but when I try with Flex, this error is thrown. I am using a delegate
for my service calls, and all examples shows an mxml remote object service, I
also see nothing in Charles, it's not trapping anything.
Any suggestions here? Thanks.
here's a peak at some code
<?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/amftest"
class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
</channels>
</services-config>
public function DelegateAMF(resultHandler:Function,eventHandler:Function)
{
service = new RemoteObject();
service.destination = "my_zend";
service.source = "Example";
this.resultHandler = resultHandler;
this.faultHandler = faultHandler;
}
public function validateUser(email:String,password:String):void
{
var token:AsyncToken = service.validateUser();
trace ("Service")
var responder:Responder = new
Responder(resultHandler,faultHandler);
token.addResponder(responder);
}