`
yunzhongxia
  • 浏览: 639953 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Flex使用Https协议

 
阅读更多

1、https是安全认证协议,所以要采用SecureAMFChannel通道。即

 

    

<channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
            <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
     <properties>
             <add-no-cache-headers>false</add-no-cache-headers>
      </properties>
</channel-definition>

 

2、在remoting-config.xml和proxy-config.xml文件中开通SecureAMFChannel通道。  

  

   

<default-channels>
        <channel ref="my-amf"/>

       <channel ref="my-secure-amf"/>
 </default-channels>

 

 

 

1
1
分享到:
评论
1 楼 chenzi 2014-11-04  
一样的代码,两台机器上面,完全不同的报错。。
Flex实现http协议的访问。

相关推荐

Global site tag (gtag.js) - Google Analytics