Advertisement

08.28.2008 at 06:46AM PDT, ID: 23685401 | Points: 500
[x]
Attachment Details

Flex App doesn't work over HTTPS/SSL when it calls an XML file

Asked by firstheartland in Adobe Flex, Extensible Markup Language (XML), Secure Socket Layer (SSL) & HTTPS

Tags: , , ,

We are currently trying to switch our website so that it must be browsed over SSL/HTTPS.  I have a simple flex application on our website that downloads an XML file and displays the information on a graph.  

Unfortunately, the flex application does not work when we load our website from https.  Rather, the flex app doesn't load correctly and there is just a gray box where the application should be. If I load the page over HTTP, the flex application works.  I tried doing the same with a flex application that did not reference any XML and it worked fine with both HTTP and HTTPS.

Within the MXML, I tried to change the reference to the xml file to begin with HTTPS instead of HTTP.  This did not work.  I have been doing a lot of research via Google and it seems like everyone wants to point me towards the cross-domain file.  I placed the file in the root of my directory and I am attaching the code snippet below. (My Domain is firstheartland.com).

Is there any way to test if the cross-domain file is actually working? Does a change to the file require a IIS restart to take effect. I've been stuck on this problem for months and I don't know what else to do.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
Cross Domain File:
<?xml version="1.0">
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
	<allow-access-from domain="*.firstheartland.com" headers="" secure="true" /> 
</cross-domain-policy>
 
 
Flex Code:
<mx:Application xmlns:fhc="components.*"  xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initApp()" layout="absolute">
 
<mx:HTTPService id="prodHTTP" useProxy="false" showBusyCursor="true"
    	url="https://www......" 
    	resultFormat="e4x" result="handleXML(event);"
/>
 
Loading Advertisement...
 
[+][-]08.29.2008 at 04:12AM PDT, ID: 22344175

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 10:00AM PDT, ID: 22369157

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.11.2008 at 12:25PM PST, ID: 22933895

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628