Reputation: 10075
I've been looking at various questions in StackOverflow and in other sites, but I have not seen a library that a) generates actionscript code given XSD b) serializes to and deserializes from XML using the generated classes.
In Java world this is JAXB. I have a set of large XSDs, based on which a web service is producing XML output. I don't want to write actionscript classes by hand, that'd be huge piece of work.
Having source code in actionscript would help a lot, since writing code based on runtime binding of xml/json to objects is much more error prone compared to having proxy like classes. Any ideas?
update: I've found a wizard in Adobe's Flash Builder for doing what I've been looking for, but unfortunately, it died on me complaining about case sensitivity of entities and services names etc. So a 3rd party framework which can do this is still required.
Upvotes: 3
Views: 642
Reputation: 135
You can try out asaxb. It allows you to unmarshall XML into ActionScript objects based on metadata. It is at least part of the solution.
Upvotes: 1