I created an FB4 application that accesses the .NET web service of a partner company. The application works fine in the FB4 development environment, but will not work when published on my server. I canβt figure out how to get past the following error: URL Access Security Error Purpose: DefaultHTTP
It is unlikely that I will get the crossdomain.xml file on my server, so I'm trying to get it to work using a proxy. The .php proxy is in the same directory as swf, and works fine if I use it directly in the browser.
Below is what I have installed:
proxy.php:
<?php
$session = curl_init(trim(urldecode($_GET['url'])));
curl_setopt($session, CURLOPT_HEADER, false);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
$xml = curl_exec($session);
header("Content-Type: text/xml");
echo $xml;
curl_close($session); ?>
code in Flash Builder 4: (I use the Webservice object in FB4)
wsdl = http://mydomain.com/autoben/proxy2.php?url=http://staging.partnerCompany.net/api/v01_00/theservice.asmx?wsdl
- - 10.x
, . , , , flash-.
.
A :.
