3 Replies Latest reply on Aug 18, 2006 10:54 AM by ntsiii

    Access xml file by Web Service

      I wrote a program to read in an xml file by Web Service under flex builder 2. The program does work under the flex environment, even i double-click it. However, I find that if the program is out of the project/bin directory, like onto my desktop, it fails and gives the following error. Can anyone tell me why?? Thanks in advance

      Error message :-

      [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]

      My program is :-

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="vertical" initialize="myRequest.send()">

      <mx:HTTPService id="myRequest" url=" http://localhost/customer.xml" />

      <mx:DataGrid dataProvider="{myRequest.lastResult.titles.title}" />