Trace now shows it is using the secure channel.
Having both secure and unsecure channels in the ColdFusion destination
appears to working correctly. I've been monitoring both types of 
requests and all is working well now. But, I plan to keep an eye on it.

I appreciate all the help.

Don




--- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
> If you use Flex Builder in debug mode then the Console panel will show
> trace output. However, if you're using a debug Flash Player plugin in a
> browser (or the debug standalone Flash Player), then so long as you have
> setup a mm.cfg file in your user directory, the flashlog.txt file will
> appear in the predefined log location. For windows, mm.cfg would likely
> need to be setup in 
> 
> C:\Documents and Settings\yourusername\mm.cfg
> 
> ...and specify:
> 
> ErrorReportingEnable=1
> TraceOutputFileEnable=1
> 
> Then trace output will appear in:
> 
> C:\Documents and Settings\yourusername\Application Data\Macromedia\Flash
> Player\Logs\flashlog.txt
> 
> On windows I use tail.exe from cygwin to monitor the file.
> 
> 
> -----Original Message-----
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of nasawebguy
> Sent: Thursday, January 03, 2008 10:34 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Flex SSL over AMF with ColdFusion
> services-config.xml
> 
> Thanks Peter. My assumption was that if I'm loading via https, the
> secure channel would be used. If not, the unsecure channel would be
> used. 
> 
> I can try the TraceTarget, but where is the flashlog located?
> 
> Don
> 
> --- In flexcoders@yahoogroups.com, "Peter Farland" <pfarland@> wrote:
> >
> > 
> > If you're loading your SWF via HTTPS then you should be able to make 
> > secure connections from the Flash Player. As for the right channel 
> > being automatically selected, it depends on whether channel failover 
> > happens correctly. I didn't see a destination configuration below, but
> 
> > if the <channels> snippet represents the list of channels for your 
> > destination, then I believe it will try to connect using the 
> > SecureAMFChannel first and fall back to the AMFChannel on failing. 
> > While this might be useful in development, I wouldn't suggest it for 
> > deployment - especially if you really do have a requirement to connect
> to a secure endpoint.
> > 
> > Can you add <mx:TraceTarget /> to your MXML, recompile, and then debug
> 
> > or look at flashlog.txt for more information about what might be going
> 
> > wrong in the channel connection phase?
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> > -----Original Message-----
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> > On Behalf Of nasawebguy
> > Sent: Wednesday, January 02, 2008 8:45 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Flex SSL over AMF with ColdFusion 
> > services-config.xml
> > 
> > When I use smartsniff/Charles, my remoteObject content is not 
> > encrypted/https/port 443. IE/Firefox shows SSL to the user, eventhough
> 
> > the data is NOT actually encrypted over AMF!
> > 
> > Below is my services-config.xml file and remoteObject code snips.
> > 
> > I've been researching this all day with no clear solution. As I 
> > understand it so far, I should be able to use two channels in my 
> > ColdFusion destination and the correct channel would be used 
> > automatically. Not the case. I need https pages to use SSL and http 
> > pages to not.
> > 
> > I tried splitting them up into two destinations, "ColdFusion" and 
> > "ColdFusionSecure", in the same services-config, but I keep getting 
> > errors that ColdFusionSecure cannot be found, when it is used at the 
> > remoteObject destination.
> >   
> > I'd appreciate any suggestions.
> > 
> > Thanks,
> > Don
> > 
> > <channels>
> > <channel ref="my-secure-cfamf"/>
> > <channel ref="my-cfamf"/>
> > </channels>
> > 
> > 
> > <channel-definition id="my-cfamf"
> > class="mx.messaging.channels.AMFChannel">
> >             <endpoint
> > uri="http://{server.name}:{server.port}/flex2gateway/";
> > class="flex.messaging.endpoints.AMFEndpoint"/>
> >             
> >                     <properties>
> >                 <polling-enabled>false</polling-enabled>
> >                 <serialization>
> >                     <instantiate-types>false</instantiate-types>
> >                 </serialization>
> >             </properties>
> >         </channel-definition>
> > 
> > <channel-definition id="my-secure-cfamf"
> > class="mx.messaging.channels.SecureAMFChannel">
> >             <endpoint
> > uri="https://{server.name}:{server.port}/flex2gateway/";
> > class="flex.messaging.endpoints.SecureAMFEndpoint"/>
> >             
> >                     <properties>
> >     
> > <add-no-cache-headers>false</add-no-cache-headers>
> >                 <polling-enabled>false</polling-enabled>
> >                 <serialization>
> >                     <instantiate-types>false</instantiate-types>
> >                 </serialization>
> >             </properties>
> >         </channel-definition>
> > 
> > 
> > <mx:RemoteObject 
> >             id="cfdata" showBusyCursor="true" 
> >             destination="ColdFusion" source="flex.secure.send">
> >             <mx:method name="sendUpdate" 
> >                     result="sendUpdate_Result(event)"
> >                     fault="sendUpdate_Fault(event)" />
> >     </mx:RemoteObject>
> > 
> > 
> > 
> > --
> > 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
>


Reply via email to