lib/soaspec/exchange_handlers/soap_handler.rb in soaspec-0.3.3 vs lib/soaspec/exchange_handlers/soap_handler.rb in soaspec-0.3.6

- old
+ new

@@ -64,23 +64,24 @@ {} end # Setup object to handle communicating with a particular SOAP WSDL # @param [String] name Name to describe handler. Used in calling 'to_s' - # @param [Hash] options Options defining SOAP request. WSDL, authentication, see http://savonrb.com/version2/globals.html for list of options + # @param [Hash] options Options defining SOAP request. WSDL, authentication, + # See http://savonrb.com/version2/globals.html for list of options def initialize(name = self.class.to_s, options = {}) if name.is_a?(Hash) && options == {} # If name is not set options = name name = self.class.to_s end super set_remove_keys(options, %i[operation default_hash template_name]) merged_options = SoapDefaults.options merged_options.merge!(logging_options) if Soaspec::SpecLogger.log_api_traffic? merged_options.merge! savon_options - puts 'globals' + savon_globals.to_s merged_options.merge! savon_globals merged_options.merge!(options) + Soaspec::SpecLogger.info "Using Savon globals: #{merged_options}" self.client = Savon.client(merged_options) end # @param [Hash] override_parameters Parameters for building the request # @return [SoapRequest] Parameters used in making a request