0 Replies Latest reply on Sep 29, 2008 8:37 AM by seguetester2

    crossdomain.xml on BEA

    seguetester2
      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\pro jects\rpc\src\mx\rpc\AbstractInvoker.as:168
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.0.x\frameworks\project s\rpc\src\mx\rpc\AbstractInvoker.as:220
      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\sr c\mx\messaging\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