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

Add namespaces to body and order #275

Closed

Conversation

koppen
Copy link
Contributor

@koppen koppen commented Mar 11, 2012

When using a Hash to construct the SOAP body and forcing the order of elements with :order! and the body elements are namespaced, Gyoku raises an ArgumentError:

Missing elements in :order!

Savon::SOAP::XML#add_namespaces_to_body adds namespaces to the names of elements in the SOAP body, causing them to become out of sync with the element names in the :order! list.

These changes add namespaces to the values in :order! elements as well, so the names match their counterparts in the body Hash before being sent off to Gyoku.

They also add a few tests for the private add_namespaces_to_body method, which was far the easiest way to setup tests for this case.

Fixes #238.

Without this we might run into "Missing elements in :order!" errors from Gyoku.
@rubiii
Copy link
Contributor

rubiii commented Jun 6, 2012

merged. thanks jakob!

@rubiii rubiii closed this Jun 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Missing elements in :order!
2 participants