-
Notifications
You must be signed in to change notification settings - Fork 614
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
Duplicate elements in soapbody #45
Comments
hey joe, you can use arrays for duplicate elements. it's very natural. for example:
but there's a problem with the attributes of your subKey tags. normally to assign attributes to hash values, you could do:
currently i fear this doesn't work for duplicate elements and i'm already thinking about how this could be fixed. for now, you could use builder to do something like:
btw. you can experiment with this by calling |
added support for this to the dev branch: http://github.com/rubiii/savon/commit/e8dd4fea1d8ab4d0d451fdfa254960c9a749b921 with the next release, you will be able to do:
this will give you the exact same xml as in your original message. |
released version 0.7.6 containg a fix for this problem. please update. |
…lues as Arrays). issue savonrb#45
+1 @rubiii |
I have the same problem with the array value, but inside array again i need to pass in the hash value which again gets over written
I tried item inside array still gets overwritten, how do i solve this? |
Hi, Thanks for the help earlier. I'm trying to figure out how to get the soap body to handle duplicate elements. like.
I find it's difficult to get duplicate param's inserted since it's a hash. Should I do this manually?
-Joe
The text was updated successfully, but these errors were encountered: