rubiii/savon — pull request #275 by koppen (2012-03-11 13:54:10+00:00)
Title: Add namespaces to body and order

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.