Currently I have this situation, I have a Flex application and a java webservice application (2 seperate war file) running in a IBM Websphere Application Server (version 8). The Flex application consume the java webservices through the WebService component in the Flex SDK. The client machine browser is able to load and run the Flex application successfully (on Flash Player 10 IE9). However, when a proxy server (IBM HTTPServer) is introduced, a "security error accessing url" is encountered, crossdomain.xml doesn't seem to help, appreciate is someone can help.
Thankyou very much.
Accessing Flex directly on IBM Web Application Server is working
Accessing Flex via a IBM HTTPWeb Server (proxy) is not working
Cross Domain Policy File as below
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<allow-access-from domain="*" secure="false"/>
What is the exact error? Usually it contains information about what URLs were involved. Could it be this issue? http://stackoverflow.com/questions/1979048/flex-4-app-behind-proxy-ser ver-w-auth-fails-to-call-webservice-when-launched-fro
String:Security error accessing url Details:Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://XX.XX.XX.100:9080/myServer/services/My_Svc.port?wsdl) Code:Channel.Security.Error
Verified the wsdl path is able to load in browser too. Thanks.
xx.xx.xx.100 is the IBM Web Application Server (WAS), currently no crossdomain.xml in the WAS, do I need to copy the crossdomain.xml into the WAS as well?
If yes, where is the root of the IBM Web Application Server? Thanks.
The error indicates that Flash is accessing the wsdl via xx.xx.xx.100 and unable to determine security privileges to do so, so I would try putting a crossdomain.xml allowing that at whatever xx.xx.xx.100/crossdomain.xml resolves to. It may also be possible to call loadPolicyFile, but I think sometimes folks have trouble making that call before Flex starts fetching the wsdl.