how to call Webservice within cairngorm2 and flex2 stable? i have change the cairngorm2 alpha 's sample "login" to the caingorm2and flex 2 stable.
then i wanna to change the service from HttpService to Webservice; i take services.mxml as: <?xml version="1.0" encoding="utf-8"?> <cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:cairngorm="com.adobe.cairngorm.business.*"> <mx:WebService id="LoginWS" wsdl="http://10.32.64.28/sin/webservice/login.asmx?wsdl" userProxy="false" result="event.token.resultHandler(event)" fault="event.token.resultHandler(event)" /> </cairngorm:ServiceLocator> and change the LoginDelegate.as as: package saicn.samples.login.business { import com.adobe.cairngorm.business.Responder; import com.adobe.cairngorm.business.ServiceLocator; import saicn.samples.login.vo.LoginVO; public class LoginDelegate { import mx.rpc.soap.WebService; public function LoginDelegate( responder : Responder ) { this.service = ServiceLocator.getInstance().getService("LoginWS"); this.responder = responder; } //------------------------------------------------------------ public function login( loginVO : LoginVO ): void { var call : Object = service.getUserStatus(loginVO.username); call.loginVO = loginVO; call.resultHandler = responder.onResult; call.faultHandler = responder.onFault; } //------------------------------------------------------------- private var responder:Responder; private var service:Object; } } than i run the mxml application ,return error such as: Error: Cannot assign operations into an RPC Service (userProxy) at mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::setProperty() at saicn.samples.login.business::Services/::_WebService1_i() at saicn.samples.login.business::Services$iinit() at mx.core::Container/createComponentFromDescriptor() at mx.core::Container/createComponentsFromDescriptors() at mx.core::Container/mx.core:Container::createChildren() at mx.core::UIComponent/initialize() at mx.core::Container/initialize() at mx.core::Application/initialize() at CairngormLogin/initialize() at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdded() at mx.managers::SystemManager/::initializeTopLevelWindow() at mx.managers::SystemManager/::frameEndHandler() everybody ,plz help me , how to call Webservice within cairngorm2 and flex2 stable? saicn ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/