Working with a large Ruby on Rails website has been made easier thanks to the REST support in Rails 2. The site's business logic can now be accessed through a consistent XML API. My goal now is to create one or more JavaScript frontends that can interact seamlessly with the Rails XML API.
An ideal solution would involve creating an automated wrapper for the API in JavaScript. This would significantly reduce the amount of effort needed to write XML processing code for over 500 API functions. How can I generate this wrapper around the XML API in JavaScript to make it more user-friendly? I have experience with similar solutions in Java that generate classes and methods for wrapping APIs, so I am leaning towards something similar for JavaScript. However, I am open to exploring alternative approaches to solving this problem.