I am building a Flex (version 2) application on my machine with a 
Tomcat server that is hosting the application, a couple of servlets 
and an Axis2 web service.  The application runs fine if I load it 
from an address starting with http://127.0.0.1:8080.  However, the 
web-service call will fail if I load the exact same application from 
http://localhost:8080.  The gives me a "Security error accessing url" 
Alert.  

I've read in the past that Flash is strict about the interpretations 
of domains, so I'm not surprised by this behavior.  Further, 
I am theorizing this is happening because the WSDL file for the 
service uses the numeric address rather than localhost.  Since that 
is the only usage of the numeric IP address I can find (all the URLs 
I have constructed use localhost).

I have a crossdomain.xml file that is reachable 
at "http://127.0.0.1:8080:8080/crossdomain.xml";.  It's not solving 
the problem.

The crossdomain file has this format:

<cross-domain-policy>
   <allow-access-from domain="*" to-ports="*" secure="false"/>
</cross-domain-policy>

The web service is built using Apache Axis2.  So, its address in the 
WSDL is: http://l27.0.0.1:8080/axis2/services/TestService.

Is there some special location or content to the policy file that I'm 
missing?

Thank you.

Reply via email to