lib/soaspec/exchange_handlers/soap_handler.rb in soaspec-0.0.48 vs lib/soaspec/exchange_handlers/soap_handler.rb in soaspec-0.0.49

- old
+ new

@@ -1,10 +1,10 @@ require_relative 'exchange_handler' require_relative '../hash_methods' require_relative '../not_found_errors' -require_relative '../accessors' +require_relative 'handler_accessors' require_relative '../interpreter' module Soaspec # Accessors specific to SOAP handler @@ -18,11 +18,10 @@ end # Wraps around Savon client defining default values dependent on the soap request class SoapHandler < ExchangeHandler - extend Soaspec::Accessors extend Soaspec::SoapAccessors # Savon client used to make SOAP calls attr_accessor :client # SOAP Operation to use by default @@ -87,11 +86,10 @@ @client = Savon.client(merged_options) end # 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 = override_parameters # Used in making request via hash or in template via Erb test_values = test_values.transform_keys_to_symbols if Soaspec.always_use_keys? begin if @request_option == :template request_body = File.read('template/' + template_name + '.xml') render_body = ERB.new(request_body).result(binding) \ No newline at end of file