Support for custom converter and for using global env_namespace #172
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
The commit adds support to use a custom converter when converting from symbol to action and input on the soap object in client.request. Technically the converter is a proc that gets called if the input is not a String and if Savon.converter is set.
The specs are passing and I have tried it on a project that uses CamelCase in the soap methods.
The commit does not alter any behavior, if you don't use the converter standard behavior is maintained.
Configure by setting the config.converter eg:
Here i use the camelize function in Rails.
Oops, my next commit was added here too. New to this :) Can I move it somehow?
Anyway, here the description of the last commit.
Adds support to only define env_namespace once. The spec passes and I have tested it on a project that uses the soapenv as env_namespace.
Config is the same as previous addition eg.