roundlake/wash_out — Issue #5: Nil param error (without Savon gem)
Author: vicvega
Created: 2012-01-25 08:40:12+00:00
State: open

If you use WashOut without Savon, you'll come to a Nil param error.

In ```lib/wash_out/dispatcher.rb``` when parsing request, a ```params[:envelope][:body]``` is expected to be present (hash keys are symbols downcase).
But the hash resulting contains ```params["Envelope"]["Body"]``` (keys are strings not downcase)

You have to configure Nori to convert xml tags as expected while parsing soap request.

If you add Savon as dependency (as in https://github.com/roundlake/wash_out-sample ), the problem is solved.
Savon includes (in ```lib/savon/soap/xml.rb```) the following lines

Nori.configure do |config|
config.strip_namespaces = true
config.convert_tags_to { |tag| tag.snakecase.to_sym }
end

that convert tags as expected.