I'm not sure how to set up an HTTPService call in Cairngorm. I'm trying to load an XML document from a server. I think I got the Event and Command classes right, so here a just code snippets from the Service Locator and the Delegate:
Service Locator -------------------------------------- <cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:cairngorm="com.adobe.cairngorm.business.*"> <mx:HTTPService id="loadConfig" url="http://www.mydomain.com/config.xml" resultFormat="e4x" result="event.token.resultHandler( event )" fault="event.token.faultHandler( event )"> </mx:HTTPService> </cairngorm:ServiceLocator> -------------------------------------- LoadConfigDelegate -------------------------------------- public class LoadConfigDelegate { public function LoadConfigDelegate( responder : Responder ) { this.service = ServiceLocator.getInstance().getService( "loadConfig" ); this.responder = responder; } public function loadConfig( ): void { var call : Object = service.send(); call.resultHandler = responder.onResult; call.faultHandler = responder.onFault; } private var responder:Responder; private var service:Object; } -------------------------------------- When I run this code I get this error message: TypeError: Error #1034: Type Coercion failed: cannot convert mx.rpc.http.mxml::[EMAIL PROTECTED] to mx.rpc.AbstractService What am I doing wrong? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

