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

Mapping ruby Hash to XML seems to depend on order of inserting keys #859

Closed
dazza-codes opened this issue Feb 7, 2018 · 1 comment
Closed

Comments

@dazza-codes
Copy link

It seems that a ruby hash enumerates by the order of inserting keys (is that right?)

When composing params for a SOAP message using a Hash, we are getting SOAPFault errors related to XSD validation failures that depend on the order of XML elements. We cannot insert new key:value pairs into a Hash because it seems to mess up the resulting XML element order.

How does savon map the Hash key:value pairs to XML elements? Can it use the WSDL to correctly pluck out the key:value pairs in the correct order?

@pcai
Copy link
Member

pcai commented Mar 25, 2018

Thanks for contributing. Closing this since it seems to be a dupe of 592.

@pcai pcai closed this as completed Mar 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants