RE: [flexcoders] Remote Object Errors
Are you missing an apache jar from your /WEB-INF/lib directory? Check with the jars that existed with the default flex web application installation and compare them to those present in your own web app. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh Noland Sent: Monday, August 08, 2005 9:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Remote Object Errors Christoph, No luck. I am still getting the Error: org/apache/commons/collections/FastHashMap. When I check the network monitor in Flex Builder it is making the request as expected but I am not seeing it catch the result object. Do you have any other ideas? Josh From: Christoph Guse [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Remote Object Errors Date: Mon, 08 Aug 2005 11:41:31 +0200 Hi Josh, you should use the automatic mapping between Java ValueObjects and ActionScript ValueObjects. For that your ActionScript VO should look like this: /*** AS class ***/ // ActionScript Document class Person { var name:String; var birthdate:String; public static var registeredClass:Boolean = Object.registerClass([full path in WEB-INF / java class name],Person); } Don't use a constructor in the AS VO, the constructor is called AFTER FLEX filled the attributes from the Java VO. Your MXML file could look like this: /*** MXML File ***/ mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:RemoteObject id=peopleObject source=People mx:method name=getPerson result=handleResults(event.result)/ /mx:RemoteObject mx:Script ![CDATA[ import Person; var my_person:Person; function handleResults(event){ my_person = event.result; } ]] /mx:Script mx:Panel width=800 height=600 mx:HBox mx:Form mx:FormItem label=Person name mx:Label text={my_person.name} / /mx:FormItem mx:FormItem label=birthday mx:Label text={my_person.birthdate} / /mx:FormItem /mx:Form mx:Button label=Get Person click={peopleObject.getPerson()} / /mx:HBox /mx:Panel /mx:Application I coded everything in my mail app, so I'm not totally shure if the code runs at once. Greetings Christoph Josh Noland wrote: I am having trouble accessing any Java objects that return something other than the Java types flex will implicitly convert. I am using the RemoteObject tag. The first time I try to access the result from the pojo function call I get Error: org/apache/commons/collections/FastHashMap in the JRun console. Each successive call will throw Error: null. I am using JRun4. The code is below. I have stripped all of the functionality to try and get rid of the error and to try to get Flex to recognize my remote object returned. For now all I want to do is successfully call the function that returns my person and display one of the fields from the object. Has anybody else experienced this type of problem? Josh / Java Class I am trying to use in Flex / public class Person implements Serializable { private String name; private String birthdate; public Person (){ } public Person (String name, String birthdate) { this.name = name; this.birthdate = birthdate; } public void setName(String name) { this.name = name; } public String getName() { return name; } public void setBirthdate(String birthdate) { this.birthdate = birthdate; } public String getBirthdate() { return birthdate; } } /* Java Function Call that returns an Object to Flex and resides in People Object */ public Person getPerson(){ return new Person(Josh, 8/8/2005); } /*** MXML File ***/ mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:RemoteObject id=peopleObject source=People mx:method name=getPerson result=handleResults(event.result)/ /mx:RemoteObject mx:Script ![CDATA[ function handleResults(eventResult){ var p1:Person = new Person(eventResult.getProperty('name'), eventResult.getProperty('birthdate')); } ]] /mx:Script mx:Panel width=800 height=600 mx:HBox mx:Button label=Get Person click={peopleObject.getPerson()} / /mx:HBox /mx:Panel /mx:Application /*** AS class ***/ // ActionScript Document class Person implements DataProvider{ var name:String; var birthdate:String;
RE: [flexcoders] Remote IP address
You can get hold of the HttpServletRequest in a Java class when accessed via RemoteObject by using flashgateway.Gateway.getHttpRequest(). http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/commo n/html/wwhelp.htm?context=Flex_Documentationfile=2247.htm Once you have the request, you can call methods on it to get this sort of information (such as getRemoteHost() etc). http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequ est.html -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of James Sent: Thursday, August 25, 2005 10:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Remote IP address Good morning people, Please excuse my problematic question. Can someone point me in the right direction? I want to be able to get the client's ip address, in asp it would be: Request.Server.Variables(Remote_Adde) Is there a comparable in Flex or what might be the best way to obtain this? Thanks James -- 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 Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h52su2o/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124987938/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- 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/
RE: [flexcoders] Remote objects and when they exist
isAdmin is a function... So you need to use parentheses () to invoke it, even when there are no arguments. public function loadPerms():Void { srvPermissions.isAdmin() } -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mehere_straker Sent: Monday, September 19, 2005 11:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Remote objects and when they exist Hi, I am quite new to Flex and action script, but have a problem I hope someone out there can help with... I have a class which is a mxml file called Permissions. The idea is that when the Flex app starts up, it goes off to a Coldfusion CFC via a RemoteObject and gets the various rights of the current loggin and loads them in to an application wide scope to be avalible to the application. Example Code: == !-- in the root mxml file -- function appInit():Void{ var bob = new com.classes.Permissions; _global.permissions = bob.loadPerms(); } == !-- in the Permissions.mxml -- mx:RemoteObject id=srvPermissions source=[my source] fault=srvFaultHandle(event.fault.faultstring) showBusyCursor=true mx:method name=isAdmin result=isAdminResult(event)/ /mx:RemoteObject mx:Script ![CDATA[ public function loadPerms():Void{ srvPermissions.isAdmin } private function isAdminResult(event):Void{ trace(function isAdminResult(event) -- You got a Result!); } private function srvFaultHandle(message:String):Void{ trace(ERROR:: + message); } ]] /mx:Script === From what I can see, putting various traces all over the place, even though I have created a object of class permissions, it doesn't exist, and when I (try) and fire the remote object, nothing happens, not in the error handler or event handler. Can anyone see what I am doing wrong? Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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 Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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/
RE: [flexcoders] Calls to CFCs
Actually, it's likely that you're getting an AppendToGatewayUrl AMF Response Header from the server because it detected that while a session was created during the request, the client didn't inform the server whether it could accept cookies. This AMF Response Header is trying to tell the client NetConnection to decorate its connection URL with some extra info, for example a jsessionid for Java or a cfid/cftoken for ColdFusion. You may then be using IIS... In which case it may be barfing on the semi-colon in something like the jsessionid token, irrespective of whether you have a ;. http://cfxtest.research.unc.edu/flashservices/gateway/;jessionid=XYZ123A BC I believe CF released a hot fix for this issue, but the work around is easy... Just add a ? To the gateway URL (or endpoint in flex speak) so that the session information won't annoy IIS. endpoint=http://cfxtest.research.unc.edu/flashservices/gateway?; Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Wednesday, September 28, 2005 11:22 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Calls to CFCs A wild guess: try adding a / at the end of the gateway url. endpoint=http://cfxtest.research.unc.edu/flashservices/gateway/; I've seen USERID and alike being added to the gateway url when making remote calls. In that case, without the ending '/', the gateway url gets messed up. Might not be the case here, but it's the first thing I'd check ;-) regards, Muzak - Original Message - From: Greg Johnson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, September 28, 2005 2:28 PM Subject: Re: [flexcoders] Calls to CFCs Here is where the connection is setup in the main file: mx:RemoteObject id=mr_cfc endpoint=http://cfxtest.research.unc.edu/flashservices/gateway; source=mr.mr_cfc fault=mx.controls.Alert.show(event.fault.faultstring) showBusyCursor=true -- 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 Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/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/
RE: [flexcoders] Calls to CFCs
Note that my suggestion was to append the ? query string marker, please let me know if this resolves the issue as your initial symptoms described the issue with AppendToGatewayUrl exactly. Also, the problem is that Flash Remoting (and hence stillFlex's RemoteObject)with ColdFusion introduced the concept of named arguments. That is, if your CFC is expecting a Struct as a single argument and you're sending it an object, then it won't work as the CFC proxy between the gateway interprets them as "named arguments" and thus looks for parameters to match each of the keys in the AS Object. Try adding a second, dummy variable to the CFC function and let me know if this solves the issue. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg JohnsonSent: Thursday, September 29, 2005 8:42 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Calls to CFCs I will give that the / suggestion a try. As a workaround I switched to a webservice vs remoteobject and it has no problems and seems to let the client load faster.But I just commented out the remoteobject so I will try flipping back and see what happens.Now my biggest problems are I am making a call to a CFC and passing it a parameter but the CFC is complaining that it wasn't passed. Plus my debugger for some reason who let me watch variables anymore. I put an alert in the Flex code just before the CFC call and it shows valid data in the variable I am sending, but it just doesn't get to the CFC for some reason. Doing the same exact thing with all the other CFCs and they work fine :/Peter Farland wrote: Actually, it's likely that you're getting an AppendToGatewayUrl AMFResponse Header from the server because it detected that while a sessionwas created during the request, the client didn't inform the serverwhether it could accept cookies. This AMF Response Header is trying to tell the client NetConnection todecorate its connection URL with some extra info, for example ajsessionid for Java or a cfid/cftoken for ColdFusion.You may then be using IIS... In which case it may be barfing on thesemi-colon in something like the jsessionid token, irrespective ofwhether you have a ;.http://cfxtest.research.unc.edu/flashservices/gateway/;jessionid=XYZ123ABCI believe CF released a hot fix for this issue, but the work around iseasy... Just add a ? To the gateway URL (or "endpoint" in flex speak) sothat the session information won't annoy IIS.endpoint="http://cfxtest.research.unc.edu/flashservices/gateway?"Pete-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of MuzakSent: Wednesday, September 28, 2005 11:22 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Calls to CFCsA wild guess: try adding a "/" at the end of the gateway url.endpoint="http://cfxtest.research.unc.edu/flashservices/gateway/"I've seen USERID and alike being added to the gateway url when makingremote calls.In that case, without the ending '/', the gateway url gets messed up.Might not be the case here, but it's the first thing I'd check ;-)regards,Muzak- Original Message -From: "Greg Johnson" [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, September 28, 2005 2:28 PMSubject: Re: [flexcoders] Calls to CFCs Here is where the connection is setup in the main file: mx:RemoteObject id="mr_cfc" endpoint="http://cfxtest.research.unc.edu/flashservices/gateway" source="mr.mr_cfc" fault="mx.controls.Alert.show(event.fault.faultstring)" showBusyCursor="true" --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links As a professional in computers, I personaly recommend Avast Antivirusavast! Antivirus: Inbound message clean. Virus Database (VPS): 0539-1, 09/27/2005Tested on: 9/29/2005 8:13:54 AMavast! - copyright (c) 2000-2004 ALWIL Software. -- Greg Johnson Owner Lead Technician [EMAIL PROTECTED] Techno-Fix-It Filling the Gap Between the Store and the Repair Shop -- www.technofixit.com Phone:(919)-371-1476 Fax:(919)-882-9804 P.O. Box 1094 Morrisville, N.C. 27560 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development
RE: [flexcoders] Calls to CFCs
Are you setting remote-objects-debug in flex-config.xml? What version of ColdFusion are you using? Re: the unsupported type in stream message... are you doing anything like the following: var s:String = new String("foo"); var b:Boolean = new Boolean(true); var n:Number = new Number(4); Unfortunately in AS1/AS2 the Flash Player does not recognize the Object form of String, Boolean or Number type for serialization purposes so it sends them (yes, oddly) as an unsupported type when serialized as AMF which the remoting gateway rejects. If you use the "primitive" forms of these types in ActionScript: var s:String = "foo"; var b:Boolean = true; var n:Number = 4; It should work fine. Out of curiosity, how are you generating the data that is sent to the CFC? Are you loading a web service first by any chance and then trying to send that result to a CFC via remote object? Can you post the cffunction and accompanying cfargument tags from your CFC method that you're invoking? Can you also post the ActionScript line you're using to call the RemoteObject abstraction of your CFC? Thanks, Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg JohnsonSent: Thursday, September 29, 2005 11:00 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Calls to CFCs Well the problem with it not passing solved itself somehow. Debugger still wont let me watch variables though.I tried the ? and while it prevented it from hanging, when I go do one search I get a message about unsupported type in stream so I just went back to the webservice. Even tried diffferent tweeks to the cfc etc and it wouldn't work.Peter Farland wrote: Note that my suggestion was to append the ? query string marker, please let me know if this resolves the issue as your initial symptoms described the issue with AppendToGatewayUrl exactly. Also, the problem is that Flash Remoting (and hence stillFlex's RemoteObject)with ColdFusion introduced the concept of named arguments. That is, if your CFC is expecting a Struct as a single argument and you're sending it an object, then it won't work as the CFC proxy between the gateway interprets them as "named arguments" and thus looks for parameters to match each of the keys in the AS Object. Try adding a second, dummy variable to the CFC function and let me know if this solves the issue. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Greg JohnsonSent: Thursday, September 29, 2005 8:42 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Calls to CFCsI will give that the / suggestion a try. As a workaround I switched to a webservice vs remoteobject and it has no problems and seems to let the client load faster.But I just commented out the remoteobject so I will try flipping back and see what happens.Now my biggest problems are I am making a call to a CFC and passing it a parameter but the CFC is complaining that it wasn't passed. Plus my debugger for some reason who let me watch variables anymore. I put an alert in the Flex code just before the CFC call and it shows valid data in the variable I am sending, but it just doesn't get to the CFC for some reason. Doing the same exact thing with all the other CFCs and they work fine :/Peter Farland wrote: Actually, it's likely that you're getting an AppendToGatewayUrl AMFResponse Header from the server because it detected that while a sessionwas created during the request, the client didn't inform the serverwhether it could accept cookies. This AMF Response Header is trying to tell the client NetConnection todecorate its connection URL with some extra info, for example ajsessionid for Java or a cfid/cftoken for ColdFusion.You may then be using IIS... In which case it may be barfing on thesemi-colon in something like the jsessionid token, irrespective ofwhether you have a ;.http://cfxtest.research.unc.edu/flashservices/gateway/;jessionid=XYZ123ABCI believe CF released a hot fix for this issue, but the work around iseasy... Just add a ? To the gateway URL (or "endpoint" in flex speak) sothat the session information won't annoy IIS.endpoint="http://cfxtest.research.unc.edu/flashservices/gateway?"Pete-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of MuzakSent: Wednesday, September 28, 2005 11:22 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Calls to CFCsA wild guess: try adding a "/" at the end of the gateway url.endpoint="http://cfxtest.research.unc.edu/flashservices/gateway/"I've seen USERID and alike being added to the gateway url when makingremote calls.In that case, without the ending '/', the gateway url gets messed up.Migh
RE: [flexcoders] Calls to CFCs
I could probably solve your JRun errors too if you posted them... but that aside, I can help you turn on server side tracing for the CFMX 7 version of the gateway what you need to do is look out for the gateway-config.xml file that is specific to the gateway that you're calling. It might be under: /WEB-INF/coldfusion/gateway-config.xml I believe the servlet that's mapped to /flashservices will have an init param in /WEB-INF/web.xml that points you to the location of the configuration file that the gateway is using. Anyway, in this file you'd set the logger to debug: logger level="Debug"(whatever gateway logger implementation CF uses would be listed here... I think it was coldfusion.flash.ColdFusionLogger if I remember correctly)/logger You should then be able to look at the log to see a dump of the AMF traffic that went through the gateway's serializer... this might give you a clue as to which parameters are being sent to your CFC method. I think CFMX 7 redirects log info to a flash.log. If you started JRun from the command line and wanted to just see this info on the console you could always switch to use the DefaultLogger: logger level="Error"flashgateway.log.DefaultLogger/logger Also, I'd still like to look at the cffunction and cfargument tag signatures for your CFC method In any case, can you try this instead: var otd_tech_after_db:String = "";var otd_tech_before_db:String = ""; If it's not that, can you try narrowing down which attribute is causing it in the call (i.e. by sending null or something you know is a primitive type or a structure that could not possibly contain non-primitive types for the aforementioned Boolean, String or Class types... i.e. don't necessarily trust an API to return you a primitive until you've tracked down the cause)? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg JohnsonSent: Thursday, September 29, 2005 11:22 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Calls to CFCs I tried to set that once and started getting J-Run errors. We are running MX7.I am not exactly doing that. The related code that is run when that message shows up is below where Person_List is a datagrid, and otd_tech_after_db is empty at the time of the cfc callvar otd_tech_after_db:String = new String();var otd_tech_before_db:String = new String();function initFunction() { MainNavigation.visible=false; Selections.visible=false; otd_tech_before_db = getToday();}function getToday():String { var today_date:Date = new Date(); var date_str:String = ((today_date.getMonth()+1)+"/"+today_date.getDate()+"/"+today_date.getFullYear()); return date_str;}private function getTechSearch():Void { mr_cfc.get_tech_search(otd_tech_before_db, otd_tech_after_db, getPIDs());}private function getPIDs():Array { var SelectionPIDs:Array = new Array(); for (var i=0; iPerson_List.length; i++) { SelectionPIDs[i] = Person_List.dataProvider[i].PERSON_ID; } return SelectionPIDs;}private function doResultGetTechSearch(result:Array):Void { var TempObject:Object = new Object(); var GetTechSearchArray:Array = new Array(); for(var i=0; i result.length; i++){ TempObject = result[i]; GetTechSearchArray.push(TempObject); } OTD_TECH_RESULTS.dataProvider = GetTechSearchArray;}Peter Farland wrote: Are you setting remote-objects-debug in flex-config.xml? What version of ColdFusion are you using? Re: the unsupported type in stream message... are you doing anything like the following: var s:String = new String("foo"); var b:Boolean = new Boolean(true); var n:Number = new Number(4); Unfortunately in AS1/AS2 the Flash Player does not recognize the Object form of String, Boolean or Number type for serialization purposes so it sends them (yes, oddly) as an unsupported type when serialized as AMF which the remoting gateway rejects. If you use the "primitive" forms of these types in ActionScript: var s:String = "foo"; var b:Boolean = true; var n:Number = 4; It should work fine. Out of curiosity, how are you generating the data that is sent to the CFC? Are you loading a web service first by any chance and then trying to send that result to a CFC via remote object? Can you post the cffunction and accompanying cfargument tags from your CFC method that you're invoking? Can you also post the ActionScript line you're using to call the RemoteObject abstraction of your CFC? Thanks, Pete -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development
RE: [flexcoders] Calls to CFCs
Er,that wouldrequire the "Debug" level log too... logger level="Debug"flashgateway.log.DefaultLogger/logger And I should have also mentioned that you need to restart JRun if you change any config files. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] CFC Cashing
Are you using the CFC as a web service? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Johnson Sent: Wednesday, October 05, 2005 10:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] CFC Cashing I make a change to the CFC and the Flex App doesn't see it unless I change the CFC's filename. How can I force it to see the updates without having to constantly play musical filenames? -- Greg Johnson Owner Lead Technician [EMAIL PROTECTED] Techno-Fix-It Filling the Gap Between the Store and the Repair Shop -- www.technofixit.com Phone:(919)-371-1476 Fax:(919)-882-9804 P.O. Box 1094 Morrisville, N.C. 27560 Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/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 Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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/
RE: [flexcoders] RemoteObject call to POJO on JRUN
Are you sure that /amfgateway is mapped to your Flex AMF GatewayServlet in /WEB-INF/web.xml and not a coldfusion one? Have you used a sniffer to try and watch where your SWF is trying to call - i.e. tracking down host names, ports, context roots, what have you... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy CraneSent: Friday, October 14, 2005 5:57 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] RemoteObject call to POJO on JRUN One more thing that I should mention is that Flex and Coldfusion are installed on separate JRun server instances. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy CraneSent: Friday, October 14, 2005 7:35 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] RemoteObject call to POJO on JRUN Ok, I have again resumed trying to figure out how to get a call to a Remote Java object working. I posted a previous message on this topic, but was not able to get a working answer. The PROBLEM: When calling a java class located in {contextroot}\classes\com\obc I get a response of Service threw an exception during method invocation: no service named com.obc.User known to Flash Remoting MX. BACKGROUND: Flex installed on a Coldfusion MX integrated JRun4 server. The remote-object section of the flex-config file contains the following remote-objects amf-gateway{context.root}/amfgateway/amf-gateway amf-https-gateway{context.root}/amfgateway/amf-https-gateway allow-url-overridefalse/allow-url-override whitelist !-- whitelist config for unnamed objects -- unnamed source*/source MORE BACKGROUND: I can make a successful call to a coldfusion component as a webservice using mx:RemoteObject It seems to me that somehow there is a conflict with the remoting gateway for coldfusion and the one for flex, but I really am not sure how to fix it if it is actually what is causing the problem. If anyone has experienced this problem, or knows of a solution I really appreciate your suggestions. Thanks, Jeremy -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] RemoteObject call to POJO on JRUN
I think JRun has a sniffer.exe in the main jrun bin directory that you could use... I think you would have to methodically track down what URLs are being used at compile time, what URLs are being used to host the SWF, what URLs are being used to make data requests. Without detailed info I can't suggest more than that as it seems that what you're doing in terms of RemoteObject is fine (as per it working on Tomcat). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy CraneSent: Sunday, October 16, 2005 9:51 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] RemoteObject call to POJO on JRUN Here is the mapping I have for the AMFGatewayServlet in my flex servers /WEB-INF/web.xml file: !-- Flash Remoting AMF Gateway URL -- servlet-mapping servlet-nameAMFGatewayServlet/servlet-name url-pattern/amfgateway/*/url-pattern /servlet-mapping As for using a sniffer, NO I havent tried using one. How might I go about it, what program should I use? Also, I have since installed Tomcat and copied the server I had setup on JRun onto it and magically it is working! Now, since we know it is not my code or the flex-config.xml configuration that it must be JRun and/or a conflict with coldfusion. Im not sure how to resolve this issue, and am pretty pissed and frustrated having found out that everything I needed to do to get my remote java classes to work was correct. I would like to still figure out what the issue is with JRun problem. Thanks, Jeremy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Peter FarlandSent: Sunday, October 16, 2005 6:05 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] RemoteObject call to POJO on JRUN Are you sure that /amfgateway is mapped to your Flex AMF GatewayServlet in /WEB-INF/web.xml and not a coldfusion one? Have you used a sniffer to try and watch where your SWF is trying to call - i.e. tracking down host names, ports, context roots, what have you... From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy CraneSent: Friday, October 14, 2005 5:57 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] RemoteObject call to POJO on JRUN One more thing that I should mention is that Flex and Coldfusion are installed on separate JRun server instances. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy CraneSent: Friday, October 14, 2005 7:35 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] RemoteObject call to POJO on JRUN Ok, I have again resumed trying to figure out how to get a call to a Remote Java object working. I posted a previous message on this topic, but was not able to get a working answer. The PROBLEM: When calling a java class located in {contextroot}\classes\com\obc I get a response of Service threw an exception during method invocation: no service named com.obc.User known to Flash Remoting MX. BACKGROUND: Flex installed on a Coldfusion MX integrated JRun4 server. The remote-object section of the flex-config file contains the following remote-objects amf-gateway{context.root}/amfgateway/amf-gateway amf-https-gateway{context.root}/amfgateway/amf-https-gateway allow-url-overridefalse/allow-url-override whitelist !-- whitelist config for unnamed objects -- unnamed source*/source MORE BACKGROUND: I can make a successful call to a coldfusion component as a webservice using mx:RemoteObject It seems to me that somehow there is a conflict with the remoting gateway for coldfusion and the one for flex, but I really am not sure how to fix it if it is actually what is causing the problem. If anyone has experienced this problem, or knows of a solution I really appreciate your suggestions. Thanks, Jeremy -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: dates, AS, and Java
Dates are supported via AMF in the manner you describe. Can you send me the full method signatures that are supposed to line up? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf Sent: Thursday, November 03, 2005 6:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: dates, AS, and Java That sounds like a bug in the serializers to me. Its getting marshalled as a string. Now in a WebService you should use a Calendar rather then a Date. Have you tried that to see if it works better? It definately works with a WebService. biting my lip to not make a WebService vs AMF debate again -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY x85 --- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: ok, say I have a Java VO called FooVO and a AS VO called FooVO. Both have a property called myDate of Date datatype. The Java version has a getter and setter for it. I have the AS Vo registered to map to the Java one. It seems the Java setter can't set the date from the value in the AS VO. Could not set object Sat Nov 05 16:56:02 EST 2005 on class com.joe.world.FooVO's method setWeekEndDate Do I Date datatypes map across the wire correctly from AS to Java? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/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 Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/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/
RE: [flexcoders] Re: Returning Object Instances from ColdFusion
Benoit, both of those approaches are Flex 2.0 only. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benoit Hediard Sent: Sunday, November 20, 2005 6:56 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Returning Object Instances from ColdFusion I think that you should use the Flex Metada RemoteClass in your AS class: [RemoteClass(alias=CFIDE.samples.usermanager.components.User)] public class User { ... } But apparently, it is not yet supported in current alpha release... So for the moment, you have to use registerClassAlias : public function User() { registerClassAlias(CFIDE.samples.usermanager.components.user, User); } Be carefull, you might get coersion failed error, due to some lazy class initialization. So, as a workaround, you need to define a static var to instantiate the class in your remoting responser. private static var DEP_LINK:User = new User(); For more information on this problem: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=584; threadid=1069666 Benoit Hediard -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Renaun Erickson Envoyé : dimanche 20 novembre 2005 07:34 À : flexcoders@yahoogroups.com Objet : [flexcoders] Re: Returning Object Instances from ColdFusion I have not tried the code, but from what I read it seems that all you would need to do is put the line of code below in the begining of your app. Like in the initialize event of the main mxml file. mx.utils.ClassUtil.FLEX_CLASS_FIELD = _REMOTECLASS; Renaun --- In flexcoders@yahoogroups.com, Simeon Bateman [EMAIL PROTECTED] wrote: Thanks for your response. I guess my real question is where am I supposed to set hte FLEX_CLASS_FIELD at? Just in my VO in as? Its just not clear to me. Thanks. simeon --- In flexcoders@yahoogroups.com, Renaun Erickson [EMAIL PROTECTED] wrote: mx.utils.ClassUtil.FLEX_CLASS_FIELD is a static field. And the value is _remoteClass the article is pointing out that you need to set it to _REMOTECLASS because of how coldfusion sends back properties (in all uppercase). So like the article notes your AS Objects will have to have all UPPER class attribute names. Renaun --- In flexcoders@yahoogroups.com, Simeon Bateman [EMAIL PROTECTED] wrote: Hey i am working on returning custom objects from coldfusion to my flex application. I found a good example of this here http://www.richinternet.de/blog/index.cfm?mode=entryentry=74BA931D-C3DA-FDE 0-C7959146205942DA However in the notes at the bottom it says: Edit: if you want to return CFC instances rather than structs then you'll have to change the static property FLEX_CLASS_FIELD of the mx.utils.ClassUtil class to _REMOTECLASS. But I cant figure out where/how to make this change? I have googled and searched the docs, and I cant find any examples of using this class. Thanks for any guidance i can get here. simeon Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/u8TY5A/tzNLAA/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 Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/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 Yahoo! Groups Sponsor ~-- AIDS in India: A lurking bomb. Click and help stop AIDS now. http://us.click.yahoo.com/VpTY2A/lzNLAA/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/
RE: [flexcoders] Quick RemoteObject clarification
The Flash Remoting Gateway has been superseded by the Remoting Service from Flex Enterprise Services (now referred to as Flex Data Services as of Flex Beta 2). RemoteObject in Flex 2 connects to the FDS RemotingService using RemotingMessages. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan MirandaSent: Tuesday, March 14, 2006 4:00 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Quick RemoteObject clarification RemoteObject in Flex 2 requires Flex Enterprise Services and a Flash Remoting Gateway (or does FES come with one?).RemoteObject in Flex 1.5 just requires a Flash Remoting Gateway.Right? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: WSDLResponse not resolvable
If you could send me the WSDL I could take a look. It might be a problem with non-qualified versus qualified wrapped document literal web services. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan MirandaSent: Monday, March 13, 2006 6:41 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable Heres a doosey then the exact same call using Flex 1.5 works completely fine. Flex 2 I get this error.so either Flex 1.5 doesnt care about the WSDL problem or Flex2 changed something about not allowing the return of complex objects in a webservice. _ Jonathan Miranda Flexible Master of the Web "Try not to become a man of success, but a man of value." - Albert Einstein HealthGrades: Guiding America to Better Healthcare NASDAQ: HGRD w (720) 963-3832 c (707) 761-0868 [EMAIL PROTECTED] _ The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee. If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: Sunday, March 12, 2006 2:42 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable So far when weve seen this its been because the namespace declaration was missing in the WSDL that would line up the GetCitiesResponse with the method. So go through your produced WSDL carefully and make sure that the namespaces match up correctly. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan MirandaSent: Friday, March 10, 2006 3:22 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable Nah, its not the response not being there.oddly enough passing a string works fine its a return type of Any (object) or Struct that blows up. _ Jonathan Miranda Flexible Master of the Web "Try not to become a man of success, but a man of value." - Albert Einstein HealthGrades: Guiding America to Better Healthcare NASDAQ: HGRD w (720) 963-3832 c (707) 761-0868 [EMAIL PROTECTED] _ The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee. If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doug LowderSent: Friday, March 10, 2006 4:08 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: WSDLResponse not resolvable Looks like some kind of mismatch between GetCities and GetCitiesResponse in your code (although I didn't see a definition for GetCitiesResponse).Maybe try: mx:operation name="GetCities" fault="Alert.show('Error:'+event.fault.faultstring,'Error',Alert.OK)" result="getCitiesHandler(event)"...function getCitiesHandler(event: mx.rpc.events.ResultEvent) { myData = event.result;}...myRemote.GetCities(myState, myCityType);--- In flexcoders@yahoogroups.com, "Jonathan Miranda" [EMAIL PROTECTED] wrote: Need help with an error message - Working with BlueDragon (aka .Net), I'm attempting a WebService in Flex. Doing a "cfinvoke" works fine and looking at the wsdl produced from the CFC it looks fine...but I get this when I try a WebService call. Element http://www.newatlanta.com/bluedragon/cfc/:GetCitiesResponse not resolvable at mx.rpc.soap::WSDLParser/http://www.macromedia.com/2005/flex/mx/internal: :parseMessage() at mx.rpc.soap::WSDLOperation/parseMessages() at mx.rpc.soap::Operation/http://www.macromedia.com/2005/flex/mx/internal:: invokePendingCall()
RE: [flexcoders] Re: WSDLResponse not resolvable
This looks like a Flex 2 bug with the schema elementFormDefault="qualified" attribute not being honored for each element defined in the types section. I believe a work around for now is to manually add form="qualified" attributes to the relevant element tags for each type definition. I've logged a bug and will ask for this to betargeted for beta 3. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter FarlandSent: Wednesday, March 15, 2006 1:25 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable If you could send me the WSDL I could take a look. It might be a problem with non-qualified versus qualified wrapped document literal web services. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan MirandaSent: Monday, March 13, 2006 6:41 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable Heres a doosey then the exact same call using Flex 1.5 works completely fine. Flex 2 I get this error.so either Flex 1.5 doesnt care about the WSDL problem or Flex2 changed something about not allowing the return of complex objects in a webservice. _ Jonathan Miranda Flexible Master of the Web "Try not to become a man of success, but a man of value." - Albert Einstein HealthGrades: Guiding America to Better Healthcare NASDAQ: HGRD w (720) 963-3832 c (707) 761-0868 [EMAIL PROTECTED] _ The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee. If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: Sunday, March 12, 2006 2:42 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable So far when weve seen this its been because the namespace declaration was missing in the WSDL that would line up the GetCitiesResponse with the method. So go through your produced WSDL carefully and make sure that the namespaces match up correctly. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan MirandaSent: Friday, March 10, 2006 3:22 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable Nah, its not the response not being there.oddly enough passing a string works fine its a return type of Any (object) or Struct that blows up. _ Jonathan Miranda Flexible Master of the Web "Try not to become a man of success, but a man of value." - Albert Einstein HealthGrades: Guiding America to Better Healthcare NASDAQ: HGRD w (720) 963-3832 c (707) 761-0868 [EMAIL PROTECTED] _ The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee. If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doug LowderSent: Friday, March 10, 2006 4:08 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: WSDLResponse not resolvable Looks like some kind of mismatch between GetCities and GetCitiesResponse in your code (although I didn't see a definition for GetCitiesResponse).Maybe try: mx:operation name="GetCities" fault="Alert.show('Error:'+event.fault.faultstring,'Error',Alert.OK)" result="getCitiesHandler(event)"...function getCitiesHandler(event: mx.rpc.events.ResultEvent) { myData = event.result;}...myRemote.GetCities(myState, myCityType);--- In flexcoders@yahoogroups.com, "Jonathan Miranda" [EMAIL PROTECTED] wrote: Need help
RE: [flexcoders] Re: WSDLResponse not resolvable
Actually, sorry, this is not the case. Your issue is a Flex 2 Beta 1 bug that should be fixed for Beta 2. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter FarlandSent: Wednesday, March 15, 2006 2:08 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable This looks like a Flex 2 bug with the schema elementFormDefault="qualified" attribute not being honored for each element defined in the types section. I believe a work around for now is to manually add form="qualified" attributes to the relevant element tags for each type definition. I've logged a bug and will ask for this to betargeted for beta 3. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter FarlandSent: Wednesday, March 15, 2006 1:25 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable If you could send me the WSDL I could take a look. It might be a problem with non-qualified versus qualified wrapped document literal web services. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan MirandaSent: Monday, March 13, 2006 6:41 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable Heres a doosey then the exact same call using Flex 1.5 works completely fine. Flex 2 I get this error.so either Flex 1.5 doesnt care about the WSDL problem or Flex2 changed something about not allowing the return of complex objects in a webservice. _ Jonathan Miranda Flexible Master of the Web "Try not to become a man of success, but a man of value." - Albert Einstein HealthGrades: Guiding America to Better Healthcare NASDAQ: HGRD w (720) 963-3832 c (707) 761-0868 [EMAIL PROTECTED] _ The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee. If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: Sunday, March 12, 2006 2:42 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable So far when weve seen this its been because the namespace declaration was missing in the WSDL that would line up the GetCitiesResponse with the method. So go through your produced WSDL carefully and make sure that the namespaces match up correctly. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan MirandaSent: Friday, March 10, 2006 3:22 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: WSDLResponse not resolvable Nah, its not the response not being there.oddly enough passing a string works fine its a return type of Any (object) or Struct that blows up. _ Jonathan Miranda Flexible Master of the Web "Try not to become a man of success, but a man of value." - Albert Einstein HealthGrades: Guiding America to Better Healthcare NASDAQ: HGRD w (720) 963-3832 c (707) 761-0868 [EMAIL PROTECTED] _ The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee. If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doug LowderSent: Friday, March 10, 2006 4:08 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: WSDLResponse not resolvable Looks like some kind of mismatch between GetCities and GetCitiesResponse in your code (although I didn't see a definition for GetCitiesResponse).Maybe try: mx:operation name="GetCities"
RE: [flexcoders] Configuring RemoteObject destinations (Flex 2)
If you use {server.name} in place of the IP address or host server name then it will be replaced at runtime with that used to load the SWF. Note that if you load a SWF from the file system using the standalone player then it will be interpreted as localhost. As for the port token, {server.port}, in the case of a file system loaded swf, it defaults to port 80. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Y. KwongSent: Wednesday, March 15, 2006 7:41 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Configuring RemoteObject destinations (Flex 2) This came up cause I was configuring my Flex 2 app to communicate with ColdFusion, but I suppose it applies to RemoteObject in general. In order to tell your app the location of a web service destination, we're told to add something like this to the compiler command line: --services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml Now, my first question is, since the file flex-enterprise-services.xml resides on the server (be it ColdFusion or FES) and you typically don't do your client development on the same machine as the production server, how would this work in the general case? Anyway, so then I decided to copy the file to my development machine and then manually changed "localhost" to the server's IP address in the channel configuration. I compiled my app and it worked fine. But now it appears that the server's address is compiled directly into the swf. Are we unable to dynamically assign server addresses at runtime? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Configuring RemoteObject destinations (Flex 2)
Additionally, you could configure several channels for a destination and rely on channel failover so that it will look for one then the other... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Y. KwongSent: Wednesday, March 15, 2006 7:41 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Configuring RemoteObject destinations (Flex 2) This came up cause I was configuring my Flex 2 app to communicate with ColdFusion, but I suppose it applies to RemoteObject in general. In order to tell your app the location of a web service destination, we're told to add something like this to the compiler command line: --services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml Now, my first question is, since the file flex-enterprise-services.xml resides on the server (be it ColdFusion or FES) and you typically don't do your client development on the same machine as the production server, how would this work in the general case? Anyway, so then I decided to copy the file to my development machine and then manually changed "localhost" to the server's IP address in the channel configuration. I compiled my app and it worked fine. But now it appears that the server's address is compiled directly into the swf. Are we unable to dynamically assign server addresses at runtime? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Web Service Call - Flex 2 (Complex Type with Args)
I can take a look. Can you send me the WSDL directly? Thanks, Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richie Rich Sent: Wednesday, March 15, 2006 9:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Web Service Call - Flex 2 (Complex Type with Args) Any body want to take a look at this please. --- In flexcoders@yahoogroups.com, Richie Rich [EMAIL PROTECTED] wrote: Hello, I am trying to send aWebService Operation to a WSDL with a Complex Type with 4 nodes (children) and one of the nodes have 2 additional args that need to be passed. Here is the MXML Code i am currently using: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* layout=absolute creationComplete=myIDSP.RunScript.send() mx:WebService id=myIDSP wsdl=http://SomeNetwork/myWSDL.wsdl; mx:operation name=RunScript mx:request runScriptParameters scriptText/scriptText scriptLanguagejavascript/scriptLanguage scriptFile/myFilePath/myFileName/scriptFile scriptArgs nameoutput/name value/myFilePath/myFileName/value /scriptArgs /runScriptParameters /mx:request /mx:operation /mx:WebService mx:TextArea text={myIDSP.RunScript.result} width=521 height=188/ /mx:Application Here is a tested SOAP Message that works with the SOAP Debugger in XMLSpy: SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; SOAP-ENV:Body m:RunScript xmlns:m=http://ns.mysite.com/myApp/soap/; runScriptParameters scriptTextString/scriptText scriptLanguageString/scriptLanguage scriptFileString/scriptFile scriptArgs nameString/name valueString/value /scriptArgs /runScriptParameters /m:RunScript /SOAP-ENV:Body /SOAP-ENV:Envelope Everything works fine the scriptText, scriptLanguage and scriptFile values get passed along. But the scriptArgs are not being passed to the endpoint. Is this a bug in FLEX 2? I have tried to trace this down in the FLEX Debugger and It looks as if the MXML code is doing what it suppost to do but the values are not being passed. Any help would be appreciated, Rich -- 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/
RE: [flexcoders] Re: 2.0B1 - Use of CSS style sheet with DataGridColumn styleName
is terribly inconsistent about what text to use to reference the styles. It uses font-family, fontFamily, font-weight, borderStyle... What is it supposed to be? Perhaps the documentation didn't explain this but the style names can be represented in either way... it depends on how they're specified. The form that has the hyphens in it are usually the standard CSS syntax where as for ActionScript code, hyphens are not allowed in dot-syntax for accessing ActionScript property names so one would use the hyphenless syntax. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork Sent: Thursday, March 16, 2006 1:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: 2.0B1 - Use of CSS style sheet with DataGridColumn styleName -- 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/
RE: [flexcoders] What is the basic flow of Flex?
Is this for Flex 1.5 or Flex 2? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Pieszak Sent: Tuesday, March 21, 2006 6:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] What is the basic flow of Flex? Hello again, I'm very new to Flex, and I've spent the past few days just getting it installed, but I'm having trouble fitting it into our development environment. All the sample apps make the assumption that you're developing on the server, but we don't, and I can't get the apps to work (and the online documentation is less than stellar). Can somebody just give me a 1000ft view of the logic flow? If I'm browsing to a .html page, when is the .mxml page utilized? The .mxml page just tells the compiler how to build the .swf? What is the purpose of the flex-enterprise-services.xml file and when is it utilized? What is the purpose of the endpoint ... / line in the xml file? I really appreciate any help. It's been a long few days trying to get started, and I think some basic understanding would go a long way for me. Thanks all, Ryan -- 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 -- 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/
RE: [flexcoders] java.util.Map
java.util.Map is supported in any version of Flex and the following should work in either version: var stab:Object = event.result;for (var key:String in stab) { txt.text = "--" + stab[key]; } advanced Are you using Flex 1.5 or Flex 2? The difference between Flex 1.5 and Flex 2 is that Map is returned as Object in Flex 2... where as in Flex 1.5 it was technically an Array with named keys, but behaved like an Object syntactically.There are round trip use cases where this causes issues so we moved back to Flex 1.0 rules for Map and thus they're returned as Object now. There is a property that can be on a channel-definition that allows the legacy rules for Map serialization to be restored. /advanced From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dos dedosSent: Tuesday, March 21, 2006 1:34 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] java.util.Map just guessing ... but maybe there is no support yet in AS for Java map typelorejava [EMAIL PROTECTED] wrote: Hello,I have a reading problem when I use returned a java.utilMap from aJava class. Follow my code:Java class-- public Map getHashMap() { Map hm = new HashMap(); hm.put("HashMap1", "valore1"); hm.put("HashMap2", "valore2"); hm.put("HashMap3", "valore3"); return hm; } Flex Monitor result when i call my java method:---[array] : length[Number] : 0In AS I call and read the method in this way:remoteDataService.getHashMap().send;...var stab:Object=event.result;txt.text="--" + stab[0].value;What's wrong??? All? Thanks for your next replies. Bye Brings words and photos together (easily) withPhotoMail - it's free and works with Yahoo! Mail. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: What is the basic flow of Flex?
Hey Ryan, From your original email it looks like you're not looking to use the FDS 2 server but only ColdFusion. The workflow for your scenario might be something like this: You will write code in ActionScript 3.0 and MXML for Flex 2 in your favorite IDE. Ideally you'd use Flex Builder 2 which plugs in to Eclipse as your development environment (Flex Builder 2 gives you among other things a design view, code insight, compilation integration and a visual ActionScript 3 debugger, etc). You'd compile a SWF from your MXML+AS3 source code and then deploy it on to a web server. Note that this is one of the major differences in the workflow from Flex 1.5 - you don't deploy .mxml files - just compiled .swf files that will run in Flash Player 8.5. As for communicating with a ColdFusion server to get data back into your application there's several approaches to consider. You could use the Flex 2 WebService API to contact a remotely accessible CFC through its ability to particiapte as a web service; or you could contact a ColdFusion template that dynamically generated XML from the HTTPService API; or you could use one of the ActionScript 3.0 APIs for connectivity such as flash.net.XMLSocket, flash.net.NetConnection, or flash.net.URLLoader; or you could use the compact, efficient, strongly typed RemoteObject API to connect directly to a CFC. Note that all of these APIs are subject to the Flash Player 8.5 security sandbox. To contact servers other than that which was used to host the SWF requires a crossdomain.xml file to reside on each of the remote servers. Actually, RemoteObject deserves some more detail as it will lead to an answer for your specific questions. Along with ActionScript 3.0, Flash Player 8.5 introduces a new version of its ActionScript focused binary communications protocol AMF, referred to as AMF 3. Further more, Flex 2 Data Services are built on a common messaging architecture that provide further benefits, one such example is channel endpoint failover. RemoteObject is a Flex 2 Data Service that is built on top of this messaging framework. ColdFusion will include updates that will allow it to both understand AMF 3 and Flex 2 Data Services messages. In order for ColdFusion to configure its support for this new messaging infrastructure it has to be configured with a Flex specific file, namely the flex-enterprise-services.xml. It's beyond the scope of this email to explain this file in detail (there should be documentation on this file on the labs site), but note that endpoints are what the client messaging framework connects to. This configuration is specific to services that use the Flex 2 messaging infrastructure - that is, it isn't something native to the Flash Player. I hope this helps you get on the right path to groking all of this, Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Pieszak Sent: Tuesday, March 21, 2006 1:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: What is the basic flow of Flex? Sorry, it's for Flex 2. And I'm talking specifically about ColdFusion and Flex integration. Thanks. --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Is this for Flex 1.5 or Flex 2? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Pieszak Sent: Tuesday, March 21, 2006 6:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] What is the basic flow of Flex? Hello again, I'm very new to Flex, and I've spent the past few days just getting it installed, but I'm having trouble fitting it into our development environment. All the sample apps make the assumption that you're developing on the server, but we don't, and I can't get the apps to work (and the online documentation is less than stellar). Can somebody just give me a 1000ft view of the logic flow? If I'm browsing to a .html page, when is the .mxml page utilized? The .mxml page just tells the compiler how to build the .swf? What is the purpose of the flex-enterprise-services.xml file and when is it utilized? What is the purpose of the endpoint ... / line in the xml file? I really appreciate any help. It's been a long few days trying to get started, and I think some basic understanding would go a long way for me. Thanks all, Ryan -- 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 -- 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
RE: [flexcoders] Flex 2.0 b2: 'getClassByName' method of the 'flash.util' package
No, you must have a refernence to MyClass somewhere in your code in order for it to be linked in to the SWF at compile time. A string 'myPackage.MyClass' does not constitute a reference. This is not a bug - the compiler must optimize what classes are actually needed to keep the SWF size down. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tyombria Sent: Wednesday, March 22, 2006 4:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2.0 b2: 'getClassByName' method of the 'flash.util' package Hi, all. Method 'getClassByName' works correctly only with adobe classes. For example, getClassByName('flash.net.URLLoader') works fine. I've got a problem with my custom classes. For example: var myClassReference:MyClass = getClassByName('myPackage.MyClass'); I get error: Error #1065: Variable MyClass is not defined. Class exists in classpath or in the library. If i put somewhere inside declaration block: var myClass:MyClass It (getClassByName) works fine. Is it a bug? -- 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/
RE: [flexcoders] Coldfusion + FDS 2 DataService multiple problems
Do you have the [RemoteClass(alias="your.fully.qualified.case.sensitive.VO")] correctly registered on the ActionScript VO class? Are you sure you have the case of the package and class name exactly the same as the CFC VO? ActionScript 3 is case sensitive, even for package names (i.e. directory names in the path to your CFC). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João FernandesSent: Wednesday, March 22, 2006 11:17 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Coldfusion + FDS 2 DataService multiple problems Hi there, After some work I managed to get CF + FDS 2 under the same context root. Here are my problems: 1) When trying to get paged records from a destination, I always get the full result even when setting pageSize in the client-side . 2) Sometimes when editing directly the ArrayCollection from the DG I get the following error Error during update: the argument oldbean passed to function update() is not of type pt.cofina.intranet.messaging.clientes. If I debug it, my ArrayCollection is filled with mx.data.ManagedObjectProxy Objects instead of clientes (my VO). My assembler and all related objects were generated by the RDS wizard. Am I missing something? My As Code: ds = new DataService("clientes"); ac = new ArrayCollection() ds.autoCommit = true; ds.pageSize = 200; ds.fill(ac); Here is my destination definition: destination id="clientes" adapter ref="coldfusion-dao"/ channels channel ref="cf-dataservice-rtmp" / /channels properties metadata identity property="clienteid"/ /metadata network session-timeout0/session-timeout paging enabled="true" size="200"/ throttle-inbound policy="ERROR" max-frequency="500"/ throttle-outbound policy="REPLACE" max-frequency="500"/ /network server assembler componentpt.cofina.intranet.messaging.clientesAssembler/component hostnamelocalhost/hostname access method-access-levelremote/method-access-level /access property-case force-cfc-lowercasefalse/force-cfc-lowercase force-query-lowercasefalse/force-query-lowercase force-struct-lowercasefalse/force-struct-lowercase /property-case /assembler fill-method namefill/name /fill-method sync-method namesync/name /sync-method get-method nameget/name /get-method count-method namecount/name /count-method /server /properties /destination João FernandesDep. Informática - Área de DesenvolvimentoCofina mediaAvenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGALTel (+351) 213 185 200 . Fax (+351) 213 540 370[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Saving object graphs
ArrayCollection on the server extends ArrayList so that should work, but if you've got ManagedProxies instead of Books then it's likely the Book client type wasn't linked in to the SWF and/or properly registered with the correct [RemoteClass(alias=...)] metadata. Can you try adding a reference to the Book type in your code somewhere... Not just an import, but use it in a var type, or a function arg type or return type so that a dependency is created on the class and thus the compiler's optmizer will leave it in the SWF? Thanks, Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pepe_perez_perez_perez Sent: Thursday, March 23, 2006 8:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Saving object graphs Hi, I'm using data services with the JavaAdapter with the hierarchical values approach and I'm finding that when I invoke commit() from the client the object graph that I'm receiving in the server after the unmarshalling to Java is not what I'd expect. The original object graph that I sent to the client was: Library - Books (as an ArrayList) and the object graph I'm receiving is Library - Books (as an ArrayCollection of ManagedProxies). Hibernate is rejecting this graph on save (*). I don't know if this is the intended behaviour or not. Am I supposed to deep convert the Library object graph to the original form by my own?. Is there, in the HibernateAdapter, some class that I could use?. Thanks in advance, Pepe. (*) Please note that I'm not using the HibernateAdapter. I'm using the JavaAdapter with our current application which is Spring/Hibernate. -- 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/
RE: [flexcoders] Re: Saving object graphs
It is intended behavior and it's not an error (although a common one). If you don't create a reference to the class the optimizer won't keep it in the swf. If you didn't do this then each SWF would contain every class in the classpath - this is not good. An import doesn't guarantee the class will be used. Note that you don't need to make it bindable nor public nor does it necessarily have to be a variable to create a reference... also, I'd suggest making it static if you don't have a legitimate place in your API to create a reference to the class so that it doesn't effect every instance of the component (well, if it's on the top level Application this isn't as important). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pepe_perez_perez_perez Sent: Thursday, March 23, 2006 12:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Saving object graphs Can you try adding a reference to the Book type in your code somewhere... [Bindable] public var book : Book = new Book(); And, ¡bingo!, works perfectly. I don't know why I don't ask for help before. Have been with this 3 days. If that is the intended behaviour I'd report that as an error. Another problem now is that the Books are losing the backreference to Library but I'd send another message if I could not solve it by myself. Thanks a lot, Pepe. -- 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/
RE: [flexcoders] Unable to connect to RemoteObject
This is for Flex 2.0... are you compiling with Flex Builder 2 or the webtier compiler in FDS or perhaps even the command line using mxmlc? If you're not using the webtier compiler you need to specify the location of the flex-enterprise-services.xml file to the mxmlc compiler with the --services option. Also be careful with using tokens like {server.port} in the channel-definition as it requires the swf to be loaded from a browser. Try replacing all of the tokens in this file with hard coded defaults and work backwards. If you're using the {context.root} token and using mxmlc you may also have to provide this on the command line at compile time. Also consider the security sandbox. You may need a crossdomain.xml file at the webroot of the j2ee server hosting your message broker servlet, and note by default that needs to reside at the real webroot without a context root so you may need a web-app deployed with the default context root to place a file here. (There are ways around this, but it's simpler to do this). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeffrey_lage Sent: Friday, March 24, 2006 5:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Unable to connect to RemoteObject am trying to make a call to a method on a remote object and get the following error: Error: faultCode:InvokeFailed faultString:'Error: Unknown destination 'reconResultAssembler'.' faultDetail:'Couldn't establish a connection to 'reconResultAssembler'' at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invo ke() at mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/ internal::invoke() at mx.rpc.remoting::Operation/send() at mx.rpc.remoting.mxml::Operation/send() at rotest/__ok_click() here is the mx:RemoteObject tag in my .mxml file: mx:RemoteObject destination=reconResultAssembler id=reconRO showBusyCursor=true result=this.handleResult(event) mx:method name=getTree / /mx:RemoteObject here is my flex-remoting-service.xml file: ?xml version=1.0 encoding=UTF-8? service id=remoting-service class=flex.messaging.services.RemotingService messageTypes=flex.messaging.messages.RemotingMessage destination id=reconResultAssembler adapter ref=java-object/ properties sourcecom.dummy.recon.ReconResultAssembler/source /properties /destination adapters adapter-definition id=java-object class=flex.messaging.services.remoting.adapters.JavaAdapter default=true/ /adapters default-channels channel ref=my-amf/ /default-channels /service and here is my flex-enterprise-services.xml file: ?xml version=1.0 encoding=UTF-8? services-config xmlns=http://www.macromedia.com/2005/flex-service-config; services service-include file-path=flex-data-service.xml/ service-include file-path=flex-remoting-service.xml/ /services channels channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledtrue/polling-enabled /properties /channel-definition /channels /services-config does anyone see anything wrong? the remote call that is in the samples app works just fine. -- 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/
RE: [flexcoders] Setting up Remoting
It's prefilled with a path for the typical Java based installation. We expect uses to change this value for a variety of installation scenarios - essentially you will have to know the location of this file and update this value on ANY mxmlc compilation when using FDS or CF data services, such as RemoteObject. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stefan RichterSent: Friday, March 31, 2006 9:38 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Setting up Remoting When setting up a Flex2 Remoting project I noticed that the compile command is set to -services "C:\fds2\jrun4\servers\default\flex\WEB-INF\flex\flex-enterprise-services.xml" The docs state that it should be set to -services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml I tried with the former first and it failed. I tried the latter and it worked. Just thought I'd mention it here. Seems silly that it's prefilled with what seems to be the wrong path. Stefan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] cloning was: in operator (F2B2)
Darren, yep, we use this approach ourselves internally. I would like to clarify that ByteArray readObject and writeObject do retain object references between instances within the graph being cloned... just not to any other object outside of the graph. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darron J. SchallSent: Tuesday, April 04, 2006 6:31 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] cloning was: in operator (F2B2) Gordon Smith wrote: There is no easy way in Flex 2 to clone an arbitrary type of. Can you explain why you need to?Peter posted a neat approach here: http://www.peterjoel.com/blog/index.php?archive=2006_02_01_archive.xml#114064012876401732 package com.peterjoel.util {import flash.util.ByteArray;{public function cloneObject(o:Object):Object{var bytes:ByteArray = new ByteArray();bytes.writeObject(o);bytes.position = 0;return bytes.readObject();}}-d -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] OutOfMemoryError
Hi Kim, How are you compiling the application? The reason I ask is that it's not clear from your email what is reporting this error or where/how it is reported to you... When you say that you tried to run it in a browser, are you relying on the webtier compiler by browsing to a .mxml file to dynamically compile your application to a SWF? Or are you using JSP tags to dynamically general .mxml (If so, then I'm confused as you say you can see the .as file being generated... is this simply because you have keep generated actionscript enabled?). Or are you using Flex Builder? Actually, I need further clarification - are you using Flex 2 to compile this application, or did you simply install Flex 2in addition to/next to a Flex 1.5 application and now the Flex 1.5 application is reporting this error? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kim ReddingtonSent: Wednesday, April 05, 2006 10:28 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] OutOfMemoryError I have a large application that I've been running for over a year. All of a sudden the app stopped running. I am getting an OutOfMemory Error when I tried to run in any browser. My first thought was it must have been the changes I've made. Luckily, we are using CVS, so I grabbed a version of our software from a couple weeks ago. Well, the out of memory error is still there. So then I thought maybe it's because I installed Flex 2 Beta 2, so I uninstalled all the Beta 2 items (Builder, FDS, etc). The application was still erroring out. In trying to debug what is happening, I can see that the .as file is being generated, but the SWF file is not being created. The comiler is timing out before it completes the SWF. If anyone has any ideas of what I could look at, try, whatever. I been trying to figure this out for a couple of weeks and have run out of ideas. Has anyone seen this before? Has anyone had similar experiences after installing Flex 2? What might have changed? Thank you so much for your help, Kim -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: OutOfMemoryError
Yep, as Carson said, I'd be interested to see what happens when you change the maximum memory allocation size for the jvm.config file used by mxmlc? I'm also interested to see whether other simpler applications cause this error? If it still happens then, would it be possible to prepare a reproducible test case and file a bug (or prepare a bug and send it to me so I can forward it to QA?). At the very least if you could describe the number of components, classes and files used in the application it might help too. Thanks, Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kim ReddingtonSent: Wednesday, April 05, 2006 12:41 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: OutOfMemoryError Peter, I am running the application in Flex 1.5 and have installed Flex 2.0 for a different project. It doesn't matter how I run the app, I always get an OutOfMemory Error. I've tried running from Flex Builder, by typing the mxml filename in the browser address field, by bringing up the app via a jsp. I've tried it in IE and Firefox. I've removed flex 1.5 and flex 20 and reinstalled flex 1.5. Anyway I try to compile it still gives me an error. Yes, I have "save generated as" and "save swf file" both enabled to help me track down this problem. Someone else asked about Memory. I've upped the memory in Tomcat to be above and beyond what my colleagues are running. They can still get the app to run on their PC. The only differences are what software we have installed on our machines outside of this project. Thanks, Kim --- In flexcoders@yahoogroups.com, "Peter Farland" [EMAIL PROTECTED] wrote: Hi Kim, How are you compiling the application? The reason I ask is that it's not clear from your email what is reporting this error or where/how it is reported to you... When you say that you tried to run it in a browser, are you relying on the webtier compiler by browsing to a .mxml file to dynamically compile your application to a SWF? Or are you using JSP tags to dynamically general .mxml (If so, then I'm confused as you say you can see the .as file being generated... is this simply because you have keep generated actionscript enabled?). Or are you using Flex Builder? Actually, I need further clarification - are you using Flex 2 to compile this application, or did you simply install Flex 2 in addition to/next to a Flex 1.5 application and now the Flex 1.5 application is reporting this error? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kim Reddington Sent: Wednesday, April 05, 2006 10:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] OutOfMemoryError I have a large application that I've been running for over a year. All of a sudden the app stopped running. I am getting an OutOfMemory Error when I tried to run in any browser. My first thought was it must have been the changes I've made. Luckily, we are using CVS, so I grabbed a version of our software from a couple weeks ago. Well, the out of memory error is still there. So then I thought maybe it's because I installed Flex 2 Beta 2, so I uninstalled all the Beta 2 items (Builder, FDS, etc). The application was still erroring out. In trying to debug what is happening, I can see that the .as file is being generated, but the SWF file is not being created. The comiler is timing out before it completes the SWF. If anyone has any ideas of what I could look at, try, whatever. I been trying to figure this out for a couple of weeks and have run out of ideas. Has anyone seen this before? Has anyone had similar experiences after installing Flex 2? What might have changed? Thank you so much for your help, Kim -- 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 * Visit your group "flexcoders http://groups.yahoo.com/group/flexcoders " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . _Kim ReddingtonPrincipal Consultant/DeveloperDeluxe Technologieshttp://www.deluxetechnologies.com508-231-8744 -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] FDS and Remoting
Are you trying to contact the CF event gateway, or a normal endpoint like a CFC for RemoteObject? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of a1 Sent: Saturday, April 08, 2006 7:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FDS and Remoting So I'm trying to get FDS sending messages to ColdFusion remoting. I am able to receive messages just fine from CF. I'm attempting to do this with the following: private function sendMessage():void { var message: mx.messaging.messages.AsyncMessage = new AsyncMessage(); message.body = 'hello word'; producer.send(message); mx.controls.Alert.show('sent'); } mx:Producer id=producer destination=ColdFusionGateway resendAttempts=0 acknowledge=acknowledgeHandler(event) fault=faultHandler(event)/ But, now I get the following error from FDS: Unable to contact the RMI registry on host 127.0.0.1:8500 to look for gateway flexGateway: java.rmi.ConnectIOException: error during JRMP connection establishment... Anyone have any idea what I need to tweak in the xml files to get this working? -- 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/
RE: [flexcoders] Amfgateway call
If your serlvet mapping is /amfgateway/* then you should be allowed to append path info to the endpoint URI after the servlet mapping. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of siddiquihashimSent: Thursday, April 13, 2006 4:20 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Amfgateway call Hi All Coders,I have implemented java filter API to log /amfgateway/* transaction timings.It appears that all the remote object requests from flash player are with the same request URI which is in the format'http://server:port/context/amfgateway'Is there a way to append additional details to the remote object request URIe.g if I am calling authenticate() method of remote object com.abc.LoginServiceI should get following URLhttp://server:port/context/amfgateway/loginService/authenticateAlthough binary request has all this information about java object and method call we cannot intercept binary request as we cannot resetthe input stream. Is there a way to append it to the request URI?Thanks in advance.Sid -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Flex2/EJB3 integration: problems mapping Java/AS3 classes
It might simply be a problem in the beta 2 player, as I have registerClassAlias working for AMF 0 using a beta 3 player (not yet released, obviously). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Xavi BeumalaSent: Monday, April 17, 2006 5:05 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Flex2/EJB3 integration: problems mapping Java/AS3 classes Hi,I'm having the same problem with plain and simple Java classes with amf0. Serialization works like a charm from as3 to java, but it's not working from java to as3. The java class I'm using is what follows: codepackage com.code4net.vos;public class PhotoVO { private String title; private String photoURL; public String getPhotoURL() { return photoURL; } public void setPhotoURL(String photoURL) { this.photoURL = photoURL; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; }}/codeIt doesn't have any inheritance and it's really simple. I also thought [RemoteClass] wouldn't work with amf0 so I tried using flash.net.registerClassAlias but didn't work for me :-( It seems like custom objects aren't being casted when they arrive to flash player. Same code is working on AS2 so I think it's not a server side problem... Would be great to have this solved so it's really annoying to implement a custom deserialization method for each VO.Any help is much apreciated!Thanks X. On 4/17/06, carlos.rovira [EMAIL PROTECTED] wrote: Hi Matt,There's no extra space in [RemoteClass] maybe a typo due to the copypaste to the mail.I should point that I'm using AMF0, with OpenAMF, I forget to mention,sorry. And I was able to send the Employee class and operate in the backend, but the problem is in the return that I must to use a plainObject in the client.In the debug panel I could see that I'm sending an Employee Object.Maybe the [RemoteClass] doesn't work with AMF0? btw, what do you mean with"It's not maybe some weird implementation class that extends Employee?"The class must be compiled with JDK1.5, and all the project as well,due that I'm using annotations. Maybe this could be the problem? I saw another mail in the list from Xavi Beaumala with the sameproblem, hope someone could give us some lightThanks for any suggestion!C.--- In flexcoders@yahoogroups.com, "Matt Chotin" [EMAIL PROTECTED] wrote: Only thing I can see is the extra space in your [RemoteClass] which I would hope would not cause the mismatch.If you enable the debug logs when the object is sent from the server to the client does the log have the correct type of the Employee?It's not maybe some weird implementation class that extends Employee? Matt From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Carlos Rovira Sent: Saturday, April 15, 2006 3:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex2/EJB3 integration: problems mapping Java/AS3 classes ok, I though I should post the Employee classes as well: the AS3: -- package org.objectweb.easybeans.examples.entitybean { [Bindable] [RemoteClass(alias="org.objectweb.easybeans.examples.entitybean.Employee ")] public class Employee { public var id:int; public var name:String; } } -- the Java one: /*** EasyBeans* Copyright (C) 2006 Bull S.A.S.* Contact: [EMAIL PROTECTED]** This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either* version 2.1 of the License, or any later version.** This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU* Lesser General Public License for more details.* * You should have received a copy of the GNU Lesser General Public* License along with this library; if not, write to the Free Software* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307 * USA** --* $Id: Employee.java 9 2006-02-19 18:53:32Z benoitf $* --*/ package org.objectweb.easybeans.examples.entitybean; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; /*** Define an employee with an id and a name.* @author Florent Benoit*/ @Entity @Table(name = "EMPLOYEES") public class Employee implements java.io.Serializable { /*** Id for serializable class.*/ private static final long serialVersionUID = -236627462547454L; /*** Id of this employee. */ private int id; /*** Name of the employee.*/ private String
RE: [flexcoders] logout remote object in flex
What was the exception? Did you get a stack trace? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Monday, April 17, 2006 12:25 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] logout remote object in flex I tried that with the following code, but any call to the gateway raises an exception. We are using flex 1.5 and tomcat 5.5 w/jboss. Is there an incompatability issue here? System.out.println("before invalidate session"); flashgateway.Gateway.getHttpRequest().getSession().invalidate(); System.out.println("after invalidate session");Matt Chotin [EMAIL PROTECTED] wrote: I think for 1.5 you need to write your own RemoteObject that will getthe HTTPSession from the Gateway and invalidate it. Then on the clientyou can clearUsernamePassword as well.Matt-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of jfournetSent: Saturday, April 15, 2006 4:23 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] logout remote object in flexI need to logout a remoteobject in flex to destroy the users security creditials. I don't see anyway to do this in flex 1.5. Any help would be appreciated.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Do RemoteObject results still not operate in parallel?
It isn't up to the Flex RemoteObject feature... it's how the flash player NetConnection works with AMF requests (and continues to work in FP 8.5). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Monday, April 17, 2006 3:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Do RemoteObject results still not operate in parallel? Does anyone know if this is a still an outstanding design of RemoteObjects and AMF? Much thanks, Sof --- In flexcoders@yahoogroups.com, sof4real03 [EMAIL PROTECTED] wrote: I've come across an article by Peter Ent regarding how AMF results using RemoteObjects do not return in parallel, but wait until all requests are completed. He also posted a workaround. I was just wondering if this is still a valid workaround or has the design been revamped with the Data Services? Thanks, Sof -- 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/
RE: [flexcoders] Can't user RemoteObject on HTTPS ONLY Server?
How are you loading your SWF? Are you loading it over HTTPS too? Is it on the same domain as the secure AMF endpoint? Did you recompile your SWF with the updated configuration? Did you restart the server with the updated configuration? How many channels are referenced under your RemotingService destination (i.e. the one in flex-remoting-service.xml)? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Monday, April 17, 2006 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can't user RemoteObject on HTTPS ONLY Server? I'm trying to get a Remote Object to work on an HTTPs only server (one that does not accept HTTP connections). I have it working fine over a regular HTTP connection. I then remove the AMF channel definition in the flex-enterprise-services.xml and replace it with a SecureAMF channel definition and update the destinations in the flex-remoting-service.xml to use the SecureAMF channel. However, when I execute the SWF I see in the web server logs that it is POSTing to messagebroker/amf not messagebroker/amfsecure. Also, if I open up the server to allow HTTP connections, but only configure SecureAMF channels I get the following error: No configured channel has an endpoint path '/messagebroker/amf The stacktrace indicates it's coming from the flex.messaging.MessageBroker.getEndPoint(MessageBroker.java:297). This seems to indicate that the Flex Data Services cannot run on an HTTPS only server. -- 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/
RE: [flexcoders] logout remote object in flex
INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)13:23:10,080 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)13:23:10,080 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)13:23:10,080 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)13:23:10,080 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)13:23:10,090 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)13:23:10,090 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)13:23:10,090 INFO [STDOUT] Info: Serializing response (Message #0 targetURI=/2/onStatus, responseURI=null) (Object #0) level = "error" code = "Server.Processing" type = "" rootcause = (Object #1) level = "error" code = null type = "" details = "" description = "flashgateway/Gateway" details = "" description = "flashgateway/Gateway"Peter Farland [EMAIL PROTECTED] wrote: What was the exception? Did you get a stack trace? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Monday, April 17, 2006 12:25 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] logout remote object in flex I tried that with the following code, but any call to the gateway raises an exception. We are using flex 1.5 and tomcat 5.5 w/jboss. Is there an incompatability issue here? System.out.println("before invalidate session"); flashgateway.Gateway.getHttpRequest().getSession().invalidate(); System.out.println("after invalidate session");Matt Chotin [EMAIL PROTECTED] wrote: I think for 1.5 you need to write your own RemoteObject that will getthe HTTPSession from the Gateway and invalidate it. Then on the clientyou can clearUsernamePassword as well.Matt-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of jfournetSent: Saturday, April 15, 2006 4:23 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] logout remote object in flexI need to logout a remoteobject in flex to destroy the users security creditials. I don't see anyway to do this in flex 1.5. Any help would be appreciated.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Do RemoteObject results still not operate in parallel?
The player team wouldn't change this before Flex is released. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Monday, April 17, 2006 6:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Do RemoteObject results still not operate in parallel? Yes, that was the workaround. Is there look into changing the behavior of NetConnection in the player before Flex is released for production? By the way, thanks for the code tip. - Sof --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Was that the workaround that involved using a unique endpoint URL to avoid connection sharing? If so, in FDS 2 you could create a new AMFChannel and assign it as part of a service's channelSet:ChannelSet property. import mx.messaging.ChannelSet; import mx.messaging.Channel; import mx.messaging.channels.AMFChannel; ... var channelSet:ChannelSet = new ChannelSet(); var channel:Channel = new AMFChannel(my-amf, http://localhost:8700/cfusion/messagebroker/amf;); channelSet.addChannel(channel); remoteObject.channelSet = channelSet; ... -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Monday, April 17, 2006 4:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Do RemoteObject results still not operate in parallel? If RemoteObjects results do not come back in parallel then how would one implement the workaround Peter Ent posted since the endpoint attribute is no longer supported in Flex 2. Thanks, Sof --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: It isn't up to the Flex RemoteObject feature... it's how the flash player NetConnection works with AMF requests (and continues to work in FP 8.5). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Monday, April 17, 2006 3:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Do RemoteObject results still not operate in parallel? Does anyone know if this is a still an outstanding design of RemoteObjects and AMF? Much thanks, Sof --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote: I've come across an article by Peter Ent regarding how AMF results using RemoteObjects do not return in parallel, but wait until all requests are completed. He also posted a workaround. I was just wondering if this is still a valid workaround or has the design been revamped with the Data Services? Thanks, Sof -- 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 -- 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/
RE: [flexcoders] Re: Do RemoteObject results still not operate in parallel?
You can't open many HTTP based connections from any client. Off the top of my head I think HTTP 1.1 suggests 2 connections and HTTP 1.0 suggested 4 connections. The flash player can't change this - it's up to what is configured on each OS. I see the batching as desired behavior because over a real connection the network time is non-trivial and a batch makes that much more manageable for lots of quickly made requests. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Monday, April 17, 2006 9:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Do RemoteObject results still not operate in parallel? Thanks Matt, this may be an ignorant question, but why would be a desired behavior? It seems like a more desired behavior would be how HTTPService or WebService responds is more desired... Thanks, Sof --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I'm pretty sure we consider this desired behavior. I will file an enhancement to turn off the batching but I doubt it will make it into Flex 2. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Monday, April 17, 2006 3:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Do RemoteObject results still not operate in parallel? Yes, that was the workaround. Is there look into changing the behavior of NetConnection in the player before Flex is released for production? By the way, thanks for the code tip. - Sof --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Was that the workaround that involved using a unique endpoint URL to avoid connection sharing? If so, in FDS 2 you could create a new AMFChannel and assign it as part of a service's channelSet:ChannelSet property. import mx.messaging.ChannelSet; import mx.messaging.Channel; import mx.messaging.channels.AMFChannel; ... var channelSet:ChannelSet = new ChannelSet(); var channel:Channel = new AMFChannel(my-amf, http://localhost:8700/cfusion/messagebroker/amf;); channelSet.addChannel(channel); remoteObject.channelSet = channelSet; ... -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Monday, April 17, 2006 4:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Do RemoteObject results still not operate in parallel? If RemoteObjects results do not come back in parallel then how would one implement the workaround Peter Ent posted since the endpoint attribute is no longer supported in Flex 2. Thanks, Sof --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: It isn't up to the Flex RemoteObject feature... it's how the flash player NetConnection works with AMF requests (and continues to work in FP 8.5). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Monday, April 17, 2006 3:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Do RemoteObject results still not operate in parallel? Does anyone know if this is a still an outstanding design of RemoteObjects and AMF? Much thanks, Sof --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote: I've come across an article by Peter Ent regarding how AMF results using RemoteObjects do not return in parallel, but wait until all requests are completed. He also posted a workaround. I was just wondering if this is still a valid workaround or has the design been revamped with the Data Services? Thanks, Sof -- 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 -- 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 -- 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
RE: [flexcoders] RemoteObject Issue
Perhaps your SiteKeywordVO is never linked into the SWF because you never create a dependency on the class name (as mxmlc will optimize and remove unreferenced class definitions). An import statement is not enough to create a dependency. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Tuesday, April 18, 2006 3:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RemoteObject Issue I've been trying for the last few days to get RemoteObject to work, but with little luck. I've searched this site, and have tried to implement the examples found in developing rich clients with macromedia FLEX. To make matters more confusing, I've also tried to implement the command/control/delegate patterns that the above book advocates. Basically, I think the problem is that I'm not seeing the Java classes I've created. Below are code snippets of (what I think) are the relevant files. ### My Java classes ### {TOMCAT-HOME}\webapps\flex\WEB- INF\classes\com\foo\test\business\SiteMaintenanceDelegate.class package com.foo.test.business; import com.foo.test.vo.SiteKeywordVO; public class SiteMaintenanceDelegate { public SiteMaintenanceDelegate() { } public SiteKeywordVO reviewKeywords() { SiteKeywordVO keywords = new SiteKeywordVO(); return keywords; } } {TOMCAT-HOME}\webapps\flex\WEB- INF\classes\com\foo\test\vo\SiteKeywordVO.class package com.foo.test.vo; import java.io.Serializable; public class SiteKeywordVO implements Serializable { public String[] keywords; public void SiteKeywordVO() { String[] keywords = {first agr, second agr, third agr}; } } ### My RO definition ### {TOMCAT-HOME}\webapps\flex\services\Services.mxml mx:RemoteObject id=siteDataServices source=com.foo.test.business.SiteMaintenanceDelegate result=event.call.resultHandler(event) fault=event.call.faultHandler(event) showBusyCursor=true mx:method name=reviewKeywords/ /mx:RemoteObject ### My ActionScript VO ### {TOMCAT-HOME}\webapps\flex\sdm\com\foo\test\vo\SiteKeywordVO.as class com.foo.test.vo.SiteKeywordVO { public var keywords:Array; public var _remoteClass; public function SiteKeywordVO() { _remoteClass=com.foo.test.vo.SiteKeywordVO; } } ### My testing mxml file ### {TOMCAT-HOME}\webapps\flex\sdm\sdmUnitTest.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:sdm=sdm.* xmlns:services=services.* sdm:SiteDataMaint/ services:Services id=myServices/ /mx:Application ### My SiteDataMaint component ### {TOMCAT-HOME}\webapps\flex\sdm\SiteDataMaint.mxml ... //just the script part mx:Script ![CDATA[ import sdm.business.*; import sdm.commands.*; import sdm.control.*; import com.foo.test.vo.*; import mx.controls.Alert; public function initApp() { var controller = new SDMController; } ]] /mx:Script ... The SDMController class seems to be working correctly. ### My Delegate class ### {TOMCAT-HOME}\webapps\flex\sdm\business\SDMDelegate.as ... //just the constructor public function SDMDelegate(responder:Responder) { this.service = mx.core.Application.application.myServices.siteDataServices; Dumper.dump(service); this.responder = responder; } I think this is where the problem is. When I dump 'service' (via Flex Trace Panel), I get 'undefined'. I really have no idea where to go from here. I've tried turning on all debug stuff, used NetConnectionDebugger, use Flex Trace Panel... nothing on all accounts. Thanks for any suggestions you may have! Geoff -- 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/
RE: [flexcoders] mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService
(Note that this is Flex 2 Beta) We didn't want the parent mx.rpc.soap.WebService to introduce extraneous dependencies on other parts of the Application framework. So any functionality that does introduce such a dependency (such as busy cursors or bubbling of events to top level application handlers) must go in this subclass. You can use the mx.rpc.soap.mxml.WebService API in ActionScript too, you just have to call public function initialized(document : Object, id : String) :void (see the ASDoc for this class for more detail). Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Tuesday, April 18, 2006 4:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService Why are these separate classes? More importantly, why does the mxml version have capabilities that its super class does not? I like the showBusyCursor functionality, but prefer to code in AS when possible. Am I correct in assuming that these two things are mutually exclusive? Thanks, Ben -- 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/
RE: [flexcoders] Re: mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService
Operation.send(args) has the method signature: override public function send(... args : Array) : AsyncToken So the ... args:Array param will be an Array of length 1 with an Object as _your_ args var. This means you can only send ordered arguments via send(). For named arguments, you use the special arguments property. The only special case to this is if _your_ args was an XMLNode for literal request envelope body content and it was the only thing passed to Operation.send() then it would be unwrapped out of the args Array. Also note there are known issues with passing ordered arguments (i.e. an Array) to document literal styled web services in beta 2 which should be fixed in beta 3. If you have a .wsdl file and a sample .mxml file you can send them to me directly offlist so that I can check they'll work in beta 3. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Tuesday, April 18, 2006 4:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService Very cool. Thanks to both and Tim and Peter for your help. Not sure if I should start a new thread for this (if i should just let me know), but I am noticing some odd behavior when using mx.rpc.soap.WebService. When I try passing an arguments object in the send() method I am getting a fault with the following message: Array of input arguments did not contain a required parameter at position 1. When I assign the same object to the arguments property of my AbstractOperation, everything works fine. Here is my code: dmws = new WebService(); dmws.loadWSDL(Application.application.xml_config.document_metadata_url.@ value + ?WSDL); dmws.useProxy = false; dmws.addEventListener(result, onDmwsResult); dmws.addEventListener(fault, doFault); var op:AbstractOperation; op = dmws['GetDocument']; var args:Object = new Object(); args.EnterpriseId = event.target.selectedItem.EnterpriseId; args.DocumentType = EBD; args.ContainersToRetrieve = new Array(); args.ContainersToRetrieve.push(Client); args.ContainersToRetrieve.push(IndustryTrends); args.ContainersToRetrieve.push(Fiduciary); args.MetadataToRetrieve = new Array(DocumentHistory); // this works op.arguments = args; op.send(); // this does not work op.send(args); Thanks, Ben --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Why are these separate classes? More importantly, why does the mxml version have capabilities that its super class does not? I like the showBusyCursor functionality, but prefer to code in AS when possible. Am I correct in assuming that these two things are mutually exclusive? Thanks, Ben -- 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/
RE: [flexcoders] Re: mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService
op.send([args]) turns into an Array holding an Array holding args because the ... syntax in AS method signatures mean a variable number of arguments passed to the method stored as an array. So, the functional equivalent might be something like this: op.send(EnterpriseId, DocumentType, ContainersToRetrieve, MetadataToRetrieve); Because you're no longer relying on the name of the args but rather the order they're declared... though note this approach won't work until Beta 3 for some styles of WSDL such as document literal. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Tuesday, April 18, 2006 9:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService Hi Peter, thanks again for the response. I apologize, but I am still a bit confused. Are you saying that op.send([args]) would not work either, and/or that it must be an array of primitives like strings and numbers? I am alright with using the arguments property so I won't bother sending you files but I certainly appreciate the offer. I think perhaps these issues could use some clarification in the documentation (I realize that is probably low priority at this point), because when I read it (a few times) I got the impression that the two ways of sending arguments were functionally equivalent. Thanks again, Ben --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Operation.send(args) has the method signature: override public function send(... args : Array) : AsyncToken So the ... args:Array param will be an Array of length 1 with an Object as _your_ args var. This means you can only send ordered arguments via send(). For named arguments, you use the special arguments property. The only special case to this is if _your_ args was an XMLNode for literal request envelope body content and it was the only thing passed to Operation.send() then it would be unwrapped out of the args Array. Also note there are known issues with passing ordered arguments (i.e. an Array) to document literal styled web services in beta 2 which should be fixed in beta 3. If you have a .wsdl file and a sample .mxml file you can send them to me directly offlist so that I can check they'll work in beta 3. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Tuesday, April 18, 2006 4:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService Very cool. Thanks to both and Tim and Peter for your help. Not sure if I should start a new thread for this (if i should just let me know), but I am noticing some odd behavior when using mx.rpc.soap.WebService. When I try passing an arguments object in the send() method I am getting a fault with the following message: Array of input arguments did not contain a required parameter at position 1. When I assign the same object to the arguments property of my AbstractOperation, everything works fine. Here is my code: dmws = new WebService(); dmws.loadWSDL(Application.application.xml_config.document_metadata_url .@ value + ?WSDL); dmws.useProxy = false; dmws.addEventListener(result, onDmwsResult); dmws.addEventListener(fault, doFault); var op:AbstractOperation; op = dmws['GetDocument']; var args:Object = new Object(); args.EnterpriseId = event.target.selectedItem.EnterpriseId; args.DocumentType = EBD; args.ContainersToRetrieve = new Array(); args.ContainersToRetrieve.push(Client); args.ContainersToRetrieve.push(IndustryTrends); args.ContainersToRetrieve.push(Fiduciary); args.MetadataToRetrieve = new Array(DocumentHistory); // this works op.arguments = args; op.send(); // this does not work op.send(args); Thanks, Ben --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: Why are these separate classes? More importantly, why does the mxml version have capabilities that its super class does not? I like the showBusyCursor functionality, but prefer to code in AS when possible. Am I correct in assuming that these two things are mutually exclusive? Thanks, Ben -- 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
RE: [flexcoders] How to override type cast operator @ runtime?
ObjectProxy is a Flex specific subclass of Proxy for wrapping anonymous Objects that are dynamic and can't be predictably made bindable to report property change events. It shouldn't be used to wrap typed objects like instances of B (see later). You can never cast ObjectProxy to B... the as operator never throws class cast exceptions, it just returns null if the type isn't correct. If you _did_ happen to end up in the situation that B was wrapped in an ObjectProxy then you'd have to unwrap the instance: var b:B = B(ObjectProxy(o).object_proxy::object); ...but this would be unusual since for serialization purposes in FDS we do not support typed objects being wrapped in ObjectProxy instances and sent to the server. Instead you should add [Bindable] metadta to public class B definition. If you somehow ended up with an ObjectProxy in the result from an FDS RPC service (like RemoteObject), then it's likely that the makeObjectsBindable attribute was true on your service but the type wasn't registered correctly with a remote class alias. In this case you'd add [RemoteClass(alias=com.mycompany.B)] to your public class B definition. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vadim Melnik Sent: Wednesday, April 19, 2006 6:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to override type cast operator @ runtime? Hi All, flash.util.Proxy/mx.utils.ObjectProxy classes allow us to override properties access, methods call etc. Is it possible to override type cast operations at runtime, like IUnknown:QueryInterface in COM? For example: public class B {} ... var o:* = new ObjectProxy(new B()); var b:B = o as B; trace(b); // - writes null // but I am looking for solution to // hook type cast operation as well // in other words need in ActionScript 3 // universal delegate -- Thanks, Vadim Melnik. -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: How to override type cast operator @ runtime?
Well, you can't have ObjectTracer cast to A or B so it's not going to be exactly what you want. But if the API were made to accept Object in the relevant places, then you could do something like this: package com.mycompany { import flash.util.Proxy; import flash.util.flash_proxy; use namespace flash_proxy; public dynamic class ObjectTracer extends Proxy { private var _instance:Object; public function ObjectTracer(o:Object) { super(); _instance = o; } override flash_proxy function getProperty(name:*):* { trace(getProperty: + name); return _instance[name]; } override flash_proxy function setProperty(name:*, value:*):void { trace(setProperty: + name + , value= + value); _instance[name] = value; } override flash_proxy function callProperty(name:*, ...rest:Array):* { trace(callProperty: + name); return _instance[name].apply(_item, rest); } // etc... See ASDoc for rest of methods from Proxy that can be overridden... } } -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vadim Melnik Sent: Thursday, April 20, 2006 4:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to override type cast operator @ runtime? Thanks for information, sorry it was incorrect question, it was not related to ObjectProxy. I wanted to create special object wrapper, overriding flash.util.Proxy methods and forwarding all calls to inner object, something like ObjectProxy does. But instead ObjectProxy it will only trace methods/properties/fields calls. It would be useful for object tracing at runtime and for object profiling - without modifing object code, just replace original object with object instance wrapped with ObjectTracer, e.g.: var a:A = A(new ObjectTracer(new A())); var b:B = B(new ObjectTracer(new B())); a.doSomething(); // ObjectTracer catch callProperty and trace it b.prop1 = 123; // ObjectTracer traces b property set to 123, etc Imagine some runtime or framework class you want to investigate or profile, but there is no source code for this class. By replacing original instance with proxied one it would be possible to see all method calls and property accesses at runtime with a little efforts. It's going to provide the same functionality as COM's TraceHook (http://www.sellsbrothers.com/tools/#tracehook). But sounds like it's impossible with AS3. -- Thanks, Vadim Melnik. --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: ObjectProxy is a Flex specific subclass of Proxy for wrapping anonymous Objects that are dynamic and can't be predictably made bindable to report property change events. It shouldn't be used to wrap typed objects like instances of B (see later). You can never cast ObjectProxy to B... the as operator never throws class cast exceptions, it just returns null if the type isn't correct. If you _did_ happen to end up in the situation that B was wrapped in an ObjectProxy then you'd have to unwrap the instance: var b:B = B(ObjectProxy(o).object_proxy::object); ...but this would be unusual since for serialization purposes in FDS we do not support typed objects being wrapped in ObjectProxy instances and sent to the server. Instead you should add [Bindable] metadta to public class B definition. If you somehow ended up with an ObjectProxy in the result from an FDS RPC service (like RemoteObject), then it's likely that the makeObjectsBindable attribute was true on your service but the type wasn't registered correctly with a remote class alias. In this case you'd add [RemoteClass(alias=com.mycompany.B)] to your public class B definition. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vadim Melnik Sent: Wednesday, April 19, 2006 6:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to override type cast operator @ runtime? Hi All, flash.util.Proxy/mx.utils.ObjectProxy classes allow us to override properties access, methods call etc. Is it possible to override type cast operations at runtime, like IUnknown:QueryInterface in COM? For example: public class B {} ... var o:* = new ObjectProxy(new B()); var b:B = o as B; trace(b); // - writes null // but I am looking for solution to // hook type cast operation as well // in other words need in ActionScript 3 // universal delegate -- Thanks, Vadim Melnik. -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail
RE: [flexcoders] Flex Remoting
It depends on what the method signature for SampleDAO.getPersons looks like. Where did you find this sample? Note that the AS signature for NetConnection.call() is: public function call(command:String, responder:Responder, ... arguments):void So the ... syntax in AS means the rest of the arguments which is an Array. So, if the getPersons signature was something like this: public Person[] getPersons(List ids); then the call would look like this: gateway_conn.call(com.tis.dao.SampleDAO.getPersons, responder, userList); Or, if the getPersons signature was like this: public Person[] getPersons(id1, id2, id3); then the call would look like this: gateway_conn.call(com.tis.dao.SampleDAO.getPersons, responder, 12, 13, 15); -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of murtuza_ab Sent: Thursday, April 20, 2006 10:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Remoting Hi, Need help in the Remoting Implementation I have tried example of below, with the method which does not take any param it works but what is the syntax for passing the argument to the remote method. We are using this example as we are not using flex data service server side component. if any has related example with different way to achieve also help var gatewayUrl : String = http://localhost:8080/demoApp/gateway; gateway_conn = new NetConnection(); gateway_conn.objectEncoding = flash.net.ObjectEncoding.AMF0; gateway_conn.connect( gatewayUrl ); var userList:Array = new Array(12,13,15); /* what is the syntax for passing the userList Array to the remote method com.tis.dao.SampleDAO.getPersons */ gateway_conn.call (com.tis.dao.SampleDAO.getPersons, new flash.net.Responder( onQueryResult, onQueryStatus ) ); -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Problem with AMFGateway and Sessions - please help
Did the request come through the gateway servlet? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry Miller Sent: Wednesday, April 19, 2006 8:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with AMFGateway and Sessions - please help trying to retrieve session in my request handler class via flashgateway.Gateway.getHttpRequest().getSession(true); The problem is that flashgateway.Gateway.getHttpRequest() returns null I am using Flex 1.5 Any suggestions? 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Problem with AMFGateway and Sessions - please help
Is this a simple Java POJO based unnamed service for remote-object? I'm not sure what you mean by the event handler class's methods... do you mean the POJO that functions as your remote object service has static methods? If so, then are you trying to do something in a static context like initialize the class before it is invoked? Is anything else possibly initializing that class besides RemoteObject? Note that while the getHttpRequest() method is accessed as a static method on flashgateway.Gateway, it is backed by a thread-local variable that is only populated when the request comes through the servlet at invocation time and is destroyed after the servlet sends the response. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry Miller Sent: Thursday, April 20, 2006 8:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problem with AMFGateway and Sessions - please help I assume so. The event handler class's methods are all static. This is also unnamed service. Thanks, --- Dmitry --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Did the request come through the gateway servlet? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry Miller Sent: Wednesday, April 19, 2006 8:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with AMFGateway and Sessions - please help trying to retrieve session in my request handler class via flashgateway.Gateway.getHttpRequest().getSession(true); The problem is that flashgateway.Gateway.getHttpRequest() returns null I am using Flex 1.5 Any suggestions? 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 -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Viewing a base64Binary image in flex1.5
Don't know of a way to do that in Flex 1.5... I don't think base64Binary was supported in WS in that release... But, fwiw, when Flex 2 Beta 3 comes out I could see it being done. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Friday, April 21, 2006 11:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Viewing a base64Binary image in flex1.5 Hi, I am accessing a web service which returns a base64Binary image. Can I convert this to a PNG or GIF in flex? This is the part of the return which includes the image: Map bitsbase64Binary/bits typestring/type /Map Cheers, Iain -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: AMFPHP v.s. HTTPService PHP ??
In AS3 you can set AMF0 to be used globally for any NetConnection: import flash.net.*; ... NetConnection.defaultObjectEncoding = ObjectEncoding.AMF0; though you'd have to unwrap the messages from the request on the OpenAMF side of things since Flex 2 RemoteObject uses a messaging framework to determine connectivity, channel failover, custom authentication, and a better quality of service. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Renaun Erickson Sent: Saturday, April 22, 2006 12:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AMFPHP v.s. HTTPService PHP ?? I agree with Jesse on the points between the Binary and XML formats. One of the other down falls of AMFPHP and AS3 right now is that you have to us NetConnection and not a nice RemoteObject component. Thats not to say the NetConnection wont work in the future, it probably will continue to, but it would be nice to have RemoteObject component in the framework that worked with AMF0 formats. The flip side is to what for AMFPHP to support the newer AMF3 format and destinations/channels and the RemoteObject component should work as is. This will come as time goes by so this issue might be mitigated later. Renaun --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Out of curiosity, how are you getting records back from an HTTPService call? Using RemoteObject with AMFPHP, you get back a native Array (or Boolean, or String, etc.) where-as everyting with HTTPService is a string? Secondly, there was a thread either on the AMFPHP list, or at Patrick's blog that discussed the speed issue. Anyway, here's a link to handle caching which should speed up subsequent requests: http://www.5etdemi.com/blog/archives/2005/09/hacking-amfphp-into-submission-caching/ Third, you also need to ensure compression is actually on in your webserver, or a lot of AMFPHP's speed is toast: http://www.rocketboots.com/blog/index.cfm?mode=entryentry=D9616C10-E081-51EF-A7A763F48A69FA7B Fourth, XML is a bunch of strings; so while it'd be nice to have this compressed coming down the wire, your still going to have to parse it on the client, thus defeating the purpose of using AMFPHP to give you a native record set. In that case, I'd stick to HTTPService. - Original Message - From: wesubotnix [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 22, 2006 3:06 AM Subject: [flexcoders] AMFPHP v.s. HTTPService PHP ?? Hi, Maybe someone here is able to explain the advantages about using AMFPHP AS 3.0 NetConnection compared to calling an URL through HTTPService, when loading (and manipulating) data from a mysql database? When setting up some tests and loading huge amounts of data I can´t see any big performance differences between the two methods (HTTPService was slightly faster), even though the former should transfer the data in a lightweight binary format, and the latter method (PHP-file) loads everything into an XML-format. AMFPHP also seems to have problems when sending to huge arrays...(recordsets containing 5000 records or more). I want to use XML and the XMLListCollection class when dealing with the data inside my Flex application. Could anyone convince me to use AMFPHP? Thanks, Fredrik -- 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 -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex2B2: JAVA to AS object serialization issue
Title: RE: [flexcoders] Flex2B2: JAVA to AS object serialization issue Valy, the only bug I know of in this area for Beta 2 has to do with AMF 0. If you're not changing the objectEncoding of the underlying NetConnection to ObjectEncoding.AMF0 then it's likely that you either have registered the wrong alias for the type or you simply don't have the class linked in to the SWF, as Matt suggested. The debug trace output of your AMF response has the typed Object name as org.ifm.model.TlcPhoneNumber but this is not what you've registered as the class alias in the [RemoteClass] metadata [RemoteClass(alias=org.ifm.model.PhoneNumber)] even though the Java code you pasted below has this as its classname. Are you returning the wrong type from your Java service at runtime? Note that it can not be an implementation of an interface in order for a server type to be matched to a client type the client type alias must match the concrete implementation's class name. Also, rather than relying on rumor of fixes for beta 3, can you please try to add the following in one of your MXML script blocks to see if it fixes the issue Matt describes? import org.ifm.model.PhoneNumber; private var dep:PhoneNumber; -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Uncaught exceptions in Flex 1.5
Mykola, I'm slightly confused by your post in contrast to what Sergey and Stanislav originally said. I read Sergey's post as that he was having trouble with uncaught exceptions and had to add a lot of code to catch and possibly ignore such errors. I read your post to mean the opposite of this in that the uncaught exceptions were important at development time because if they were silently caught and ignored it would be hard to diagnose what the problem was. As Matt said, in general for our data services framework code we tend to not throw exceptions but instead funnel everything through a fault event mechanism. If you run into exceptions in our Flex framework code then it may be a bug and should be reported with a reproducible case or at the very least a stacktrace. If these exceptions are due to non-Flex framework code then either its a bug in that 3rd partycode or, as Matt suggested, the number of entry points that need to be checked can be reduced by centralizingthe calling code. Finally, the behavior of uncaught exceptions isn't determined by Flex - it's a feature of the Flash Player virtual machine and how ithandles ActionScript. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mykola PaliyenkoSent: Monday, April 24, 2006 3:34 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Uncaught exceptions in Flex 1.5 Hm... Matt, I thought the problem will be fixed in 2.0, because developing in the runtime that silently ignors the exceptions is absolutely unaceptable for a lot of developers. It is extremely hard to locate problems in this case. I can understand why it is not implemented in Flex 1.5 since the flash player did not changed, but I see no reasons why whould not introduce this with a new version of player or at least allow player to run in a debug mode where such stuff will be handled.Mykola On 4/23/06, Matt Chotin [EMAIL PROTECTED] wrote: I see, the same problem exists in 2.0 I guess too (though I've askedinternally about it to make sure). Only thing I can recommend is youtry to centralize your entry points. If you use a framework likeCairngorm you can do that in the framework by catching errors in thebroadcaster or some main method that triggers your service handlers. Matt -Original Message-From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] OnBehalf Of Stanislav Zayarsky Sent: Sunday, April 23, 2006 3:45 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Uncaught exceptions in Flex 1.5Matt, we are using 3rd party libraries like AS2lib, and it throwsexceptions.And also we starting to throw exceptions from our custom classes too.Best regardsStanislavOn 4/23/06, Matt Chotin [EMAIL PROTECTED] wrote: In 1.5 we don't throw exceptions as a practice, I'm not sure whatyou're actually running into here? -Original Message- From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com]On Behalf Of Stanislav Zayarsky Sent: Saturday, April 22, 2006 7:52 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Uncaught exceptions in Flex 1.5 Hello FlexCoders, I have the same problem! Adobe guys, can you help us? Best regards Stanislav On 4/21/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! How to deal with uncaught exceptions in Flex 1.5? Actually they kill application running via terminating the current script. Due to the fact Flex application has a lot of "entry points" (eachand every event handling delegate), I need either put try..catch..finally statements in each and every function assigned as an event handler that iswrong copy and paste method or create own Delegate class that is much morebetter by design. But on the other hand using the second approach force me not toassign event handlers in MXML (like mx:Button click="onClick()"). Instead weneed to assign those handlers in linked ActionScript class. It's very difficult when you deal with complex nested structures, repeaters, ViewStack, Accordion and their successors. Any suggestions? Thank you in advance. Regards, Sergey. -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] (Flex20 Beta2): RemoteObject Destination configuration problem
Are you precompiling the SWFs? If so, are you specifying --services and pointing to the configuration file at compile time with either Flex Buildercompilercommand line arguments or mxmlc command line arguments? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98Sent: Monday, April 24, 2006 10:15 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] (Flex20 Beta2): RemoteObject Destination configuration problem Hi,I have created a very simple 2 state mxml file(attached below) where you submit a name which is passed to a RemoteObject which appends "Welcome "to the input string returns the whole string back.The java class which does this is,package samples.SimpleRemoteObject;public class Echo { public Echo(){ } public String getString(String str){ return "Welcome " + str ; }}I have added the following to flex-remoting-service.xml underc:\tomcat\webapps\flex\WEB-INF\flex, destination id="EchoString" properties sourcesamples.SimpleRemoteObject.Echo/source /properties
/destinationThe default-channels adapters definition was already there.I also put Echo.class under C:\tomcat\webapps\flex\WEB-INF\classes\samples\SimpleRemoteObject.After Tomcat(v5.5.9) is started, it correctly loads the initial pageat http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.htmlbut after I click on submit, I always get "Error: Unknown destination 'EchoString'". I have tried renaming the destination names but there is no change in behavior.Please let me know what am I doing wrong. All the samples are running finethough. This is my first attempt on doing something with Flex.Thanks,Aejaz?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute"mx:Script ![CDATA[ ! nbsp; import mx.rpc.events.*; nbs! p; import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text = event.result.toString(); currentState='TargetState'; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultstring, "Error"); } ]]/mx:Script mx:states n! bsp; mx:State name="TargetState" mx:RemoveChild child="{button1}"/ mx:RemoveChild child="{formInput}"/ mx:RemoveChild child="{label1}"/ mx:AddChild position="lastChild" mx:Label x="99" y="130" width="265" height="28" id="Result"/ /mx:AddChild /mx:State /mx:states mx:RemoteObject id="SendStringBack" destination="EchoString" showBusyCursor="true" fault="faultHandler(event)" mx:metho! d name="getString" result="getNameHandler(event)"! ; mx:arguments str {formInput.text} /str /mx:arguments /mx:method /mx:RemoteObject mx:TextInput x="119" y="129" id="formInput"/ mx:Button x="119" y="170" label="Submit" fontSize="13" id="button1" click="SendStringBack.getString.send()"/ mx:Label x="119" y="86" text="What is your name ?" width="160" fontSize="15" id="label1"/ /mx:Application -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: 回复: RE: [flexcoders] Flex 2 probl em about remoteobject in tomcat
You shouldn't have both "localhost" and "{server.name}" in your channel-definitionendpoint uri="..." From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sank xuanSent: Tuesday, April 25, 2006 12:45 AMTo: flexcoders@yahoogroups.comSubject: 回复: RE: [flexcoders] Flex 2 problem about remoteobject in tomcat Hi Matt, thanks your quickly reply. below is my config list: and when i call meetingService.login(), got the error that I refered. in mxml: private function faultHandler(event:FaultEvent):void {Alert.show(event.fault.faultDetail, "Error");} . mx:RemoteObject id="meetingService" destination="meetingService" showBusyCursor="true" fault="faultHandler(event)"mx:method name="login" result="loginResult(event)"//mx:RemoteObject in flex-remoting-service: adapters adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/ /adapters default-channels channel ref="my-amf"/ /default-channels destination id="database" properties sourcesamples.sqladmin.DatabaseService/source /properties /destinationdestination id="meetingService" properties sourcecom.poppybar.meeting.MeetingService/source /properties /destination in flex-enterprise-service: channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel" endpoint uri="http://localhost:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/ properties polling-enabledfalse/polling-enabled /properties /channel-definition and I can't get the stack trace error log from console of tomcat, and if we need set something to get it ? thanks - sank Matt Chotin [EMAIL PROTECTED] 写道: There must be a configuration setting that’s wrong. I’d check your logfiles and see if there are any errors as it starts up. If you don’t see anything change the log settings to debug and see what else spits out, you should at least see a stack trace when the flex app tries to connect. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sank xuanSent: Monday, April 24, 2006 8:46 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2 problem about remoteobject in tomcat I meet a issue of remoteObject in flex2, when config a remote object , and call its method, and return detail resultofthis error message "Channel.connect.failed error netconnection.call.failed:http status 500" and even I put the samples in flex2packageto webapp dir of tomcat, also appear this error."send failed". who can help me? thanks and I have finish a blog site with flex1.5 ,you can visit it if you are intersting with it. http://sankeye.go.3322.org thanks - sank __赶快注册雅虎超大容量免费邮箱?http://cn.mail.yahoo.com __赶快注册雅虎超大容量免费邮箱?http://cn.mail.yahoo.com -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: Ri: [flexcoders] Flex 2 problem abo ut remoteobject in tomcat
Just comment out the messaging service include in your /WEB-INF/flex/flex-enterprise-services.xml file. !-- service-include file-path="flex-message-service.xml" / -- The messaging service has a JMS adapter registered which you don't need unless you're planning on using the messaging service with a Producer/Consumer to do real time messaging to a JMS destination. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sank xuanSent: Tuesday, April 25, 2006 2:41 AMTo: flexcoders@yahoogroups.comSubject: Ri: [flexcoders] Flex 2 problem about remoteobject in tomcat I got the root cause: the JSM service do not be install in tomcat, and who can offer some guide or link for installing the JMS in tomcat ,such as activeMQ ? and it muddle me that why flex 1.5 remote object do not need JMS but needbyflex 2.0 ... more complex ...more heavy... thanks - sanksank xuan [EMAIL PROTECTED] 写道: I meet a issue of remoteObject in flex2, when config a remote object , and call its method, and return detail resultofthis error message "Channel.connect.failed error netconnection.call.failed:http status 500" and even I put the samples in flex2packageto webapp dir of tomcat, also appear this error."send failed". who can help me? thanks and I have finish a blog site with flex1.5 ,you can visit it if you are intersting with it. http://sankeye.go.3322.org thanks - sank 想成为冯小刚、陈凯歌、张纪中三大导演的主角吗? 雅虎1G免费邮箱百分百防垃圾信雅虎助手-搜索、杀毒、防骚扰 -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: (Flex20 Beta2): RemoteObject Destination configuration problem
You must always point --services to the top level services file, which is flex-enterprise-services.xml. The flex-remoting-service.xml is merely an include to this top level file (see the service-include tag pointing to this and the other services in the top level flex-enterprise-services.xml file). It's ok to make changes to the flex-remoting-service.xml file as it's included each time by the top level file. That said, if you're changing destination settings in any of the configuration and are using the --services option to codegen the correct information for you at runtime then you need to recompile the SWFs everytime you make a change. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 10:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): RemoteObject Destination configuration problem Thanks for your reply. I am precompiling the SWFs using flex builder. The value present in the Additional compiler arguments field is, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml when I change it to, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml I start getting, exception 'java.lang.RuntimeException' while setting variable 'compiler.services'. It seems that the only value allowed is C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml. I tried putting, C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tom \ cat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml it gave me Unable to open C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tomc \ at\webapps\flex\WEB-INF\flex\flex-remoting-service.xml Please let me know what does setting, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml do can't it be done manually. Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Are you precompiling the SWFs? If so, are you specifying --services and pointing to the configuration file at compile time with either Flex Builder compiler command line arguments or mxmlc command line arguments? -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 2 not maintaining order of web service parameters.
This is a known issue in Beta 2, should be addressed in Beta 3. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ilia_papas Sent: Tuesday, April 25, 2006 11:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2 not maintaining order of web service parameters. Hello, I've been unable to get Flex to submit parameters to a web service method in a consistent order. I'm using Flex 2 beta 2 and a web service running on JBoss 4.0.4CR2 using annotations. This problem has been described in the following locations: -Macromedia Forum: Webservice always returns a Error #2032: Stream Error (http://tinyurl.com/ebyg8) -flexcoders archive: Flex 2: WebServervice call sometimes swaps parameters (http://tinyurl.com/ghwmr) -Macromedia Forum: WebService fields out of order (http://tinyurl.com/jsdg6) The order of the parameters appears to be somewhat random, as each time you refresh the page, the order changes. Though that order will last until you refesh again. One suggestion was wrapping the parameters in a single complex object. However, the problem still persists, as order is not maintained when flex serializies the object. Another suggested setting the parameters like so: if svc is your webservice id... svc.function.arguments = {value1:val1, value2:val2, ...}; svc.function(); Unfortunately, order is still not mainatained. Has anyone found a workaround for this? Thanks, Ilia -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject
Ah, yes, you need to specify --context.root on the command line as the client can't tell what the context root is (i.e. because you can have the default context root it can't make assumptions as to whether the first level under the webroot is a subdirectory or a context root). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject The detailed error message in this case is, Channel.Connect.Failed error Netconnection.Call.Failed:HTTP:Failed My flex-remoting-service.xml looks as follows, default-channels channel ref=my-amf/ /default-channels destination id=EchoString properties sourcesamples.SimpleRemoteObject.Echo/source /properties /destination the channel my-amf is defined in flex-enterprise-services.xml as follows, channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition Thanks, Aejaz --- In flexcoders@yahoogroups.com, aejaz_98 [EMAIL PROTECTED] wrote: Hi Peter, Thanks for your reply please disregard my previous message. I recompiled the application now I am getting send failed error message. Can you please take a look at the mxml to see if anything is wrong. I am very new to mxml might have had overlooked something obvious. Thanks, Aejaz ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Script ![CDATA[ import mx.rpc.events.*; import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text = event.result.toString(); currentState='TargetState'; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultstring, Error); } ]] /mx:Script mx:states mx:State name=TargetState mx:RemoveChild child={button1}/ mx:RemoveChild child={formInput}/ mx:RemoveChild child={label1}/ mx:AddChild position=lastChild mx:Label x=99 y=130 width=265 height=28 id=Result/ /mx:AddChild /mx:State /mx:states mx:RemoteObject id=SendStringBack destination=EchoString showBusyCursor=true fault=faultHandler(event) mx:method name=getString result=getNameHandler(event) mx:arguments str {formInput.text} /str /mx:arguments /mx:method /mx:RemoteObject mx:TextInput x=119 y=129 id=formInput/ mx:Button x=119 y=170 label=Submit fontSize=13 id=button1 click=SendStringBack.getString.send()/ mx:Label x=119 y=86 text=What is your name ? width=160 fontSize=15 id=label1/ /mx:Application --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: You must always point --services to the top level services file, which is flex-enterprise-services.xml. The flex-remoting-service.xml is merely an include to this top level file (see the service-include tag pointing to this and the other services in the top level flex-enterprise-services.xml file). It's ok to make changes to the flex-remoting-service.xml file as it's included each time by the top level file. That said, if you're changing destination settings in any of the configuration and are using the --services option to codegen the correct information for you at runtime then you need to recompile the SWFs everytime you make a change. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 10:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): RemoteObject Destination configuration problem Thanks for your reply. I am precompiling the SWFs using flex builder. The value present in the Additional compiler arguments field is, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml when I change it to, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml I start getting, exception 'java.lang.RuntimeException' while setting variable 'compiler.services'. It seems that the only value allowed is C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml. I tried putting, C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tom \ cat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml it gave me Unable to open C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tomc \ at\webapps\flex\WEB-INF\flex\flex-remoting-service.xml Please let me know what does setting, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml do can't it be done manually
RE: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject
Are you loading your SWF from http://localhost:8080? Or are you using the standalone player by, say, double clicking on the SWF and opening it using SAFlashPlayer.exe? Note that if the SWF isn't loaded from the same domain then you'll need a crossdomain.xml file in the webroot of the domain that you're trying to access (i.e. localhost:8080). Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98Sent: Tuesday, April 25, 2006 4:06 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Hi Peter,Thanks for taking the time to patiently answer my questions. Unfortunately, I am still unable to proceed. I changed the following line(in flex-enterprise-services.xml under channel definition for my-amf),endpoint uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/toendpoint uri="http://{server.name}:{server.port}/flex/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/as the URL to which I go form the browser is http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html there is no change in behavior. I must have not understood you correctly. Can you please clarify if possible on how to set context root step by step.Thanks again,Aejaz--- In flexcoders@yahoogroups.com, "Peter Farland" [EMAIL PROTECTED] wrote: Sorry, the J2! EE context root as it would appear in the URL (i.e. this value will replace the token {context.root} at compile time based on the value of --context-root). e.g. --context-root=/dev Note that the other two tokens in the endpoint URL, {server.name} and {server.port} will be known at runtime if the SWF is loaded via a URL so these are replaced at runtime based on how the SWF is loaded. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 3:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Thanks Peter. Please let me know how exactly to do that. Do you mean add --context.root C:\tomcat\webapps\flex while starting tomcat i.e. catalina start --context! .root C:\tomcat\webapps\flex Is that right ? Thanks, Aejaz --- In flexcoders@yahoogroups.com, "Peter Farland" pfarland@ wrote: Ah, yes, you need to specify --context.root on the command line as the client can't tell what the context root is (i.e. because you can have the default context root "" it can't make assumptions as to whether the first level under the webroot is a subdirectory or a context root). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObjectThe detailed error message in this case is, Channel.Connect.Failed error<B! r> Netconnection.Call.Failed:HTTP:FailedMy flex-remoting-service.xml looks as follows, default-channels channel ref="my-amf"/ /default-channelsdestination id="EchoString" properties sourcesamples.SimpleRemoteObject.Echo/source /properties /destination the channel "my-amf" is defined in flex-enterprise-services.xml as follows,channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel" endpoint uri="http://{server.name}:{server.port}/{context.root}/messagebroker/a mf " class="flex.messaging.e! ndpoints.AMFEndpoint"/ proper! ties polling-enabledfalse/polling-enabled /properties /channel-definition Thanks, Aejaz--- In flexcoders@yahoogroups.com, "aejaz_98" aejaz_98@ wrote: Hi Peter, Thanks for your reply please disregard my previous message. I recompiled the application now I am getting "send failed" error message. Can you please take a look at the mxml to see if anything is wrong. I am very new to mxml might have had overlookedsomething obvious. Thanks, Aejaz ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.ado! be.com/2006/mxml" xmlns="*" layout="absolute" mx:Script ![CDATA[ import mx.rpc.events.*;import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text = event.result.toString(); currentState='TargetState'; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultstring, "Error"); } ]] /mx:Script mx:statesmx:State name="TargetState" mx:RemoveChild child="{button1}"/! ; mx:RemoveChild child="
RE: [flexcoders] Uncaught exceptions in Flex 1.5
Hi Mykola, Have you used the debug versions of the Flash Player during development? The debug version of the Flash Player reports uncaught exceptions and it also traces information to a flashlog.txt file as long as you have a mm.cfg file setup in your user directory. We include debug versions of the Flash Player (i.e. the Standalone Player, the Firefox/Netscape/Opera plugin and MSIE Active-X player) in the Flex installer. We include them for the same reasons that you state - "withouthaving proper error reporting it is impossible to build anything larget than hello-world presentations". Flex Builder has a visual debugger with breakpoints and watch statements. Also AS3 Error objects remember their stacktraces and you can print them out if you're using the debug player. We built the Flex 2 framework of over 1000 classes using the same tools as you would to build your own applications... I feel that they are adequate. Regarding the confusion, it wasn't that important - it was just that from my reading the various posts on this thread I got the impression that there were two complaints here that were at odds with each other. One complaining they couldn't manage errors coming from lots of different places and the other that they weren't getting enough errors and related information at runtime. Regards, Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mykola PaliyenkoSent: Tuesday, April 25, 2006 5:24 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Uncaught exceptions in Flex 1.5 Ok Peter,no idea why you've been confused but...ActionScript specification has a notion of throwable objects, so saying that Exception is a bug of the AS2Lib is slightly incorrect. I'm relaizing that due to the size constraints of the player it might be good idea not to include exception handling in it, but once more again you can add this in the development version of the player and this should be extremely easy to do if the overal palyer's architecture is good enough, isn't it?My opinion is that without having proper error reporting it is impossible to build anything larger than hello-world presentations with a very good quality, so I'd warn people to treat Flex/Flash as a really serious platform unless this feature will be implemented. Flex Developers in my company mostly are very unhappy with the quality of the framework and the level of the support Adobe provide for the users, I'm not saying about paid support I'm saying about community support, feature requests, bugfixes, open source frameworks around Flex etc. I see no other way for developing the really good product other than involve the community into the development. It is the way lots of really cool stuff were developed for the last year and it is mostly ignored by Adobe.You have a great idea of RIA and a great high performant player, if you make a great product it will be an "all win" situation. The only way to make a great product is to make it more open to the contributing than it is now. IMHO but it is proven many times in Java worldSo do not just throw away comment from such crazy guys like me, Maxym, Sergey and lots more, all we want is to make the platform we are using better, and do trust me without responding to the real feedback from developers any technology will shortly become outdated. On 4/24/06, Peter Farland [EMAIL PROTECTED] wrote: Mykola, I'm slightly confused by your post in contrast to what Sergey and Stanislav originally said. I read Sergey's post as that he was having trouble with uncaught exceptions and had to add a lot of code to catch and possibly ignore such errors. I read your post to mean the opposite of this in that the uncaught exceptions were important at development time because if they were silently caught and ignored it would be hard to diagnose what the problem was. As Matt said, in general for our data services framework code we tend to not throw exceptions but instead funnel everything through a fault event mechanism. If you run into exceptions in our Flex framework code then it may be a bug and should be reported with a reproducible case or at the very least a stacktrace. If these exceptions are due to non-Flex framework code then either its a bug in that 3rd partycode or, as Matt suggested, the number of entry points that need to be checked can be reduced by centralizingthe calling code. Finally, the behavior of uncaught exceptions isn't determined by Flex - it's a feature of the Flash Player virtual machine and how ithandles ActionScript. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mykola PaliyenkoSent: Monday, April 24, 2006 3:34 AM To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Uncaught exceptions in Flex 1.5 Hm... Matt, I thought the problem will be fixed in 2.0, b
RE: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject
No, you shouldn't need a crossdomain.xml file in this case. So long as you're sure that you're recompiling with the updated configuration each time that you make a change, and so long as this files contents matches what is on the server, and so long as you've tried replacing tokens with hard coded values and worked back to make sure they're not the problem, then an unrelated error must have happened during startup as the MessageBroker AMFChannel endpoint mustn't be active? To get more information on the client, you can add the following tag to your MXML: mx:TraceTarget level=0 / All of the traffic for your RPC services (like RemoteObject) will be traced out to the debug player log file, that is, the flashlog.txt file in your user directory (on Windows, C:\Documents and Settings\yourusername\flashlog.txt) so long as you have a mm.cfg file setup in this user directory with the following contents: ErrorReportingEnable=1 TraceOutputFileEnable=1 (Note the format of this C:\Documents and Settings\yourusername\mm.cfg file needs to be exact, no tabs or indents, etc). To get more information on the server, check your logs for stacktraces and other errors starting up the MessageBroker Servlet. For an example of what might go wrong, just say you have a messaging service include defined in your flex-enterprise-services.xml file and it included a JMS Adapter then Tomcat might not startup as it doesn't have the necessary support in a default installation... in which case you'd comment out the include for the message service. You can also change the logging settings in /WEB-INF/flex/flex-enterprise-services.xml to the Debug level and then look at the logs again for more clues. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 6:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Thanks Peter, I am loading the SWF from the following URL, http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html Do I still need crossdomain.xml as Tomcat is running locally. If so what will this file contain in which directory I should create it. Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Are you loading your SWF from http://localhost:8080? Or are you using the standalone player by, say, double clicking on the SWF and opening it using SAFlashPlayer.exe? Note that if the SWF isn't loaded from the same domain then you'll need a crossdomain.xml file in the webroot of the domain that you're trying to access (i.e. localhost:8080). Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 4:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Hi Peter, Thanks for taking the time to patiently answer my questions. Unfortunately, I am still unable to proceed. I changed the following line(in flex-enterprise-services.xml under channel definition for my-amf), endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/a mf class=flex.messaging.endpoints.AMFEndpoint/ to endpoint uri=http://{server.name}:{server.port}/flex/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ as the URL to which I go form the browser is http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html there is no change in behavior. I must have not understood you correctly. Can you please clarify if possible on how to set context root step by step. Thanks again, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Sorry, the J2! EE context root as it would appear in the URL (i.e. this value will replace the token {context.root} at compile time based on the value of --context-root). e.g. --context-root=/dev Note that the other two tokens in the endpoint URL, {server.name} and {server.port} will be known at runtime if the SWF is loaded via a URL so these are replaced at runtime based on how the SWF is loaded. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 3:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Thanks Peter. Please let me know how exactly to do that. Do you mean add --context.root C:\tomcat\webapps\flex while starting tomcat i.e. catalina start --context! .root C:\tomcat\webapps\flex Is that right ? Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Ah, yes, you need to specify --context.root on the command line as the client can't tell what the context root is (i.e. because you can have the default
RE: [flexcoders] Data Mapping problem
To cast a typein ActionScript you use this syntax: tmpDoctor = samples.Doctor(event.result); (i.e. it is not the same syntax as Java). Also, in your Java class, note it must have a public no-args constructor and the fields (or bean getter/setters) must be public. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98Sent: Thursday, April 27, 2006 9:32 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Data Mapping problem Hi,I have a an ActionScript class Doctor.as as follows,package samples{[Bindable][RemoteClass(alias="samples.ht.base.Doctor")]dynamic public class Doctor{ public var firstName:String; public var lastName:String; public var phoneNumber:String;}}The corresponding Java class Doctor.java is,package samples.ht.base ;public class Doctor { String firstName; String lastName; String phoneNumber; public Doctor(String fname, String lname, String phoneNum){ firstName = fname; lastName = lname; phoneNumber = phoneNum; }}I make a RemoteObject method call which returns a Doctor. In my me! thod which handles the result, I have, [Bindable] public var tmpDoctor:Doctor ; private function getNameHandler(event:ResultEvent):void {tmpDoctor = (samples.Doctor)event.result ; ..If I don't have the dynamic keyword in Doctor.as, I get an Exception from Flash which says,ReferenceError: Error #1056: Cannot create property _phone_number on samples.DoctorReading about Error 1056 implied that I had to make the Doctor class(in Actionscript) dynamic. What is happening now is that,! I am getting control in getNameHandler method after the remot! e method is executed but after the line in blue is executed, tmpDoctor is null. By looking at event.result from the debugger I can see the following,result = samples.Doctor (@550cb26) firstName = null _firstName = "Michael" lastName = null _lastName = "Schumacher" phoneNumber = null _phone_number = "100"Why is casting not working properly ? I had expected that tmpDoctor would have its fields properly populated. Why is that not happening what is the way to access the results returned in the fields starting with underscores ? I am sorry in advance as I have just started learning Actionscript.Thanks,Aejaz -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Uncaught exceptions in Flex 1.5
Some of the comments I made also apply to Flex 1.5's usage of ActionScript 2 in Flash Player 7. ActionScript 2 has try/catch syntax and the Error type, there are debug versions of the flash player that ship with Flex 1.5 which you should use during development, you can use trace() to report information to a debug log - it too was called flashlog.txt and the mm.cfg file still applies to Flex 1.5. In fact, this file should be setup and monitored for warnings and errors from the flash player during development at all times (I use tail.exe from cygwin to monitor this file like a console log). There is a command line debugger in Flex 1.5 called fdb... and, of course, we built all of the ActionScript 2 code for Flex 1.5 using all of these tools... though admittedly the tools and language features we had to build Flex 2 are even better and will be available soon. Do you have the debug versions of the player? Do you have mm.cfg setup in your user directory and do you monitor the flashlog.txt file? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of maxym.hryniv Sent: Friday, April 28, 2006 5:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Uncaught exceptions in Flex 1.5 I'm still waiting for reply. --- In flexcoders@yahoogroups.com, maxym.hryniv [EMAIL PROTECTED] wrote: Hi, Peter It's good that we have at last normal exception handling in 8.5 beta. But it's only beta for now and we are creating apps using Flex 1.5. So the question is How we can fight silent exceptions death in Flex 1. 5 ???. I have some ideas but to realise them i have to rewrite all flex 1.5 framework and i think it's not acceptable. Waiting for reply , Max --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Hi Mykola, Have you used the debug versions of the Flash Player during development? The debug version of the Flash Player reports uncaught exceptions and it also traces information to a flashlog.txt file as long as you have a mm.cfg file setup in your user directory. We include debug versions of the Flash Player (i.e. the Standalone Player, the Firefox/Netscape/Opera plugin and MSIE Active-X player) in the Flex installer. We include them for the same reasons that you state - without having proper error reporting it is impossible to build anything larget than hello-world presentations. Flex Builder has a visual debugger with breakpoints and watch statements. Also AS3 Error objects remember their stacktraces and you can print them out if you're using the debug player. We built the Flex 2 framework of over 1000 classes using the same tools as you would to build your own applications... I feel that they are adequate. Regarding the confusion, it wasn't that important - it was just that from my reading the various posts on this thread I got the impression that there were two complaints here that were at odds with each other. One complaining they couldn't manage errors coming from lots of different places and the other that they weren't getting enough errors and related information at runtime. Regards, Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] com] On Behalf Of Mykola Paliyenko Sent: Tuesday, April 25, 2006 5:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Uncaught exceptions in Flex 1.5 Ok Peter, no idea why you've been confused but... ActionScript specification has a notion of throwable objects, so saying that Exception is a bug of the AS2Lib is slightly incorrect. I'm relaizing that due to the size constraints of the player it might be good idea not to include exception handling in it, but once more again you can add this in the development version of the player and this should be extremely easy to do if the overal palyer's architecture is good enough, isn't it? My opinion is that without having proper error reporting it is impossible to build anything larger than hello-world presentations with a very good quality, so I'd warn people to treat Flex/Flash as a really serious platform unless this feature will be implemented. Flex Developers in my company mostly are very unhappy with the quality of the framework and the level of the support Adobe provide for the users, I'm not saying about paid support I'm saying about community support, feature requests, bugfixes, open source frameworks around Flex etc. I see no other way for developing the really good product other than involve the community into the development. It is the way lots of really cool stuff were developed for the last year and it is mostly ignored by Adobe. You have a great idea of RIA and a great high performant player, if you make a great product it will be an all win situation. The only way to make a great product is to make it more open
RE: [flexcoders] Help!
The crossdomain.xml file resides on the remote server that you're trying to contact, so it should be accessible like this: http://someserver:someport/crossdomain.xml This fileis not involved at compile time. (Also, that is not a warning and it can't be ignored, it's a hard error informing you that it isn't allowed to access that domain). (As an aside, note that it's generally not a good security practice to allow SQL statements to be specified externally to a service, such as in a URL. Consider parameterising the SQL statement and control the input parameters allowed to be specified). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sachin gaurSent: Friday, April 28, 2006 8:10 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Help! Hi ,On your suggestion i tried to create crossdomain.xml and i uploaded in my root folder but still i am having the warning. I am using Flex Builder 2.0 Beta.Or we have to put this crossdomain.xml when we are compiling the swf ? Please put some light on this On 4/28/06, sachin gaur [EMAIL PROTECTED] wrote: My swf file is on my machine on which the webserver is running and the URL I am accessing is of our bugtracking system(yeah, that is an external URL) which returns the xml file. So when i use this swf file from some other machine over http protocol then i have the above warning. On 4/28/06, Matt Chotin [EMAIL PROTECTED] wrote: Where is your SWF and where is the url that you're hitting? Are they onthe same domain? Are they on the same port? It may be that you'rehaving crossdomain issues.Matt -Original Message-From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] OnBehalf Of compengguySent: Thursday, April 27, 2006 6:28 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Help!Hi all,I am making a page for my teamsite where i am sending the sql query inthe URL. which returns an xml file. When i compile and run this codein Flex Builder 2.0 , It runs fine but when i take that swf file andrun it seperately It gives the following errors. *Error: faultCode:Channel.Security.Error faultString:'Security erroraccessing url' faultDetail:'Destination: DefaultHTTP' atmx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler() at flash.events::EventDispatcher/dispatchEvent() at mx.messaging::MessageAgent/fault() at mx.messaging::Producer/fault() at ::DirectHTTPMessageResponder/securityErrorHandler() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::redirectEvent() what i need to do,to not to have this warning because after thewarning it not fetches the data.The code snippet is mx:HTTPService id="xml" url="" useProxy="false"/so can anybody suggest what i need to do ?ThanksSachin Gaur -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Possible to invoke Flex2b2 compiler as a Java class?
Sorry, this method of invocation is not supported by Flex. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Avi Flax Sent: Friday, April 28, 2006 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Possible to invoke Flex2b2 compiler as a Java class? Anyone? Please? --- In flexcoders@yahoogroups.com, Avi Flax [EMAIL PROTECTED] wrote: Dave, thanks for your help! What you said makes sense, but unfortunately I'm still having trouble with it. Here's my ColdFusion code: cfscript MXMLc = URLClassLoader.LoadJarClass(C:\Program Files\Adobe\Flex Framework 2\lib\mxmlc.jar, flex2.tools.Compiler); Args = '-flexlib C:\Program Files\Adobe\Flex Framework 2\frameworks\ C:\inetpub\builder\mxml\test1.mxml; MXMLc.main(JavaCast(String, Args)); /cfscript I *think* this follows what you suggested. When I try to run this, I get the following error message: The selected method main was not found. Either there are no methods with the specified method name and argument types, or the method main is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity. So... any more tips? BTW I do know that I'm initializing the class properly; if I pass MXMLc to the CFDUMP tag, I see the following: object of flex2.tools.Compiler Methods: main (returns void) hashCode (returns int) getClass (returns java.lang.Class) wait (returns void) wait (returns void) wait (returns void) equals (returns boolean) notify (returns void) notifyAll (returns void) toString (returns java.lang.String) FILE_SPECS: file-specs Thanks! Avi --- In flexcoders@yahoogroups.com, Dave Wolf gatorj24@ wrote: In any Java JAR there can be a main-class which is the class called when no classname is specified. That main-class will also have a main() method which si the default entry point of the class. That method has the following signature public static void main(String[] args); Where the String[] are the command line arguments. Call the main() method passing in whatever command line arguments there would be as the String[]. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: dave.wolf@ Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Avi Flax avif@ wrote: I'd like to invoke the Flex2b2 compiler from ColdFusion using the Java class, if possible. I looked at the file MANIFEST.MF in mxmlc.jar, and saw: Main-Class: flex2.tools.Compiler So, I tried this in CF: Application.com.MXMLc = Application.com.URLClassLoader.LoadJarClass(CompilerPath, flex2.tools.Compiler); That works, and I can CFDUMP the object to see a list of its methods and properties, but: - I can't set the property FILE_SPECS: I get an java.lang.IllegalAccessException with the message: field is final - I can't invoke the compile method. My code is: Application.com.MXMLc.compile(JavaCast(String, MxmlPath)); I get the CF message The selected method compile was not found. Can anyone shed some light on this? Is it documented anywhere? I apologize if this is silly; I'm expert with CFML but not experienced with Java interaction. I did try to just use CFEXECUTE at first, with mxmlc.exe, but had trouble with it. I've always found CFEXECUTE frustrating, so I thought I'd give this approach a try. Thanks! Avi Flax Flex Newbie Arc90, New York http://www.arc90.com/ -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] AS3 - Support for Overloading Method Signatures?
As far as I know this won't happen (it's largely guided by the ECMA 4 standard) so for AS3 you'll need to use the varargs ...syntax to take a variable number of arguments: public function calculateSomething (required:int, ...others:Array):int { } Note that you can place functions in multiple namespaces too. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John C. Bland IISent: Friday, April 28, 2006 6:34 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] AS3 - Support for Overloading Method Signatures? Ahh...this would be a beautiful addition and welcome with open arms on my end! :-)(sorry...just wanted to back this request; no real info here) On 4/28/06, Aaron King [EMAIL PROTECTED] wrote: Hey, does anyone know if there are plans to make AS3 support overloadedmethod signatures anytime before it comes out of beta?Thanks!Aaron--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- John C. Bland II"I do what I can do when I can do it." - Chris Tucker, Money Talkshttp://www.gotoandstop.org - Home of FMUG.az -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] [Flex2] Problems with Fonts
How did you embed the font? Did you change the character range to include these high-ascii characters? Note by default the english range is used which by default has the range U+0020-U+007E. You'd either need to create a new language range in the flex-config.xml file and refer to this by name in the CSS @font-face style (or equivalent Embed metadata syntax), or just specify the range yourself in the CSS directly. http://livedocs.macromedia.com/labs/1/flex20beta2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=Part2_DevApps.html From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carlos RoviraSent: Monday, May 01, 2006 4:50 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] [Flex2] Problems with Fonts Hi,I was developing a piece of software that requieres an embeded font and I'm having problems with a range of symbols in that font. I'm parsing XML an using "String.fromCharCode(decimal character code);" sentece to write font symbols to a textarea. (Note that decimal character code is a number from 32 - 255 in a chart of font symbols of the embeded font)The problem is that I can't access some symbols in the embeded font. In particular those that goes from 128-159 range. I trying to find some solution with no luck at all. All programs that I use to load the font and see the glyps shows the entire font without problem and shows the decimal numbers matching the ones I have in the chart. Hope someone could give me some advice so I can follow developing my application and accesing that glyps.Thanks in advance.-- ::| Carlos Rovira::| http://www.carlosrovira.com -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] how do I prevent users from accessing my super extened class?
In Flex 2 / Flash Player 9 you'll use ActionScript 3, which has the final keyword which can be applied at the class or method levels to stop subclasses overriding/extending functionality. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nz_mehere Sent: Tuesday, May 02, 2006 5:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how do I prevent users from accessing my super extened class? Hi there, I have writen a class that extends the VSlider VSliders have the property of thumbCount, which is how many little arrows appear on the slider. I want to prevent people from setting there own. I thought I could hide it from them by overriding the thumbCount property with a private one, but get an error Overriding function that is not masked for override. The code is something like this: private function set thumbCount(number:Number):void{ super.thumbCount = number; } What am I missing? -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Uncaught exceptions in Flex 1.5
What does your mm.cfg file look like? The following settings work general trace output and error reporting: ErrorReportingEnable=1 TraceOutputFileEnable=1 The following setting works only in the debug version of Flash Player 7 (i.e. that that shipped with Flex 1.5, not the normal, non-debug player, such as Flash Player 8 from our website) and is only relevant to Flex 1.5: TraceLocationEnable=1 Also I believe this was still relevant in Flex 1.5... the flex-config.xml file production-mode and optimize settings should both be set to false when trying to use the debug player with trace() statements. If you need more then I suggested working with fdb to debug your Flex 1.5 app at runtime. I believe that with all of these approaches (and in my opinion even without many of them) you can build successful applications that are more complicated than a Hello World application. As stated earlier, in Flex 2.0 this will not be necessary because it will use AS3 with Flash Player 9 - the debug version of this player will ship with Flex 2.0 and will show stacktrace information with errors etc. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of maxym.hryniv Sent: Wednesday, May 03, 2006 11:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Uncaught exceptions in Flex 1.5 Can someone give a response The question was : when I use debug player, configured by mm.cfg I receive only messages like Warning: Uncaught exception, message text of course it's not enough. Can I configure debug player to receive information like sender classmethod? If not it's usable only for Hello World applications. Of course I can create BaseError class that will know error context and format error message how I want, but it's not applicable for libraries that I'm using (as2lib). Respect. --- In flexcoders@yahoogroups.com, maxym.hryniv [EMAIL PROTECTED] wrote: I'm still waiting for reply. --- In flexcoders@yahoogroups.com, maxym.hryniv mokus@ wrote: Hi, Peter. Thank you one more time for your help. I have one more question: when I use debug player, configured by mm.cfg I receive only messages like Warning: Uncaught exception, message text of course it's not enough. Can I configure debug player to receive information like sender classmethod? If not it's usable only for Hello World applications. Of course I can create BaseError class that will know error context and format error message how I want, but it's not applicable for libraries that I'm using (as2lib). Respect. --- In flexcoders@yahoogroups.com, maxym.hryniv mokus@ wrote: Thank You Peter. It's a shame for me that i didn't know that. I'll use all of these tools. And i'm waiting for Flex 2. Thank You one more time. --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Some of the comments I made also apply to Flex 1.5's usage of ActionScript 2 in Flash Player 7. ActionScript 2 has try/catch syntax and the Error type, there are debug versions of the flash player that ship with Flex 1.5 which you should use during development, you can use trace() to report information to a debug log - it too was called flashlog.txt and the mm.cfg file still applies to Flex 1.5. In fact, this file should be setup and monitored for warnings and errors from the flash player during development at all times (I use tail.exe from cygwin to monitor this file like a console log). There is a command line debugger in Flex 1.5 called fdb... and, of course, we built all of the ActionScript 2 code for Flex 1.5 using all of these tools... though admittedly the tools and language features we had to build Flex 2 are even better and will be available soon. Do you have the debug versions of the player? Do you have mm.cfg setup in your user directory and do you monitor the flashlog.txt file? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] com] On Behalf Of maxym.hryniv Sent: Friday, April 28, 2006 5:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Uncaught exceptions in Flex 1.5 I'm still waiting for reply. --- In flexcoders@yahoogroups.com, maxym.hryniv mokus@ wrote: Hi, Peter It's good that we have at last normal exception handling in 8. 5 beta. But it's only beta for now and we are creating apps using Flex 1. 5. So the question is How we can fight silent exceptions death in Flex 1. 5 ???. I have some ideas but to realise them i have to rewrite all flex 1.5 framework and i think it's not acceptable. Waiting for reply , Max --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Hi Mykola, Have you used the debug versions of the Flash Player during development? The debug version of the Flash Player reports
RE: [flexcoders] Re: how do I prevent users from accessing my super extened class?
Correct. public final function set thumbCount(number:Number):void { super.thumbCount = number; } -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nz_mehere Sent: Wednesday, May 03, 2006 4:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: how do I prevent users from accessing my super extened class? Hi Peter, If I understand what you are saying, the Final keyword will be on the thumbCount property, so preventing anyone from over loading it as I am trying to do? That makes sense... Thanks for the help --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: In Flex 2 / Flash Player 9 you'll use ActionScript 3, which has the final keyword which can be applied at the class or method levels to stop subclasses overriding/extending functionality. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nz_mehere Sent: Tuesday, May 02, 2006 5:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how do I prevent users from accessing my super extened class? Hi there, I have writen a class that extends the VSlider VSliders have the property of thumbCount, which is how many little arrows appear on the slider. I want to prevent people from setting there own. I thought I could hide it from them by overriding the thumbCount property with a private one, but get an error Overriding function that is not masked for override. The code is something like this: private function set thumbCount(number:Number):void{ super.thumbCount = number; } What am I missing? -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: how do I prevent users from accessing my super extened class?
Oh, in that case override then mark final: override public final function set thumbCount(number:Number):void { super.thumbCount = number; } -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nz_mehere Sent: Wednesday, May 03, 2006 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: how do I prevent users from accessing my super extened class? The thumbCount must already have the final keyword, as I can't overload it. I get the Overriding function that is not marked for override error, and it won't compile. ...but at least I understand why now! :-) --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Correct. public final function set thumbCount(number:Number):void { super.thumbCount = number; } -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nz_mehere Sent: Wednesday, May 03, 2006 4:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: how do I prevent users from accessing my super extened class? Hi Peter, If I understand what you are saying, the Final keyword will be on the thumbCount property, so preventing anyone from over loading it as I am trying to do? That makes sense... Thanks for the help --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: In Flex 2 / Flash Player 9 you'll use ActionScript 3, which has the final keyword which can be applied at the class or method levels to stop subclasses overriding/extending functionality. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nz_mehere Sent: Tuesday, May 02, 2006 5:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how do I prevent users from accessing my super extened class? Hi there, I have writen a class that extends the VSlider VSliders have the property of thumbCount, which is how many little arrows appear on the slider. I want to prevent people from setting there own. I thought I could hide it from them by overriding the thumbCount property with a private one, but get an error Overriding function that is not masked for override. The code is something like this: private function set thumbCount(number:Number):void{ super.thumbCount = number; } What am I missing? -- 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 -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Dynamically setting RemoteObject endpoints in Flex 1.5
Try calling it on the underlying Connection... remoteObjectId.connection.connect(newURIGoesHere); -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, May 04, 2006 5:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamically setting RemoteObject endpoints in Flex 1.5 Is it possible to do this ? I have a Flex app that runs on many different hosts, and would like it to be able to reconfigure the endpoint property of it's RemoteObjects (which are all backed by ColdFusion CFCs). I've got the domain name into the Flex as a variable, but can't seem to get the correct line of magic to change it- RemoteObjectId.setEndpointURI() moans that the method doesn't exist on the remote object, for instance. Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards Yahoo! Groups Sponsor ~-- Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Please Help: Not being able to access the .as class from mxml in Flex 2 Beta 2
Is the Program class correctly declared inside a package test {} block? Does Program.as live in a subdirectory called test? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of eairox Sent: Thursday, May 04, 2006 7:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Please Help: Not being able to access the .as class from mxml in Flex 2 Beta 2 Hi, I am not able to use the actionscript class in the mxml. I have declared a class as follows: Class: Program.as import mx.collections.*; //These imports should be unnecessary in the final release import mx.data.IManaged; import mx.data.utils.Managed; import mx.core.mx_internal; [Managed] [RemoteClass(alias=test.Program)] public class Program { //auto generated private var programId:int; //auto generated private var programName:String; ... ... } mxml code: import test.Program; [Bindable] public var program:Program; Error: Type is not found or not a compile-time constant: Program 36: public var risks:ArrayCollection; 37: public var program:Program; Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Simple XML web service call
You need to add a fault handler to the WebService to see why it has failed. How are you loading the SWF? Is the SWF hosted on the same machine as the CFC? Note that localhost and 127.0.0.1 are not the same string for purposes of domain name checking for security sandbox restrictions. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darren Houle Sent: Tuesday, May 09, 2006 2:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Simple XML web service call This is probably very simple and I'm just being stupid, but... why doesn't this work? I don't get any errors, just a blank swf w/o the Label. I'm in Beta 3. mxml file ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml creationComplete=wsTest.testFunction.send() mx:WebService id=wsTest useProxy=false wsdl=http://localhost/ia_cleanup.cfc?wsdl mx:operation name=testFunction resultFormat=xml / /mx:WebService mx:Label text={wsTest.testFunction.lastResult.msg} / /mx:Application ...and the accompanying CFC file - cfcomponent cffunction name=testFunction access=remote output=false returntype=xml cfxml variable=xmlResults msgHello World/msg /cfxml cfreturn xmlResults /cffunction /cfcomponent I've tried different resultFormats, different returnTypes... returning a string instead of the cfxml tag... building mystring and returning the result of parseXML(mystring). Nothing seems to work. Thanks, Darren Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 1.5 Standard config Flex-error setup not working...
I believe that since flex.compiler.ErrorPageServlet doesn't override doPost, this is expected. Any chance you can track down what is making the request via POST instead of GET? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Libby Sent: Wednesday, May 10, 2006 4:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 1.5 Standard config Flex-error setup not working... When I have an error in my application, the server attempts to use the error-page definitions provided by Flex in my web.xml and flex.jar files. But, it fails with the following error: The server cannot use the error page specified for your application because of the exception printed below. Error Page Exception: : com.ibm.ws.webcontainer.webapp.WebAppErrorReport: HTTP method POST is not supported by this URL Can someone perhaps tell me what I need to change? Below are the pertinent entries from the web.xml as supplied by macromedia. Thanks, Libby servlet servlet-nameFlexErrorServlet/servlet-name servlet-classflex.bootstrap.BootstrapServlet/servlet-class init-param param-nameservlet.class/param-name param-valueflex.compiler.ErrorPageServlet/param-value /init-param /servlet error-page error-code403/error-code location/flex-error/location /error-page Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders][Flex2B3] Newbie question: WebServices in class
Did you call loadWSDL() on the __mxna:WebService first? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nirth Fur Zahad Sent: Thursday, May 11, 2006 1:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders][Flex2B3] Newbie question: WebServices in class Hello List >From the tutorial in Flex 2 b3 documentation we know how to make simple web service client with MXML tags mx:WebService id=mxna useProxy=false wsdl= http://weblogs.macromedia.com/mxna/webservices/mxna2.cfc?wsdl mx:operation name=getPostsByCategory mx:request xmlns= limit20/limit offset0 /offset categoryId4/categoryId languageIds1/languageIds /mx:request /mx:operation /mx:WebService but i need to make it in as so i tried to get it work like this //in class private var __mxna:WebService = new WebService(); private var __byCategory:Operation; //in constructor __mxna.wsdl = http://weblogs.macromedia.com/mxna/webservices/mxna2.cfc?wsdl; __mxna.useProxy = false; __byCategory = __mxna.getPostsByCategory; __byCategory.addEventListener(ResultEvent.RESULT,onResult); __byCategory.addEventListener(FaultEvent.FAULT,onFault); __byCategory.send(20,0,4,1); /* i also tried like this * __byCategory.arguments= [20,0,4,1]; * __byCategory.send(); */ but this does not work, i've tried variouse ways like creating Operation instance with constructor and so on, but this does not works at all, can somebody point me in a direction what should i do? or what am i missing. Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] RemoteObject || Multiple signature
The remoting service on the server attempts to bind to an appropriate method signature based on both the number of arguments provided and also their data types.Some type marshalling must take placeto cater for the weaker type system on the client.This method lookup is cached for the provided arguments but you should be able to invoke other methodsso long as the new arguments differ in a significant manner (i.e. you can't call two distinct Java methods that differ only by a number type, such as getObject(long val) and getObject(int val) from the same RemoteObject since ActionScript does have a long or int type). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of david_gal-reyniezSent: Monday, May 15, 2006 12:54 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] RemoteObject || Multiple signature Hi everybody. Is it possible to call 2 methos of a remote object with different signature? I suppose with the tag mx:arguments But I don't know how I may differenciate both arguments call. Thanks for your help. David ** Coface facilite les echanges entre les entreprises partout dans le monde. Pour cela, elle offre à toutes les entreprises des solutions pour gérer, financer et protéger leur poste client : information et notation mondiale d'entreprises, gestion et recouvrement de créances , affacturage et assurance-crédit. Coface est notee AA par Fitch Ratings et Aa3 par Moody's. Coface facilitates business-to-business trade throughout the world by offering companies solutions to help them manage, finance and protect their receivables : information and company ratings, receivables management, receivables finance and protection. Coface is rated AA by Fitch ratings and Aa3 by Moody's. ** -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Beta3 - RemoteObject destination error with stateful parameter
I'd just delete the stateful property. stateful would now be scope in Beta 3, but since you're relying on the default, just remove the property. Note that scope now takes three possible values, request, session or application. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork Sent: Monday, May 15, 2006 1:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Beta3 - RemoteObject destination error with stateful parameter Guys, as of Beta3 I am getting an error in my remote object configuration. It is complaining about the stateful parameter. Below are the configurations and the error I'm receiving. For now I've removed this statement. Was this changed or removed for Beta3? I didn't see it in the upgrade docs, and it's still mentioned in the online documentation... Thunder flex.messaging.config.ConfigurationException: Unexpected tags in properties found. Please fix them before continuing: '/stateful' in destination with id: queryManagerRO '/stateful' in destination with id: database at flex.messaging.config.MessagingConfiguration.reportUnusedProperties(Mess agingConfiguration.java:421) at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:113) at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.jav a:1200) ___ !-- QueryManager remote Object -- destination id=queryManagerRO properties statefulfalse/stateful !-- the java class name of the destination -- sourcecom.main.querymanager.QueryManager/source /properties /destination !-- DatabaseService remote Object -- destination id=database properties statefulfalse/stateful !-- the java class name of the destination -- sourcecom.main.sqladmin.DatabaseService/source /properties /destination Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Wanted - A simple WSDL example
You're running into the sandbox security restrictions of the Flash Player. In short, to contact a remote webservice without using the proxy service the owner of the domain hosting the service would need to place a crossdomain.xml file in their webroot and specify your domain in the list of domains allowed to contact it from a Flash Player. See: http://www.adobe.com/devnet/flash/articles/fplayer_security.html http://www.adobe.com/devnet/flash/articles/fplayer8_security.html This example doesn't take the fault event into account, something I believe needs to be corrected. Modify the fault attribute of the MXML tag mx:WebService to pass through the fault event to the errorCall function: fault=errorCall(event); Then modify the errorCall function to handle the event: private function errorCall(event:FaultEvent):void { mx.controls.Alert.show(Web service failed! + event.fault.faultString, Alert Box, mx.controls.Alert.OK); } Make sure you remember to import the FaultEvent class too... You can do so in the top of the mx:Script block: mx:Script ![CDATA[ import mx.rpc.events.FaultEvent; // etc... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of judah Sent: Tuesday, May 16, 2006 1:00 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Wanted - A simple WSDL example That is an awesome link. I will use that. My problem is getting them to work in Flex. This is really a newbie question but I don't know how to take that information on that site and put it into Flex. I've looked at the help, I've tried to apply it and I cannot see what I'm doing wrong. I'm pulling out my hair (insert hair pulling emoticon here). Here is my code: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml mx:WebService id=WeatherService wsdl=http://www.jasongaylord.com/webservices/zipcodes.asmx?wsdl http://www.jasongaylord.com/webservices/zipcodes.asmx?wsdl result=successfulCall(); fault=errorCall(); useProxy=false mx:operation name=ZipCodeToDetails mx:request ZipCode{zipCode.text}/ZipCode /mx:request /mx:operation /mx:WebService mx:Script ![CDATA[ private function processValues():void { //mx.controls.Alert.show(Sending data!, Alert Box, mx.controls.Alert.OK); // Check to see if ZIP code is valid. WeatherService.GetWeather.send(); } private function successfulCall():void { mx.controls.Alert.show(Web service sucessful!, Alert Box, mx.controls.Alert.OK); vs1.selectedIndex=1; } private function errorCall():void { mx.controls.Alert.show(Web service failed!, Alert Box, mx.controls.Alert.OK); } ]] /mx:Script mx:ViewStack id=vs1 mx:Form mx:FormItem label=Zip Code mx:TextInput id=zipCode width=200 text=50613/ mx:Button width=60 label=Submit click=processValues();/ /mx:FormItem /mx:Form mx:VBox mx:TextArea text={WeatherService.GetWeather.result.CityShortName}/ mx:TextArea text={WeatherService.GetWeather.result.CurrentTemp}/ /mx:VBox /mx:ViewStack /mx:Application John C. Bland II wrote: Anytime I need to look at or test a wsdl I always go to xmethods.net http://www.xmethods.net/ve2/Directory.po;jsessionid=T3ODF8jMNTL3E7xnYCB gxMEF%28QHyMHiRM%29 . On 5/15/06, judah [EMAIL PROTECTED] wrote: I am looking for an super simple working example of an WSDL. I tried to get the one in the help files working and I get no response success or fail. I've spent a day working on this and found out the wsdl url is fake and found plenty of other WSDLs online, looked at the xml but get fail response on all of them. heres the article in the help file i'm looking at: http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/ html/wwhelp.htm?context=LiveDocs_Partsfile=0700.html http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common /html/wwhelp.htm?context=LiveDocs_Partsfile=0700.html Judah -- Always bear in mind that your own resolution to succeed is more important than any one thing. You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. - Abraham Lincoln -- 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 * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- John C. Bland II I do what I can do when I can do it. - Chris Tucker, Money Talks
RE: [flexcoders] AMFPHP credentials, secured services
How are you calling your amfphp endpoint? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jesús Iglesias Sent: Thursday, May 18, 2006 7:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] AMFPHP credentials, secured services Hi, How can I run secured services now on Flex2 through amfphp. I have not found any setCredentials method. Thanks. Yahoo! Groups Sponsor ~-- Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] AMFPHP credentials, secured services
In Flash Remoting MX 2004 the Connection subclass of NetConnection adds an AMF header. Using NetConnection.addHeader. I'm not sure where AMFPHP looks for credentials, but if I had to guess, I'd say the following would work since you subclass NetConnection: public function setCredentials(username:String, password:String):void { addHeader(Credentials, false, {userid: username, password: password}); } You should also provide a way to clear the credentials since AMF headers are sent on every request. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jesús Iglesias Sent: Thursday, May 18, 2006 10:19 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AMFPHP credentials, secured services Hi, Here you got. What I don't know is how to pass credentials. Thanks. private var gateway : RemotingConnection; gateway = new RemotingConnection( http://domain.com/amfphp/gateway.php ); gateway.call( Service.getMethod, new Responder(onResultGetMethod, onFault)); RemotingConnection.as - package { import flash.net.NetConnection; import flash.net.ObjectEncoding; public class RemotingConnection extends NetConnection{ public function RemotingConnection( sURL:String ){ objectEncoding = ObjectEncoding.AMF0; if (sURL) connect( sURL ); } public function AppendToGatewayUrl( s : String ) : void{ // } } } -Mensaje original- De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Peter Farland Enviado el: jueves, 18 de mayo de 2006 15:55 Para: flexcoders@yahoogroups.com Asunto: RE: [flexcoders] AMFPHP credentials, secured services How are you calling your amfphp endpoint? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jesús Iglesias Sent: Thursday, May 18, 2006 7:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] AMFPHP credentials, secured services Hi, How can I run secured services now on Flex2 through amfphp. I have not found any setCredentials method. Thanks. Yahoo! Groups Sponsor ~-- Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/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 -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm - mx:HTTPService result=event.call.resultHandler( event )... doesn't work anymore
In Flex 2, mx.rpc.events.ResultEvent is a subclass of mx.rpc.events.AbstractEvent which still contains a deprecated getter for a call property. The new name for this property is token (as per the dynamic mx.rpc.AsyncToken instance that is returned from any RPC service invocation). I'm not familiar with Cairngorm, but you can also assign invocation specific responders to AsyncTokens. I think by beta 3 this had become potentially many responders so the API on this call/token changed from a token.responder property to token.addResponder(r:IResponder):void. This means that the responder must implement mx.rpc.IResponder. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Iuliu Burtoiu Sent: Friday, May 19, 2006 8:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm - mx:HTTPService result=event.call.resultHandler( event )... doesn't work anymore Hello again! I'm trying for some time now, to add a custom webService in my Services.mxml control. However, the dummyDelegate HTTPService from the old version of Cairngorm LOGIN sample doesn't seem to work anymore with Flex 2b3. More specific, it seems that there isn't a call property on the event:ResultEvent anymore. So, any ideas how could I link the result handler from a mx:HTTPService with the responder's onResult? Thanks Iuliu __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] [Flex2] File upload using HTTP PUT ?
You can use HTTP 1.1 methods such as PUTwith the FDS Proxy Service. The Flash Player URLLoader only supports GET and POST, however the FDS Proxy Service uses Apache Commons HTTPClient to make the request for you and this library is HTTP 1.1 compliant. Note, however, that the Proxy Service does not support multipart form post. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael HansenSent: Friday, May 19, 2006 5:47 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] [Flex2] File upload using HTTP PUT ? NP! You had me going there for a minute... :)-michael On 5/19/06, Stacy Young [EMAIL PROTECTED] wrote: Sorry, misread your post scratch what I said ;-) I thought "post" From: Stacy Young Sent: Friday, May 19, 2006 5:29 PMTo: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] [Flex2] File upload using HTTP PUT ? It's already in there , I'm using it ! -Stace From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael HansenSent: Friday, May 19, 2006 5:09 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] [Flex2] File upload using HTTP PUT ? This one is for the Adobe guys...Any chance we'll see Flex2 implement file uploading using HTTP PUT ? I sense that your're going to see a demand for this in the near future. (I could use it right now! :) Cheers -michael--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] java enum does not serialize
This feature was deferred until a later release of Flex. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of busitech Sent: Wednesday, July 12, 2006 6:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] java enum does not serialize Has anyone found a way to get java 1.5 enums to serialize and deserialize correctly through the flex server? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] HTTPS and Remote passwords
Flex is restricted by the functionality of the Flash Player. The underlying API flash.net.URLLoader will not let Flex set any of the headers required to mimic what you're asking for, i.e. pre-authentication. If you're using Basic Authentication from the J2EE web application container, then the popup is what you're going to see. This is out of our control on the server too. The J2EE app server does not give us access to the messaging payload until the request is authenticated. setCredentials is only for custom authentication (i.e. the destination is constrained and credentials are checked against the login-command registered for the FDS Message Broker). setRemoteCredentials is only for communication with 3rd party endpoints from an FDS adapter, such as ColdFusion. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, July 13, 2006 10:11 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] HTTPS and Remote passwords On Wednesday 12 July 2006 15:00, Tom Chiverton wrote: All right, fixed that, my bad :-) I take it all back :-( If I have the end point URL (http://somehost/flex2gateway) protected at the web server level, how can I make Flex send along a particular username/password in the HTTP 'Authorization' header when it calls a remote object ? Neither setCredentials() or setRemoteCredentials() work - the web browser just displays it's normal HTTP 'authorisation needed' prompt, and once entered there all proceeds well, so it's just a case of making Flex do the same thing. All is well if I protect the root URL (but then the web browser prompts the user before loading the Flex before passing on the Authorization header OK). Any word on HTTPS endpoints ? *No one* is trying to do CFC remoting over SSL ? With destination id=environmentService channels channel ref=my-cfamf-arch-sec/ /channels properties sourcecom.XXX.EnvironmentService/source access use-mappingstrue/use-mappings method-access-levelremote/method-access-level /access property-case force-cfc-lowercasefalse/force-cfc-lowercase force-query-lowercasefalse/force-query-lowercase force-struct-lowercasefalse/force-struct-lowercase /property-case /properties /destination and channel-definition id=my-cfamf-arch-sec class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://archiving.localdomain:443/flex2gateway/; class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition I get an error when trying to use it that says destination environmentService not accessible over channel my-cfamf-arch-sec :-( The SWF is being served via HTTPS from the same host name, but I've stuck the following cross domain policy file in anyway to no avail: cross-domain-policy allow-access-from domain=* secure=false / /cross-domain-policy -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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 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:
RE: [flexcoders] Unknown FDS error
Hey Hank, Can you send me a test case, or can you try turning on sufficient debugging to watch what is going on at the endpoint? In services-config.xml, in the logging section turn on Debug level logging, and then ensure the Endpoint.* pattern is enabled. Restart the server and then try the sample again. FWIW, what is confusing to me is that 2099 is not in the format / range of our server side errors. When I first read your post I thought this might have been a client side error because it is in the range of ActionScript error codes. Are you using IExternalizable by any chance? Pete From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank williams Sent: Wednesday, July 12, 2006 2:03 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Unknown FDS error For the record this error: #2099: The loading object is not sufficiently loaded to provide this information. Really means that you have passed a parameter that either flex or FDS doesnt like. I got it when trying to pass a TextInput instead of a TextInput.text. No problem with there being an error for this but it could be a bit more descriptive. Regards Hank On 7/11/06, hank williams [EMAIL PROTECTED] wrote: Ok, I have installed FDS final and the error is exactly the same. So now it just appears that error 2099 is an undocumented error. It would be great if I could at least get some detail on what exactly could cause this error. It does have a number so it must be, at eleast internally, documented somewhere. Regards Hank On 7/11/06, hank williams [EMAIL PROTECTED] wrote: On 7/11/06, Peter Farland [EMAIL PROTECTED] wrote: Hank, this isn't much information to go on. What technology are you connecting to with RemoteObject? Java, ColdFusion, etc? What sort of data are you trying to send and/or return? lol. Yeah, I know! I just thought maybe someone would know what the error code actually meant. Since then I realized I am running the last beta of FDS and I am hoping that will help. It appears this error is not in any current documentation but it was in the labs documentation for FDS which makes me think maybe there is some problem there. Even in the labs doc, the error was just listed with no explanation. I am in the process of switching over to FDS Final, and I am wondering if I can keep all of my XML configuration files or did the format change between FDS beta and Final? Regarding what I am running I am running java in Tomcat. Remoting has been working fine, and I have 7 or 8 successful remoteObjects and calls. I am trying to send two strings, and I am trying to get back one string. But it never even gets to my java code. FDS seems to be failing as soon as this call comes in, generating the aforementioned error. Today I added this latest call and it gives me this error, but only for this call. Obviously there is something that FDS is choking on but for the life of me I cant figure out what the difference is between all the calls that work and this one that doesnt. Regards Hank From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank williams Sent: Tuesday, July 11, 2006 4:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Unknown FDS error I get the below error when trying to make a remoteObject call. It comes up on the server side in the console. Essentially flex is refusing to responding to the remote query and this is the result. #2099: The loading object is not sufficiently loaded to provide this information. Any clues? Hank __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] HTTPS and Remote passwords
Load your SWF from HTTPS. Ensure your channel-definition is correct (i.e. using SecureAMFEndpoint and SecureAMFChannel classes in the config and ensure https is in the endpoint url). Ensure the id of this channel is in the list of channels for your destination. Ensure you're compiling against the new configuration. Beyond this, we might need to talk off list about getting better access to your app/config/code to see what's wrong. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, July 13, 2006 12:17 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] HTTPS and Remote passwords On Thursday 13 July 2006 15:38, Cathy Reilly wrote: class=flex.messaging.endpoints.AMFEndpoint - class=flex.messaging.endpoints.SecureAMFEndpoint Ah ha, good catch, I'd only changed the definition class. Nothing changes after I recompile though. Oddly, if I load the SWF not over https, it appears to work, but doesn't return anything, and eventualy Apache closes the connection: [Thu Jul 13 17:13:01 2006] [info] (70007)The timeout specified has expired: SSL input filter read failed. Loading the SWF over https, I get the same 'destination not accessible over channel' -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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 Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/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/
RE: [flexcoders] Re: Loading WSDL using Flex 2.0 Data Services
It seems youre using the proxy service through FDS but relying on the DefaultHTTP destination (since a destination was not specified). Have you setup the allowed URL patterns in the corresponding /WEB-INF/flex/proxy-config.xml file for the DefaultHTTP destination? Have you looked at the channels that are configured for this destination? These ids refer to channel-definitions in the top level services configuration file at /WEB-INF/flex/services-config.xml. Each channel-definition defines an endpoint url. This information is compiled into the SWF when you specify the services=your_path_to_the_services_config_file command line argument for the MXML compiler. If the endpoint url contains a {context.root} token you need to also specify the context-root=/yourcontextroot command line argument (or replace this token with the known context root of the deployed web application hosting the FDS message broker and thus the channel endpoint(s)). Finally, if youre using the proxy you do not need to have a crossdomain.xml file on the server hosting your WSDL, however depending on where youre hosting your SWF you may need a crossdomain.xml file to contact the proxy service (i.e. based on the channel endpoint URL). Have you considered all of this? Pete From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of efeminella Sent: Friday, July 14, 2006 11:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Loading WSDL using Flex 2.0 Data Services Here is the mxml. I can not display the url to the wsdl however. Hope this helps: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml creationComplete=this.initBindingHandler() layout=vertical backgroundColor=#00 backgroundGradientColors=[#00, #00] mx:Script ![CDATA[ import com.bindings.managers.BindingHandler; [Bindable] public var bindingHandler:BindingHandler; public function initBindingHandler():void { this.bindingHandler = new BindingHandler(this.wsdl); this.bindingHandler.setUI(this.textRuleComboBox, this.textRuleTextArea, this.bindingsDataGrid, this.xmlrpcTextArea, this.selectedTextRuleLabel); this.bindingHandler.loadDataProvider(); } ]] /mx:Script mx:WebService id=wsdl wsdl=http://?wsdl fault=e.show(event.fault.toString()) useProxy=true showBusyCursor=true mx:operation name=getTextRule result=this.bindingHandler.setSelectedTextRule(event.result.ruleText); mx:request payload{this.bindingHandler.selectedTextRuleUqName}/payload /mx:request /mx:operation /mx:WebService --- In [EMAIL PROTECTED]ups.com, efeminella efeminella@... wrote: Hey Carson, I can load the wsdl locally and call methods on the wsdl successfully when not using the Flex 2 Data Services. But once I attempt to run the wsdl in a Flex 2.0 App using the Flex 2 Data Services I get the following security error when attempting to load or call a method on the wsdl: [RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL I also tried adding a crossdomain.xml policy file to the root of the server that is hosting the wsdl with no success. Is their something I have to edit in the whitepapers, etc. Thanks in advance, Eric Feminella www.enterrasolutions.com [EMAIL PROTECTED].. --- In [EMAIL PROTECTED]ups.com, Carson Hager carson.hager@ wrote: If you can post your WebService MXML or ActionScript in use to invoke the web service as well as the URL that you are using in the browser to run your Flex application, we can point you in the right direction. You may or may not need a crossdomain.xml file. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com/ Email: carson.hager@ Office: 866-CYNERGY Mobile: 1.703.489.6466 From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of efeminella Sent: Thursday, July 13, 2006 12:34 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Loading WSDL using Flex 2.0 Data Services I am running a Flex 2.0 Application on JRUN and I continue to recieve the following error when attempting to load a wsdl: Error loading WSDL: [RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL I am not sure what i need to do in order to load the wsdl... crossdomain-policy.xml etc. Any advice would be greatly appreciated. Thanks in advance, Eric Feminella __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
RE: [flexcoders] Can anyone explain how to load a wsdl in flex 2.0 using Flex 2 Data Services
Did you read the online documentation for Flex Data Services 2? Did you see these pages? http://livedocs.macromedia.com/flex/2/docs/1162.html http://livedocs.macromedia.com/flex/2/docs/1163.html http://livedocs.macromedia.com/flex/2/docs/1164.html From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of efeminella Sent: Friday, July 14, 2006 1:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can anyone explain how to load a wsdl in flex 2.0 using Flex 2 Data Services Can anyone explain how to load a wsdl in flex 2.0 using Flex 2 Data Services? How do I set up a proxy for the srvice, and do I need to set up anything else? Thanks, Eric __._,_.___ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] RemoteObject AND TypeError: Error #1034
What endpoint are you contacting with RemoteObject an FDS 2.0 endpoint? From that error Id have to guess youre trying to contact an old endpoint that isnt returning the new message types as expected by the mx.messaging.channels.AMFChannel (the default channel for mx:RemoteObject). From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of maikelsibbald Sent: Wednesday, July 19, 2006 6:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RemoteObject AND TypeError: Error #1034 Can anybody help me with the following. TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to mx.messaging.messages.ErrorMessage. When I used it in Flex 1.5 it was working. Can anybody tell me what thos error means? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] RemoteObjects - ActionScript parameters
You can just programmatically create a ChannelSet that contains one or more Channel implementations, such as mx.messaging.channels.AMFChannel, that are configured to contact your ColdFusion endpoint (that has the update). Or, if you want to use the MXML API, you can set a fully qualified URL for the endpoint attribute on mx:RemoteObject and it will use a default AMFChannel to communicate with ColdFusion (with the update). Pete From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mike Anderson Sent: Wednesday, July 19, 2006 1:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RemoteObjects - ActionScript parameters Hello All, I am finally getting time to dive into my Flex 2.0 programming, and RemoteObjects are at the top of my list. I simply don't have the funds for FDS, so I just need to master the basic built-in down and dirty methods of doing basic Remoting inside of Flex 2.0. Coming from the Flash world, I was able to directly code my Remoting parameters with the address of the Remoting server - i.e. http://www.abc.com/flashservices/gateway - and then specify the service name. It looks like in Flex, you can't directly do that in code - you must reference a pre-existing service that exists in some config.xml file on the server side. (if I correctly understood the documentation) Could any of you take a moment, and explain to me how to perform this action? I guess I am asking 2 questions: 1) Is it possible to directly reference the Remoting Server addy, via my Flex code? 2) If I can't do #1, which file (and where is it located on the server) do I need to edit, in order to give my Flex App the ability to make Remoting calls? Thanks SO much to all of you - I truly appreciate your time on this topic. Mike :) P.S. I did update my ColdFusion Server, using the latest patch from Adobe. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] clean up on aisle three - formatting request for Adobe
The convention is 4 spaces for an indent, tabs are converted to 4 spaces. I imagine everyone uses fixed-width fonts and Eclipse doesnt show whitespace characters (that I know of, to-date) so code formatting like this must have just slipped through the cracks (in my experience this is not unusual for large source bases). FWIW, in the past Ive heard arguments of not doing such clean-ups as it complicates change history, however modern source control systems have the ability to do diffs ignoring whitespace so this point is somewhat moot. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan Troglodytes Sent: Friday, July 21, 2006 12:53 PM To: flexcoders Subject: [flexcoders] clean up on aisle three - formatting request for Adobe At some point, it would be nice if someone could go through the various AS files in the SDK and standardize on using space for indent or tabs for indent - not both. This is especially bad because it appears some coders there use proportional fonts (sacrilege!). Anyone doing that has no business using spaces to indent. XD For example, here's what I see using fixed width font and two space tabs (DataGrid.as): override protected function mouseOverHandler(event:MouseEvent):void { if (movingColumn) return; var r:IListItemRenderer; if (enabled sortableColumns showHeaders listItems.length !isPressed) { s = Sprite(listContent.getChildByName(sortArrowHitArea)); if (event.target != s) r = mouseEventToItemRenderer(event); var n:int = listItems[0].length; for (var i:int = 0; i n; i++) { if (!r s == event.target visibleColumns[i].colNum == sortIndex) { r = listItems[0][i]; } if (r == listItems[0][i]) { if (visibleColumns[i].sortable) { var s:Sprite = Sprite( selectionLayer.getChildByName(headerSelection)); if (!s) { s = new FlexSprite(); s.name = headerSelection; selectionLayer.addChild(s); } var g:Graphics = s.graphics; g.clear (); g.beginFill(getStyle(rollOverColor)); g.drawRect(0, 0, visibleColumns[i].width, rowInfo[0].height - 0.5); g.endFill(); s.x = r.x; s.y = rowInfo[0].y; } return; } } } lastItemDown = null; super.mouseOverHandler(event); } OUCH. -- Jason __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: AMF serialization of floats (REPOST)
Mike, can you send me a clear and simple test case containing Java and AS source as an example of the issue? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike_Robinson_98 Sent: Friday, July 21, 2006 5:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AMF serialization of floats (REPOST) Dave, thanks for your response. I'm not sure what exact number type you have in mind (Integer?BigDecimal?). The data is decimal data, no getting around that. There don't seem to many choices as far as what data type to use. What do flex programmers do in this situation when they want to serialize currency values, such as item prices which have 2 decimal precision? Convert to a String first? It seems to me that it boils down to one thing - the data will have to be manipulated in *some* way once it has been reconstituted on the client side. This manipulation might be converting the String back to a Number, rounding the Number to the desired precision, or any of several other methods. None of which, to me, are very desirable. --- In [EMAIL PROTECTED]ups.com, Dave Wolf [EMAIL PROTECTED]. wrote: Don't use floats. wink Seriously however, floats are inexact numeric types. They're not going to have a fixed precision in general and this is especially true when they are marshalled across languages. Can you use an exact numeric type instead? -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED]. Office: 866-CYNERGY --- In [EMAIL PROTECTED]ups.com, Mike_Robinson_98 mike_robinson_98@ wrote: My original post seems to have gotten removed, so I am posting again with hopes someone has experience with this issue. I am transfering float values from Java DTOs to corresponding AS objects using both FDS and remote objects. The Java float values have a precision of 4 decimal places (verified before serialization e.g. 0.4398) yet when they are created in AS they have 16 decimal places with values extending throughout the 16 digits (e.g. 0.4398283772047382). I suppose I can round the values when I receive them at the client, but can someone tell me if there's a better way to insure the destination values are the same as the source? Thanks, Mike __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Messaging Services deserialization
Is the client throwing an error? Any chance youre trying to cast a result but do not have that ActionScript type mapped to the Java type? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Riddle Sent: Friday, July 21, 2006 3:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Messaging Services deserialization Im sending a jms message to the flex client, but my flex client cant deserialize the message. The event.message.body is null. This only happens when I send a simple user defined POJO (example, instance of a Person). I can send an array of strings with no problem, but it doesnt like it when I send the Person. I have my configuration set up to ObjectMessage. Allen Riddle Sofware Development x3217 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Flex AMFPHP and VOs
Im assuming Flex 2 and ActionScript 3.0. Have you ensured that the client has that type linked in to the SWF (one does so by making a reference to the type somewhere in the code either in a variable type or a function signature etc.)? Have you used [RemoteClass(alias=xyz)] metadata on your ActionScript class? If not, are you using the raw flash.net.registerClassAlias API directly? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Oriol Gual Sent: Friday, July 21, 2006 6:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex AMFPHP and VOs Hi, I've been using Flex and AMFPHP for a while, but there's one thing that is driving me nuts: class mapping. Has anyone mapped correctly a VO from Flex to PHP with AMFPHP or viceversa? I've tried several ways, but I all I get are plain objects. Any help would be very much appreciated, especially a working example. Oriol Gual. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: AMF serialization of floats (REPOST)
As a work around for now, try using double instead of float. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike_Robinson_98 Sent: Friday, July 21, 2006 5:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AMF serialization of floats (REPOST) Dave, thanks for your response. I'm not sure what exact number type you have in mind (Integer?BigDecimal?). The data is decimal data, no getting around that. There don't seem to many choices as far as what data type to use. What do flex programmers do in this situation when they want to serialize currency values, such as item prices which have 2 decimal precision? Convert to a String first? It seems to me that it boils down to one thing - the data will have to be manipulated in *some* way once it has been reconstituted on the client side. This manipulation might be converting the String back to a Number, rounding the Number to the desired precision, or any of several other methods. None of which, to me, are very desirable. --- In [EMAIL PROTECTED]ups.com, Dave Wolf [EMAIL PROTECTED]. wrote: Don't use floats. wink Seriously however, floats are inexact numeric types. They're not going to have a fixed precision in general and this is especially true when they are marshalled across languages. Can you use an exact numeric type instead? -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED]. Office: 866-CYNERGY --- In [EMAIL PROTECTED]ups.com, Mike_Robinson_98 mike_robinson_98@ wrote: My original post seems to have gotten removed, so I am posting again with hopes someone has experience with this issue. I am transfering float values from Java DTOs to corresponding AS objects using both FDS and remote objects. The Java float values have a precision of 4 decimal places (verified before serialization e.g. 0.4398) yet when they are created in AS they have 16 decimal places with values extending throughout the 16 digits (e.g. 0.4398283772047382). I suppose I can round the values when I receive them at the client, but can someone tell me if there's a better way to insure the destination values are the same as the source? Thanks, Mike __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] HTTPS and status codes
Do a search for problems with HTTPS responses containing Pragma,no-cache headers and Expires headers with a time set in the past and MSIE (it has been discussed on this list before too)... to sniff HTTPS requests consider using Paros Proxy with MSIE on the client to see the actual headers being returned. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of riskysevenSent: Saturday, November 04, 2006 10:32 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] HTTPS and status codes Is there a way to get the HTTP status code out of the HTTPStatusEvent when making an HTTPS call? Or for that matter, is there any way to display the status code from an HTTPS call w/o using Data Services? We are making a simple Flex2/AS3 HTTPS call out of IE6 which fails for an unknown reason. It works in IE6 using HTTP, in Firefox using HTTP or HTTPS, and we can bring the pagae up in HTTPS in IE6 if we just enter the URL in the browser. Any ideas? Thanks. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___