Flex WebService POST changes https to http


hi all,

 

i have flex app needs connect https web service. web service wsdl url given wsdl-url.company.com ssl-offloading used.

the flex app resides @ same server web service resides.

 

the web service in defined in mxml as

 

<s:webservice id="webservice" wsdl="https://wsdl-url.company.com/service.asmx?wsdl"> 

 

the crossdomain.xml file @ server's root is

 

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

 

 

if swf loaded https address, crossdomain.xml not requested swf when page loads (web service initializes), when web service called post http equivalent attempted instead of https.

i.e. using firebug, see flex performing post http://wsdl-url.company.com/service.asmx, should have been https. why flex change http while declared https?

 

on other hand, if swf loaded http @ same server, crossdomain.xml downloaded, flash debugger throw “channel.security.error” , app crashes when web service tries initialize.

 

any resolving issue highly appreciated.

solution found

for having same issue, problem @ wsdl-endpoint inside project's .fml. though setting service https:// in webservice declaration, wsdl-endpoint generated flash builder http default. setting endpoint correctly https programmatically when app loaded did trick:

webservice.endpointuri = "https://wsdl-url.company.com/service.asmx";


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Please, can some one help me fix this corrupted PSD file?

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support