below is the source code of swf:
<mx:RemoteObject
id="authenticationRemoteService"
destination="authentication-remoteobject"
showBusyCursor="true"
result="result( event );"
fault="fault( event );">
</mx:RemoteObject>
public function getUserData():void{
authenticationRemoteService.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.MessageSend"
faultDetail="Channel.Connect.Failed error
NetConnection.Call.BadVersion: : url: 'http://localhost:9444/life-
flex/messagebroker/amf'"]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::fa
ultHandler()
[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\AbstractInvoker.as:195]
at mx.rpc::Responder/fault()
[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\Responder.as:56]
at mx.rpc::AsyncRequest/fault()
[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\AsyncRequest.as:110]
at mx.messaging::ChannelSet/faultPendingSends()
[E:\dev\flex_201_borneo\sdk\frameworks\mx\messaging\ChannelSet.as:1113
]
at mx.messaging::ChannelSet/channelFaultHandler()
[E:\dev\flex_201_borneo\sdk\frameworks\mx\messaging\ChannelSet.as:851]
at flash.events::EventDispatcher/dispatchEventFunction()
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.