[flexcoders] Re: [FDS] DataGrid not updated when ArrayCollection is updated from sync
Excellent. Glad you got to the bottom of it! I had asked a CF person to try to help you out but apparently they aren't around. Sorry about that! --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Hi Tom, Problem solved. The problem was related when assigning values to the CFC VO. The UID field (and all other numeric fields) was of type numeric and I was assigning a string to it. I was expecting that the value was converted to a numeric type in CF but the cf adapter was sending X.0 to the client. Flash was getting the value as X so it couldn't match and update the correct row. Using cfset myVO.setUID( javacast( `int', myWebService.result.getUID() ) ) solved the problem. Thanks, João Fernandes _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Ruggles Sent: quinta-feira, 12 de Outubro de 2006 16:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: [FDS] DataGrid not updated when ArrayCollection is updated from sync Hi João, I am unable to reproduce this behavior using assorted methods of inserting the new item. Can you provide more details on exactly how you are inserting, what your object looks like, how your destination is configured, etc? I paid close attention to this specific scenario throughout the 2.0 development cycle so I am very curious how to reproduce it. Thank you. Tom Ruggles FDS QA --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, João Fernandes joaopedromartinsfernandes@ wrote: Hi there, I have a datagrid binded to an ArrayCollection which is filled by a DS destination. When I add an item and commit, my datagrid ID column doesn't get updated but if I check the value in my ArrayCollection, the ID property is correctly updated. If I sort my datagrid, the new value shows up. This doesn't happen to clients who are connected to the same destination. They see the right behaviour. Any thoughts? Thanks, João Fernandes -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: WSDL Security?
Hi Jamie, You do have the steps right for deployment. As for securing the resource the options available would be to either: - add security constraints to the destination. This would require you to either have users log in or hardcode credentials in the app (which is obviously no help in case of decompiling). - add J2EE web app security to your web app to secure the entire thing or any HTTP/AMF channels that are allowed to acces the destination Unfortunately there is no mechanism to automatically detect friendly vs. rogue swfs. But needing to know the channel and destination name are a slight deterrant. HTH, Tom --- In flexcoders@yahoogroups.com, Jamie O [EMAIL PROTECTED] wrote: Hello, I 'believe' what I describe below is accurate, just looking for confirmation. We have a production WSDL that is called by a number of other non-Flash/Flex apps. We would like to access it via Flex, but not make the WSL url visible in code - thereby succeptible to decompiled .swf access and non-company uses. In order to ensure this is the case, I believe we must do the following: 1) Install Flex Data Services and create a named proxy service destination with the wsdl url. 2) Use destination=wsdlDestination and useProxy=true in HTTPService Is there an inherrent control within FDS that prevents .swf from other (malicious) sites from using our proxy? I guess conceptually because it isn't served from there it would never know the connection to refer back to other than the destination name which is not a fully qualified URL. Wondering if we would also need a crossdomain.xml file to inhibit non-company .swf from accessing? Thx, Jamie -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: [FDS] DataGrid not updated when ArrayCollection is updated from sync
Hi João, I am unable to reproduce this behavior using assorted methods of inserting the new item. Can you provide more details on exactly how you are inserting, what your object looks like, how your destination is configured, etc? I paid close attention to this specific scenario throughout the 2.0 development cycle so I am very curious how to reproduce it. Thank you. Tom Ruggles FDS QA --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Hi there, I have a datagrid binded to an ArrayCollection which is filled by a DS destination. When I add an item and commit, my datagrid ID column doesn't get updated but if I check the value in my ArrayCollection, the ID property is correctly updated. If I sort my datagrid, the new value shows up. This doesn't happen to clients who are connected to the same destination. They see the right behaviour. Any thoughts? Thanks, João Fernandes -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 2 - WARNING: Cannot set header. Response already committed.
Hi Libby, We are unaware of any cases of Flex causing this warning. What are you doing when it occurs? Thanks, Tom Ruggles FDS QA --- In flexcoders@yahoogroups.com, Libby [EMAIL PROTECTED] wrote: I just installed Flex 2 on WebSphere 6. While doing the lessons in the introductory tutorial, I keep see the message above in the server log. Has anyone else see this, what does it mean, and how do I get rid of it? Thanks, Libby -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 2 - WARNING: Cannot set header. Response already committed.
What about if you request the compiled swf directly? Does your app make HTTPService or WebService requests? --- In flexcoders@yahoogroups.com, Dustin Mercer [EMAIL PROTECTED] wrote: I am working on websphere 6 and get this message as well. I get this whenever I call the mxml application (whether it's a fresh compile or cached version). Does flex gzip the swf before it sends it out? I have seen this exact same message when using gzip. Just a thought. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Ruggles Sent: Thursday, October 12, 2006 9:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 2 - WARNING: Cannot set header. Response already committed. Hi Libby, We are unaware of any cases of Flex causing this warning. What are you doing when it occurs? Thanks, Tom Ruggles FDS QA --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Libby libbychantel@ wrote: I just installed Flex 2 on WebSphere 6. While doing the lessons in the introductory tutorial, I keep see the message above in the server log. Has anyone else see this, what does it mean, and how do I get rid of it? Thanks, Libby -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: RemoteObject only accesses, cannot set
I see that you had application scope listed in your destination. Did you restart your web app after adding this? I was unable to reproduce your issue using your RO, destination and MXML on the FDS 2 GA build. Tom Ruggles FDS QA --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: It sounds like you are using a request scoped remote object on the server side so for each invocation, it creates a new instance. Add scopeapplication/scope inside of your destination tag's properties tag. The other option is session which is one per flex session... typically one per client. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of klumikaze Sent: Thursday, October 12, 2006 10:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RemoteObject only accesses, cannot set It would appear I somehow figured this out on my own... I have a feeling it's that I needed to implement the Remote class (java.rmi.Remote)? Am I right? Thanks, hope this helps somebody else that's stumped on RemoteObjects. Brian --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Brian Dunphy briandunphy@ wrote: Hello, Just starting to use RemoteObjects, but for some reason my RemoteObject can only retrieve information, it can't use any of the mutator methods in my class. My Java class is as follows: package com.testing.pojos; import java.io.Serializable; public class HelloWorldMessage implements Serializable { private String message; public HelloWorldMessage() { this.message = Hello World; } public String getMessage() { return message; } public void setMessage(String newMessage) { this.message = newMessage; } } My RemoteObject in MXML is as follows: mx:RemoteObject destination=com.testing.pojos.HelloWorldMessage id=roHelloWorld mx:method name=getMessage result=showGetMessage(event) fault=showFault(event)/ mx:method name=setMessage fault=showFault(event) / /mx:RemoteObject My destination definition is as follows: destination id=com.testing.pojos.HelloWorldMessage properties sourcecom.testing.pojos.HelloWorldMessage/source scopeapplication/scope /properties channels channel ref=my-rtmp / /channels /destination I can access the getMessage method just fine (and it returns the appropriate message), however when I call setMessage(new message), it doesn't persist my message, it simply returns the old Hello World! message again. Something I'm doing wrong? Thanks, Brian Dunphy -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Webservice Destination with Basic Authentication
Hi someguy, Based on the traffic that you sent it appears that your WS app server is not blocking access at this point - the error is occuring in your Axis web service rather than at the web container level. And this error is complaining that there is no auth header. Here's my series of educated guesses. - assuming that the contraints are set up properly you may have successfully authenticated at some point as far as the web container is concerned. Subsequently it sees your jsessionid and says, Hey, this guy is already logged in so no need to ask for credentials again. - your web service is assuming that there will always be an auth header. Not true - it will only be sent in response to a challenge from the server. If the server recognizes the authenticated session then there will be no further challenge and therefore no auth header. If you need to do user verification from the service you will need to do manual checking of user info then you'll need to use request.getUserPrincipal(). Tom Ruggles FDS QA --- In flexcoders@yahoogroups.com, Seth Hodgson [EMAIL PROTECTED] wrote: Hi, Have you verified that the server hosting your web service has basic auth configured correctly? Your code looks correct so perhaps when the FDS proxy makes the call against the remote server it isn't being challenged for basic auth credentials? Try requesting your WSDL in a browser and verify that the browser's challenge box pops up. Best, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of someguy7_7 Sent: Wednesday, August 23, 2006 8:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Webservice Destination with Basic Authentication I cannot see the authorization header anywhere in the http dump. Here is some more information on how I am testing. I deployed the fds samples.war and placed my test mxml in the samples application. I added the following definition to samples/WEB-INF/flex/proxy- config.xml. destination id=mytest adapter ref=soap-proxy / properties wsdlhttp://machine/app/webservice/wsdl/wsdl soaphttp://machine/app/services/myService/soap /properties /destination Do I need to add some security constraints to the destination definition? Here is a dump of the request and response. POST /myapp/services/myservice HTTP/1.1 user-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/p lain;q=0.8,image/png,*/*;q=0.5 accept-language: en-us,en;q=0.5 accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 keep-alive: 300 pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-serial-no referer: http://localhost:8080/samples/WSTest.mxml.swf SOAPAction: searchIt Content-Type: text/xml; charset=utf-8 Host: mymachine Cookie: $Version=0; JSESSIONID=034C89B28DEB60ECC77ED6C10141E5A4 Content-Length: 855 ?xml version=1.0 encoding=utf-8?SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;SOAP- ENV:Bodyns0:myParam xmlns:ns0=http://www.server.com/myApi/xsd;ns0:handle1/ns0:handle /ns0:myParam/SOAP-ENV:Body/SOAP-ENV:Envelope HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Wed, 23 Aug 2006 15:05:01 GMT Connection: close ?xml version='1.0' encoding='utf-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:He ader /soapenv:Bodysoapenv:Fault xmlns:axis2=http://www.w3.org/2003/05/soap- envelopefaultcodeaxis2:Sender/faultcode faultstringUnauthorized/faultstringdetailExceptionorg.apache. axis2.AxisFault: Unauthorized; nested exception is: java.lang.Exception: Missing HTTP Basic authentication header#13; --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Wednesday 23 August 2006 04:22, someguy7_7 wrote: I have figured out the destination issue and my request is making it to the webservice but the Authorization header is not being sent. I am calling setRemoteCredentials before setting any params and calling send. Hmm. You've dumped out the HTTP traffic to confirm this ? -- Tom Chiverton Helping to globally envisioneer end-to-end models 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