简体   繁体   中英

Is there XML binding library for Ruby (like JAXB)?

is there any tool for Ruby which can transform XML (SOAP) to objects and vice versa? And if possible, generate all the objects (models) from XML schema (XSD). I worked several times with JAXB tool (in Java) and I need something simmilar:

  • generate models from XML schema
  • easily create component for serializing and deserializing them
  • easily create component for storing the objects to database
  • if possible, generate database tables according to that schema

Do you know any tool for this? What approach would you recommend to complete such task?

Thanks for your answers.

Savon should cover SOAP part of it.

I haven't used it but there is a library called HappyMapper: http://happymapper.rubyforge.org/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM