2 Replies Latest reply on Aug 31, 2007 8:36 AM by basiad

    Help!!! XML File will not open - RPC fault

      Hello, pls help me

      I have an XML File for my application and this file has all rights for read, open (rights 777) and I put this on a server. Address of this file is:
      I can open this file in a browser (Internet Explorer) but my application have Problems with it.

      I do my code the same as the code of sample from Adobe:
      http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDo cs_Parts&file=00000074.html

      My application code is this:
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
      pageTitle="Diplom-Work" creationComplete="baza.send()" >

      <mx:HTTPService id="baza" url=" http://www.kompakt-haus.com/oferty.xml" useProxy="false">
      <mx:Panel width="475" height="400" x="10" y="10" title="{ baza.lastResult.catalog.oferta.kraj}"/>
      <mx:DataGrid id="dgpost" dataProvider="{baza.lastResult.catalog.oferta">
      <mx:DataGridColumn headerText="Kraj" dataField="kraj"/>
      <mx:DataGridColumn headerText="Gwiazdki" dataField="gwiazdki"/>
      <mx:DataGridColumn headerText="Wyzywienie" dataField="wyzywienie"/>

      and the Error is like that:
      [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::faultHandler ()
      at mx.rpc::Responder/fault()
      at mx.rpc::AsyncRequest/fault()
      at ::DirectHTTPMessageResponder/securityErrorHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()

      I don't have any idea. Please, somebody help me.