Hi,
i'm a newbie about spring actionscript and i would like to build an application with this framework, Cairngorm and ZendAMF too...
I would like to define an object in my spring-services.xml (a piece of application-context.xml) that matches this mxml definition:
<mx:RemoteObject
id="LoginService"
source="LoginService"
destination="zend"
showBusyCursor="true">
<mx:method name="login"/>
</mx:RemoteObject>
I actually do this:
<object id="serviceLocator" class="org.springextensions.actionscript.cairngorm .business.CairngormServiceLocator" factory-method="getInstance">
<property name="loginService">
<ref>loginService</ref>
</property>
</object>
<object id="loginService" class="mx.rpc.remoting.mxml.RemoteObject">
<property name="destination" value="zend" />
<property name="source" value="LoginService" />
<property name="showBusyCursor" value="true" />
</object>
...but Zend Server sends back an exception:
[RPC Fault faultString="Method "null" does not exist" faultCode="0" faultDetail="#0 C:\Programmi\Apache Software Foundation\Apache2.2\frameworks\zendframework\libr ary\Zend\Amf\Server.php(554): Zend_Amf_Server->_dispatch('null', Array)
i think that's because i forgot to define the <mx:method name="login"/> that tells the Zend Server which method to call on the server side...
but i don't know how i can define it in the xml...
i beg your pardon, i'm only a newbie ;-)
Thanx in advance...


Reply With Quote
