You can tell it to load from a specific subdirectory using the
loadPolicyFile API, but the default location is to look for it in the
webroot of a server (so deploying a war with a default context root of
the empty string is one way to achieve that).

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Dominique Bessette - Halsema
Sent: Tuesday, January 08, 2008 4:51 PM
To: [email protected]
Subject: Re: [flexcoders] crossdomain not working with HTTP Request
Error


i understand that, what i dont understand is where exactly the file is
supposed to go, as i said right now it is at
 
http://[host]:[port]/weemc-service/crossdomain.xml
 
which is the web root of that ear file it is trying to access.  so are
you saying i'm supposed to put it in the web root of the server, where
is that or what does that mean?
 
 
 
 
 


 
On 1/8/08, Alex Harui <[EMAIL PROTECTED]> wrote: 

        

        When you run on your local machine, there is no enforcement of
security rules (mainly because there is no server serving the swf and
thus no domain to verify against), but also as a convenience for
development. 

         

        When you deploy to a server, that server becomes the domain for
your SWF.  Any access to a different domain in a url (even the ip
equivalent of the domain) is considered cross-domain and the server
being accessed must grant permission via crossdomain.xml.

         

        
________________________________


        From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Dominique Bessette -
Halsema
        Sent: Tuesday, January 08, 2008 11:09 AM
        To: [email protected]
        Subject: [flexcoders] crossdomain not working with HTTP Request
Error

         

        

        I'm trying to finish this project and i'm running out of time if
anyone has any ideas PLEASE let me know.

         

        I have a flex application that calls my web service through the
wsdl which is located in an ear file

         

        http://{svr8}:port/weemc-service/weemc?wsdl
<http://%7bsvr8%7d:port/weemc-service/weemc?wsdl> 

         

        on my local machine the flex app works when i try to get the
data from the database, but on my production server (which is svr8)  i
get a "security access error".  when i change the url so that i am
viewing the file throught the web server (ie. svr8) and not the ip
address I get a 

         

        [WSDLError faultString="Element "" not resolvable"
faultCode="WSDL.BadElement" faultDetail="null"] 

         

        error.  After i select dismiss all and refresh the flex app then
it's get's the data from the database.  

        if i try to post/update data in the database on either my local
machine I get this error

         

        [RPC Fault faultString="HTTP request error"
faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
#2032: Stream Error. URL: 

         

        but then it still updates the data

         

        if i try to post/update data on production server nothing
happens

         

         

         i put the crossdomain.xml file in the ear file i am trying to
call

         

        http://{svr8}:port/weemc-service/crossdomain.xml
<http://%7bsvr8%7d:port/weemc-service/crossdomain.xml> the database the
ear file is accessing is on 

         

        http://{svr7}:port/isqlplus <http://%7bsvr7%7d:port/isqlplus> 

         

         

         

        More info:

         

        svr8 is a weblogic server that is running in a cluster with an
Admin server and a managed server

         

        flex running as a war file on svr8

         

        the secure attribute in the crossdomain file is set to true

         

         

         

        

        

        


 

Reply via email to