Skip navigation
Currently Being Moderated

Flex WebService POST changes https to http

Apr 4, 2013 6:47 AM

Tags: #flex #https #wsdl #crossdomain.xml #web_service

Hi all,


I have a Flex app which needs to connect to an https web service. The web service WSDL URL is given as where SSL-offloading is used.

The Flex app resides at the same server the web service resides.


The web service in defined in the mxml as


<s:WebService id="webService" wsdl="">


The crossdomain.xml file at the server's root is


<?xml version="1.0"?> 
<!DOCTYPE cross-domain-policy SYSTEM /xml/dtds/cross-domain-policy.dtd> 
<site-control permitted-cross-domain-policies="all"/> 
<allow-access-from domain="*" to-ports="*" /> 
<allow-http-request-headers-from domain="*" headers="*"/> 



If the swf is loaded from the HTTPS address, crossdomain.xml will not be requested by the swf when the page loads (web service initializes), but when web service is called a POST to the http equivalent is attempted instead of https.

i.e. using Firebug, I see that Flex is performing a POST to HTTP://, which should have been HTTPS. Why does Flex change this to http while declared as https?


On the other hand, if the swf is loaded from HTTP at the same server, crossdomain.xml will be downloaded, but the Flash debugger will throw a “Channel.Security.Error” and the app crashes when the web service tries to initialize.


Any help resolving this issue is highly appreciated.


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points