PDA

View Full Version : crossdomain.xml on BEA


seguetester
09-29-2008, 05:57 PM
I have a Flex application running in a Portlet in BEA WebLogic Enterprise Portal running on one server (server A) and WebLogic webservices running on another server (Server B). I assume that the crossdomain.xml file should look something like this:

<?xml version="1.0" encoding="UTF-8"?>
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>

I am getting the following error message when I try to call the webservice on Server B from the Flex app running in one of my Portlets on server A:

[RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://10.0.0.124:7001/MeterDataServices?WSDL)"
at mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\ws dl\WSDLLoader.as:98]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Ab stractInvoker.as:168
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Ab stractInvoker.as:220
at mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Re sponder.as:49]
at mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\As yncRequest.as:103]
at DirectHTTPMessageResponder/securityErrorHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messag ing\channels\DirectHTTPChannel.as:368]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()

The Portlet makes a call to the webservice and I have the crossdomain.xml file in the WebContent folder on Server B.

So, I guess my question is: Do I have the crossdomain file in the wrong place? Should it be in the src/package folder that contains the webservices on Server B? Should it be somewhere else?

Thanks in advance,

Michael

takiz
12-12-2008, 04:34 AM
help! how did i put the crossdomain.xml to the ROOT of weblogic server?
coz when it doesn't work for app in weblogic :(