Check the outgoing HTTP calls using "Live HTTP headers" for Firefox. You 
probably have a redirection from https to http at some point. I remember having 
had a similar issue and it had to be fixed server side (can't remember the fix 
though).


--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Mon, 8/11/08, loveewind <[EMAIL PROTECTED]> wrote:
From: loveewind <[EMAIL PROTECTED]>
Subject: [flexcoders] SSL Https communication between swf and data service / 
life cycle is failed
To: [email protected]
Date: Monday, August 11, 2008, 9:26 AM










    
            below is the source code of swf:

<mx:RemoteObject

        id="authenticationR emoteService"

        destination= "authentication- remoteobject"

        showBusyCursor= "true"

        result="result( event );"

        fault="fault( event );">

 </mx:RemoteObject>

public function getUserData( ):void{

                authenticationRemot eService. getUserData( );

}

public function result(data: Object):void{

                .....

                }

public function fault(info:Object) :void{

                        mx.controls. Alert.show( info);

                }



when I open https://localhost: 9444/life- flex/Login. swf and click the 

event to call getUserData( ) method, fault method throws the following 

exception:



[INFO]: [RPC Fault faultString= "Send failed" 

faultCode="Client. Error.MessageSen d" 

faultDetail= "Channel. Connect.Failed error 

NetConnection. Call.BadVersion: : url: 'http://localhost: 9444/life-

flex/messagebroker/ amf'"]

        at 

mx.rpc::AbstractInv oker/http://www.adobe. com/2006/ flex/mx/internal ::fa

ultHandler()

[E:\dev\flex_ 201_borneo\ sdk\frameworks\ mx\rpc\AbstractI nvoker.as: 195]

        at mx.rpc::Responder/ fault()

[E:\dev\flex_ 201_borneo\ sdk\frameworks\ mx\rpc\Responder .as:56]

        at mx.rpc::AsyncReques t/fault()

[E:\dev\flex_ 201_borneo\ sdk\frameworks\ mx\rpc\AsyncRequ est.as:110]

        at mx.messaging: :ChannelSet/ faultPendingSend s()

[E:\dev\flex_ 201_borneo\ sdk\frameworks\ mx\messaging\ ChannelSet. as:1113

]

        at mx.messaging: :ChannelSet/ channelFaultHand ler()

[E:\dev\flex_ 201_borneo\ sdk\frameworks\ mx\messaging\ ChannelSet. as:851]

        at flash.events: :EventDispatcher /dispatchEventFu nction()

        at flash.events: :EventDispatcher /dispatchEvent( )

        at mx.messaging: :Channel/ connectFailed( )

[E:\dev\flex_ 201_borneo\ sdk\frameworks\ mx\messaging\ Channel.as: 928]

        at mx.messaging. channels: :PollingChannel/ connectFailed( )

[E:\dev\flex_ 201_borneo\ sdk\frameworks\ mx\messaging\ channels\ PollingCh

annel.as:255]

        at mx.messaging. channels: :AMFChannel/ statusHandler( )

[E:\dev\flex_ 201_borneo\ sdk\frameworks\ mx\messaging\ channels\ AMFChanne

l.as:346]



Even though I visit application with https link , SWF still use http 

protocol to call AMF gateway.

Who has any experience on this issue?

Thanks.




      

    
    
        
         
        
        








        


        
        


      

Reply via email to