Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xsd -> xml #10

Open
tomazbracic opened this issue Nov 6, 2015 · 1 comment
Open

xsd -> xml #10

tomazbracic opened this issue Nov 6, 2015 · 1 comment

Comments

@tomazbracic
Copy link

Hi,

after searching this (XML) topic related for Ruby I ended up at using this GEM as best for my use case. I have 3 specific .XSD files. Those files are all I have and I have to build signed XML from them. But somehow I ended up using xsd2ruby.rb just fine. That produced me 3 files full of classes. But now when I "play" with them to build some data and put everything into ruby objects... this is where I am stuck. I can't fingure it out how to transform this ruby Object into XML file (for start) ...and in a way that I would have tags labeled as they should be (according to xsd)

I would really appreciate your help since I am totally new to ruby and as it looks like... your gem is the one. :)

Best,
Tomaz

@rubyjedi
Copy link
Owner

To be honest, it is a challenge to serialize a ruby object into XML in a way that's compliant with the structure laid out in an XSD. There is some old reference material from the original author here: https://web.archive.org/web/20101212040735/http://dev.ctor.org/soap4r/wiki/

If this is a "new" project with code written from scratch, you might have a much more enjoyable experience with another, more recently built SOAP library like Savon or Handsoap. Soap4R is more of a "Legacy" library that I'm maintaining for older projects that still depend upon it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants