[flexcoders] A bug with flash player 9??
Hi,I wonder if there's a bug with the flash play 9.When I specify that a web service be called when a button is clicked,like this: mx:WebService id=demoService service=Demo port=DemoSoap wsdl=some wsdl here showBusyCursor=true mx:operation name=demo mx:request param1param/param1 /mx:request /mx:operation /mx:WebService mx:Button label=Demo click=demoService.demo.send()/ The call isn't made when the button is clicked for the first time,seeming that nothing happend(and actually nothing didn't happen!!),but everything is ok in the successive clicks.Does anybody else run into similar situation?? -- 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/
[flexcoders] WSDLError:Element not resolvable
I ran into a strange problem when I was trying to call a web service.Here's the source: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ import mx.rpc.events.FaultEvent; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import com.adobe.cairngorm.control.CairngormEventDispatcher; import com.ceno.umc.control.LoginEvent; private function onResult(event : ResultEvent) : void { Alert.show(event.result.toString(),result); } private function onFault(event : FaultEvent) : void { Alert.show(event.fault.faultString,faultString); } ]] /mx:Script mx:WebService id=aService service=umc/umc/auth port=umc/umc/authHttpPort wsdl=http://localhost:8008/ws/services/umc/umc/auth?wsdl; showBusyCursor=true result=onResult(event) fault=onFault(event) mx:operation name=login resultFormat=e4x mx:request req subject admin /subject username admin /username password admin /password /req /mx:request /mx:operation /mx:WebService mx:Button label=Login click=aService.login.send()/ /mx:Application when I clicked the login button it first showed me an error dialog saying: [WSDLError faultString=Element http://cmd.umc.ceno.com:loginResponse not resolvable faultCode=WSDL.BadElement faultDetail=null] at mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::parseMessage() at mx.rpc.soap::WSDLOperation/parseMessages() at mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokePendingCall() at mx.rpc.soap::Operation/send() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.rpc.soap.mxml::Operation/send() at WSTest/___Button1_click() then I clicked the login button again,eveything worked.Any idea? Thanks. -- 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/
[flexcoders] Re: A bug with flash player 9??
I use FB2 to generate html wrapper.In fact the same situation comes up when I run the generated swf file alone!!By the way,sometimes when I click the button for the first time, there's actually no http request made (I used http look to watch http request and response) and no log in server indicating an http request came,but an WSDL error is returned saying that Element xxx(xxx is a complex type defined in a xsd) not resolvable.Any suggestion? Thanks. Regards --- In flexcoders@yahoogroups.com, Cathy Reilly [EMAIL PROTECTED] wrote: Is it possible that you're running into an issue with the new version of IE? http://www.adobe.com/devnet/activecontent/ You don't mention how your html wrapper is generated. If you're using FB 2, FDS 2 Web Tier Compiler, or the html-templates that ship with Flex 2 SDK, then you've correctly coded the html wrapper to work with the new version of IE. If you've hand coded, be sure that you've followed the instructions in the link above. One easy way to tell if you're runnning into the Active Content issue is that you have a tooltip when you hover over the swf before the click, saying that you need to click or press enter to continue. Thus, the first click is for activation and every other click gets picked up. - Cathy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexava Sent: Thursday, July 27, 2006 8:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] A bug with flash player 9?? Hi,I wonder if there's a bug with the flash play 9.When I specify that a web service be called when a button is clicked,like this: mx:WebService id=demoService service=Demo port=DemoSoap wsdl=some wsdl here showBusyCursor=true mx:operation name=demo mx:request param1param/param1 /mx:request /mx:operation /mx:WebService mx:Button label=Demo click=demoService.demo.send()/ The call isn't made when the button is clicked for the first time,seeming that nothing happend(and actually nothing didn't happen!!),but everything is ok in the successive clicks.Does anybody else run into similar situation?? -- 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 -- 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/
[flexcoders] Confusion about 'Security error accessing url'
I'm using flex builder to create a small flex project to learn how to call web service in flex,but I encountered a problem really confusing me.I created a new file called wstest.mxml and here's its content: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.Fault; import mx.rpc.events.FaultEvent; private function onFault(event : FaultEvent) : void { var f : Fault = event.fault; Alert.show (f.faultString,Error); } private function list() : void { adminService.getWeather.send(); } ]] /mx:Script mx:WebService id=adminService service=Weather port=WeatherSoap wsdl=http://www.wopos.com/webservice/weather.asmx? wsdl showBusyCursor=true fault=onFault(event) mx:operation name=getWeather mx:request mCity ÉϺ£ /mCity /mx:request /mx:operation /mx:WebService mx:Label id=lbl text={adminService.getWeather.lastResult}/ mx:Button label=Call Web Service click=list()/ /mx:Application After building finished,I ran the generated wstest.swf in the directory called bin,the output directory of the flex project,everything is ok.But when I put the swf file in another position, say, c:/. Then when I ran the swf file an error message was returned saying 'Security error accessing url'. I can't understand why this happened. It seems the swf file can only run under the bin directory. Any one can help? Thanks! Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/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/
[flexcoders] Re: Confusion about 'Security error accessing url'
Ya,I know the existence of crossdomain.xml.But what really confused me is that the generated swf file can run in the bin directory without a crossdomain.xml file put in the root of the server while it failed to run in other position!! I can't figure out why. --- In flexcoders@yahoogroups.com, jrunrandy [EMAIL PROTECTED] wrote: I was just looking at this page in the tutorial: http://livedocs.macromedia.com/flex/2/docs/0071.html You probably need to define a crossdomain.xml file on the server running the web service. This Flex docs have more information on this topic, as well as this technote: http://www.adobe.com/go/14213 HTH Randy Nielsen Flex Documentation Manager --- In flexcoders@yahoogroups.com, flexava flexava@ wrote: After building finished,I ran the generated wstest.swf in the directory called bin,the output directory of the flex project,everything is ok.But when I put the swf file in another position, say, c:/. Then when I ran the swf file an error message was returned saying 'Security error accessing url'. I can't understand why this happened. It seems the swf file can only run under the bin directory. Any one can help? Thanks! Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/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/