Hello; I finally got my web service experiment off the ground by rewriting the server as an .asmx file. However, now that I've downloaded and installed 2.0 Beta 1, it's stopped working. Here's some code I adapted from the Restaurants sample included in the Alpha distribution (but missing from the Beta. I wonder why?). The logger output is at the bottom of this email.
Using tcpflow (http://www.entropy.ch/software/macosx/) to monitor network activity, it seems that the Flex application is not putting any data on the wire. Does anybody have any insight as to what I might be doing wrong? As should be clear from the code and the above explanation, I'm not using the Flex Enterprise server. I'm communicating directly with the WS. Thanks. Tobias. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"> <mx:Script> <![CDATA[ import mx.collections.*; import mx.rpc.soap.*; import mx.rpc.events.*; import mx.logging.targets.TraceTarget; import mx.logging.*; public function wsResult( event : ResultEvent ) : void { ta1.text = event.result.toString(); } public function wsFault( event : FaultEvent ) : void { ta1.text = "Fault: " + event.fault.faultstring; } public function UseWebService() : void { var logTarget:TraceTarget = new TraceTarget(); logTarget.filters=["mx.rpc.*"]; logTarget.level=LogEventLevel.ALL; Log.addTarget(logTarget); var ws:WebService = new mx.rpc.soap.WebService(); ws.wsdl = "http://flexapps.macromedia.com/ws/services/RestaurantWS?wsdl"; ws.fetchWSDL(); ws.addEventListener("result", wsResult); ws.addEventListener("fault", wsFault); ws.GetRestaurants(); ta1.text = "Request sent..."; } ]]> </mx:Script> <mx:Canvas width="100%" height="100%"> <mx:Button x="5" y="7" label="Do It" click="UseWebService()"/> <mx:TextArea x="66" y="8" width="572" height="56" id="ta1"/> </mx:Canvas> </mx:Application> [SWF] /Flash/WebService1-debug.swf - 761,066 bytes after decompression Registering schema namespace: http://www.w3.org/1999/XMLSchema Registering schema namespace: http://www.w3.org/2000/10/XMLSchema Registering schema namespace: http://www.w3.org/2001/XMLSchema Registering schema namespace: http://schemas.xmlsoap.org/soap/encoding/ Registering schema namespace: http://xml.apache.org/xml-soap Registering schema namespace: http://rpc.xml.coldfusion Creating SOAP Operation for fetchWSDL Queueing SOAP operation fetchWSDL Creating SOAP Operation for GetRestaurants Queueing SOAP operation GetRestaurants [Unload SWF] /Flash/WebService1-debug.swf -- 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/

