Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save henrydjacob/558650 to your computer and use it in GitHub Desktop.
Save henrydjacob/558650 to your computer and use it in GitHub Desktop.
//retrieve XML from restfulx service update the details
var xmlOpts:Object = { URL: "people/summary_by_city.xml", method: "POST",
data: {city: 'chennai'}, unmarshall: false};
Rx.http(function(result:XML):void {
cityWiseSummary = result;
for each (var city:XML in cityWiseSummary .*) {
child['city_name'] = Rx.models.showById(City, child['city_id']);
}
}).invoke(xmlOpts);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment