-
Notifications
You must be signed in to change notification settings - Fork 616
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
Adding attributes to the SOAP Body's root element #30
Comments
Since this issue was brought up under a different thread (Issue #7) I'm splitting it off here, along with my proposed solution and the link to my fork. |
OK here's the commit from my fork (turned out to be a one line edit to the input_array method): http://github.com/stanleydrew/savon/commit/86d06e216f5c9fdde8a33ad0666db1929fe8a8c1 |
thanks! merged your commit into the dev branch: http://github.com/rubiii/savon/commit/64a78c00760c123b65a0528c4d67772f398d368f - will be included in the next release. |
great to hear! looking forward to the new release. |
released version 0.7.3 including a patch for this issue. |
My problem is that i need to put some attributes on the "root" element within the SOAP body, so I need something that looks like:
env:Body
<wsdl:someRequest attr1="val1" attr2="val2">
...
/wsdl:someRequest
/env:Body
Right now the savon api only allows a single element tag name assigned to the input instance variable of the soap object, as in:
response = @savon_client.some_request! do |req|
req.namespace = @namespace
req.action = "someRequest"
req.input = "someRequest"
end
Seems like the most elegant fix might be to expose a little more of the underlying Builder::XmlMarkup object for those who require more flexibility than a simple hash can provide.
The text was updated successfully, but these errors were encountered: