lib/soaspec/basic_soap_handler.rb in soaspec-0.0.15 vs lib/soaspec/basic_soap_handler.rb in soaspec-0.0.16
- old
+ new
@@ -68,10 +68,10 @@
# Used in together with Exchange request that passes such override parameters
def make_request(override_parameters)
test_values = override_parameters # Used in Erb
# Erb parses template file, executing Ruby code in `<% %>` blocks to work out final request
- test_values = test_values.transform_keys_to_symbols unless Soaspec::Environment.always_use_keys?
+ test_values = test_values.transform_keys_to_symbols if Soaspec::Environment.always_use_keys?
if @request_option == :template
request_body = File.read('template/' + template_name + '.xml')
render_body = ERB.new(request_body).result(binding)
@client.call(operation, xml: render_body) # Call the SOAP operation with the request XML provided
elsif @request_option == :hash
\ No newline at end of file