Sanjay, the only problem I see is: - MyWebService.mxml is not a MXML component because it has Application as root tag. So put everything in another container or tag. A MXML component should not have Application as root tag.
Do something like this: <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script> <![CDATA[ function runWebServices(caller:Object) { var call = ws4ComboBox.updateRepoRates.send(); call.marker = caller; mx.controls.Alert.show("websvcs. request sent", "websvcs."); } //faultHandler when webservice call fails function faultHandler(faultstring) { mx.controls.Alert.show(faultstring, "Web Service Fault"); } function resultHandler(event) { mx.controls.Alert.show("websvcs. response recvd", "websvcs."); var myCaller = event.call.marker; myCaller.asyncFillComboBoxDataProvider(); } ]]> </mx:Script> <mx:WebService id="ws4ComboBox" wsdl="http://sanjaylaptophp:9080/PositionsRepoRatesService.wsdl" fault="faultHandler(event.fault.faultstring)" concurrency="multiple" useProxy="true" showBusyCursor="true"> <mx:operation name="updateRepoRates" result="resultHandler(event)"> <mx:request> <newRate>dummy</newRate> </mx:request> </mx:operation> </mx:WebService> </mx:Canvas> Hope it works... -abdul -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjayd Sent: Sunday, May 22, 2005 9:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] simple webService question I have this code in MyWebService.mxml : <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script> <![CDATA[ function runWebServices(caller:Object) { var call = ws4ComboBox.updateRepoRates.send(); call.marker = caller; mx.controls.Alert.show("websvcs. request sent", "websvcs."); } //faultHandler when webservice call fails function faultHandler(faultstring) { mx.controls.Alert.show(faultstring, "Web Service Fault"); } function resultHandler(event) { mx.controls.Alert.show("websvcs. response recvd", "websvcs."); var myCaller = event.call.marker; myCaller.asyncFillComboBoxDataProvider(); } ]]> </mx:Script> <mx:WebService id="ws4ComboBox" wsdl="http://sanjaylaptophp:9080/PositionsRepoRatesService.wsdl" fault="faultHandler(event.fault.faultstring)" concurrency="multiple" useProxy="true" showBusyCursor="true"> <mx:operation name="updateRepoRates" result="resultHandler(event)"> <mx:request> <newRate>dummy</newRate> </mx:request> </mx:operation> </mx:WebService> </mx:Application> when I attempt to call the webService like this (from a separate .as file): var myWebSvc = new MyWebService(); myWebSvc.runWebServices(this); I see the alert popUp saying that the request was sent, but the 'resultHandler' is never invoked..in fact, my soap-server trace tells me that the 'updateRepoRates' method was never called. Any idea why ? Thanks in advance. Sanjay Yahoo! Groups Links 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/