Estoy usando FLEX 3, llamando un WS, en un url tipo: http://test.midominio.com/Services/MiWebService.asmx?WSDL. Cuando compilo mi swf local, en debug, tengo este error:
Código :
Warning: Domain http://test.midominio.com/ does not specify a meta-policy. Applying default meta-policy \'all\'. This configuration is deprecated. See http://www.adobe.com/go/strict_policy_files to fix this problem. Error: Request for resource at http://test.midominio.com/Services/MembershipService.asmx by requestor from http://localhost/Catalogs-debug/index.swf is denied due to lack of policy file permissions. *** Security Sandbox Violation *** Connection to http://test.midominio.com/Services/MembershipService.asmx halted - not permitted from http://localhost/Catalogs-debug/index.swf [RPC Fault faultString=\"Security error accessing url\" faultCode=\"Channel.Security.Error\" faultDetail=\"Destination: DefaultHTTP\"] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\\dev\\3.0.x\\frameworks\\projects\\rpc\\src\\mx\\rpc\\AbstractInvoker.as:216] at mx.rpc::Responder/fault()[E:\\dev\\3.0.x\\frameworks\\projects\\rpc\\src\\mx\\rpc\\Responder.as:49] at mx.rpc::AsyncRequest/fault()[E:\\dev\\3.0.x\\frameworks\\projects\\rpc\\src\\mx\\rpc\\AsyncRequest.as:103] at DirectHTTPMessageResponder/securityErrorHandler()[E:\\dev\\3.0.x\\frameworks\\projects\\rpc\\src\\mx\\messaging\\channels\\DirectHTTPChannel.as:368] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/redirectEvent()
Tengo creado un crossdomain.xml en ese url. Probe tambien incluirlo en la carpeta /Services/, tambien en el domain root (http://midominio.com/) y tampoco... Alguna idea??
Mi crossdomain es asi:
Código :
<?xml version=\"1.0\"?> <!DOCTYPE cross-domain-policy SYSTEM \"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd\"> <cross-domain-policy> <allow-access-from domain=\"*\" /> </cross-domain-policy>
Desde ya muchas gracias![/code]
