Reply to topic
Crossdomain.xml file missing. Please post one!
dvpweb


Joined: 13 Mar 2009
Posts: 1
Location: San Francisco
Reply with quote
Hey your WSDL methods work fine. But I am unable to consume them directly in the Flash Player, because of the players basic security restrictions, that prevent loading data served off one domain (wfs) into a swf playing elsewhere.

If a Webservice providers want to allow flash developers the same access to their ws feeds then they need to post a simple policy file (crossdomain.xml) that allows the player to consume the data.

I've already created a test ap that consumes the WSDL in the flash player.

But unfortunately your server doesn't seem to have a crossdomain policy file inplace?

Can you you folks post a crossdomain.xml file at:
http://www.theworldsfastestserver.com/crossdomain.xml

So what is it?

Simply put, a policy file allows the flash player to load data and images from a domain other than the one it's being served from. The policy file is served from the WS provider's domain, allowing them the control of who can access the data.

In this instance, allowing everyone to access the data makes the most sense, so posting a general crossdomain.xml should suffice, also the policy file doesn't change existing server secuirity methods inplace, it just tells the flash player it's a safe feed to consume.

When my flash app 1st calls the wfs ws it checks to see if there is a policy file at the server root. Since it's missing, the player rejects the data, and throws an error.

So the simple fix is posting the file on your server.

Example file (crossdomain.xml)

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>

Place the file on the server root: http://www.theworldsfastestserver.com/crossdomain.xml

Thanks in advance for making this change to your server.
Dan

flash test harness
http://h181103.dragbikehosting.com/demo/bikeserver2.html

Here's some additional information provided by Adobe on creation of the policy file.

http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html

Adobe Staff Presentation and Article on subject:
http://www.senocular.com/pub/baadaug/04-22-08/
brent
HostMySite Tech

Joined: 21 Jul 2007
Posts: 17
Reply with quote
Dan,

I've placed a crossdomain.xml up on theworldsfastestserver.com so you can develop something in Flash. Let us know if you need anything else.
Crossdomain.xml file missing. Please post one!
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic