0 Replies Latest reply on May 18, 2008 1:25 PM by gvl007

    webservice call throws Channel.Security.Error

    gvl007
      Hello all,

      My flex app calls webservices hosted on the same server that hosts the .swf file of the application. Running the app in flex builder or on the same machine works perfectly all business logic is called using webservices. When running the application on another system however a Channel.Security.Error is thrown when calling the first webservice with following detail shown in IE: [FaultEvent fault=[RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"] messageId="9C03B02E-1A3F-1F2B-1277-FD674AB4D188" type="fault" bubbles=false cancelable=true eventPhase=2]

      I started out discovering a world new to me, the world of flash security settings:




      So I started out using a policy server (using the python script that you can download in the first article link mentioned) on the webservice server on port 843 that serves following file:
      <?xml version="1.0"?>
      <!DOCTYPE cross-domain-policy SYSTEM " http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
      <cross-domain-policy>
      <allow-http-request-headers-from domain="*" headers="SOAPAction"/>
      <allow-access-from domain="*"/>
      </cross-domain-policy>

      But apparently the flex app on the other machine never makes a request to this policy server. In the end I also added an crossdomain.xml file with the same contents by an apache http server in the root directory. All this without success...and this problem is driving me bananas.

      We are using the latest version of the flash player: "You have version 9,0,124,0 installed"

      Since we have to put a version of this application into production at the end of this week all help, suggestions and remarks are really appreciated.

      kind regards,
      Geert Van Landeghem