Communication between flex and servers using HTTPS protocol

Source: Internet
Author: User

1. HTTPS configuration is not described here.

2. HTTPS is a secure authentication protocol, so secureamfchannel must be used. That is

<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>

3. Open the secureamfchannel in the remoting-config.xml and proxy-config.xml files.

<Default-channels>
<Channel ref = "My-AMF"/>

<Channel ref = "My-secure-AMF"/>

</Default-channels>

4. In principle, this configuration is fine. However, in practice, it is found that authentication is not easy to use. Therefore, in order to successfully run in the authentication environment, when compiling flex in the authentication environment, disable the common channel first. Modify the configuration file in step 3 as follows and then edit it:

<Default-channels>

<! -- <Channel ref = "My-AMF"/> -->

<Channel ref = "My-secure-AMF"/>

</Default-channels>

5. Flex project configuration. Project properties-> flex server: Root URL-> https: // localhost :( authentication port )/...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.