lib/savon_helper/soap_interface.rb
# Send a Request to the SOAP API for method with arguments and unwrap the response
# @param method [Symbol] The SOAP method to call.
# @param arguments [Hash] The method arguments
# @return [Hash] The result hash.
Send a Request to the SOAP API for method with arguments and unwrap the response
Send a Request to the SOAP API for method with arguments and unwrap the response
def send_soap(method, arguments = {})
      logger.debug { "#{self.class}\##{__method__}(#{method.inspect}, #{arguments.inspect})" }
      retryable(:tries => 5, :on => Errno::ECONNRESET) do
        response = @client.call method, :message => arguments
        return response.to_hash[(method.to_s+"_response").to_sym][(method.to_s+"_return").to_sym]
      end
    end
def send_soap ( method , arguments = { } ) logger . debug { "#{self.class}\##{__method__}(#{method.inspect}, #{arguments.inspect})" } retryable ( :tries => 5 , :on => Errno :: ECONNRESET ) do response = @client . call method , :message => arguments return response . to_hash [ ( method . to_s + "_response" ) . to_sym ] [ ( method . to_s + "_return" ) . to_sym ] end end
Send a Request to the SOAP API for method with arguments and unwrap the response
Send a Request to the SOAP API for method with arguments and unwrap the response
The result hash.
The result hash .
Hash
method
The SOAP method to call.
The SOAP method to call .
arguments
The method arguments
The method arguments