2 Replies Latest reply on Jun 4, 2007 11:44 AM by lubany21

    Saving updated XML file to JSP server

    lubany21
      Hello,

      I'm very new to Flex and I need to do exactly what "Get, modify and save an XML file on the server" tutorial does ( http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=544) . The problem is that I can't get it to work although I spent a lot of time trying. I was able populate my XML file thru tree but only if I use direct link in the following code:

      <mx:HTTPService id="serviceGetOrPutDataFile"
      resultFormat="e4x"
      url="{_sGetOrPutFileURL}"
      result="onResultGetOrPutDataFile(event)"
      fault="onFaultGetOrPutDataFile(event)"
      />

      I used it like:

      <mx:HTTPService id="serviceGetOrPutDataFile"
      resultFormat="e4x"
      url=" http://www.mydomain.com/inventory.xml"
      result="onResultGetOrPutDataFile(event)"
      fault="onFaultGetOrPutDataFile(event)"
      />

      If I use the code the way it is, it gives FileNotFound error right on page load. I use JSP page to get/put files. I have a very tight deadline and would really appreciate any help: either with this code or other methods to save updated XML files on the server.

      Thanks a lot.
      Luba