0
votes

I have recently started using Flash Builder and the Flex SDK. I am currently working with XML. I am able to read XML into a List perfectly using the following code:

<s:HTTPService id="myXML" url="http://www.mywebsitename.com/appdata/Apps.xml"/>
<s:List id="myList" x="58" y="127" width="205" height="133" textAlign="center" dataProvider="{myXML.lastResult.JacobsApps.Name}"></s:List>

The problem that I am having is writing to the XML. I need to use HTTPService, or a similar service that uses URLs to write to the XML file.

1

1 Answers

0
votes

A URL is generally designed to request data from a server; and a URL alone won't create a file on the server.

You'll need to write a service in your language of choice. .NET, Java, ColdFusion, and PHP Are a few server side languages that will do this and integrate well with Flex. Specific instructions on how to do this depend on the technology of choice. With ColdFusion I would use cffile.

Once you create your service on the server, you'll be able to call the service from Flex using RemoteObject for AMF calls, WebService for SOAP calls, or HTTPService for REST calls. More info on accessing remote data services with Flex.