I use the flex builder 3 console, so I'll try that.

Do you know if there is a way to specify which CF channel I want to
force the RO to use? I tried the ro ChannelSet property, but that
didn't work or at least it didn't like me trying to set it to
"my-secure-cfamf".

<channels>
<channel ref="my-secure-cfamf"/>
<channel ref="my-cfamf"/>
</channels>

For this particular app, I just have one RO that I want to use SSL for
a credit card form submission.


--- In [email protected], "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: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of nasawebguy
> Sent: Thursday, January 03, 2008 10:34 AM
> To: [email protected]
> 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 [email protected], "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: [email protected] [mailto:[EMAIL PROTECTED] 
> > On Behalf Of nasawebguy
> > Sent: Wednesday, January 02, 2008 8:45 PM
> > To: [email protected]
> > 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