lib/avatax_taxservice.rb
############################################################################################################
# isauthorized - Verifies connectivity to the web service and returns expiry information about the service.
############################################################################################################

Verifies connectivity to the web service and returns expiry information about the service.
Verifies connectivity to the web service and returns expiry information about the service .
def isauthorized(operation = nil)
      @service = 'IsAuthorized'      
      @operation = operation == nil ? "?" : operation
      @soap = @template_isauthorized.result(binding)
      if @debug
        @log.puts "#{Time.now}: SOAP request created:"
        @log.puts @soap
      end
      begin
        @response = @client.call(:is_authorized, xml: @soap).to_hash
      return messages_to_array(@response[:is_authorized_response][:is_authorized_result])
      rescue Savon::Error => error
        abend(error)
      end
    end
def isauthorized ( operation = nil ) @service = 'IsAuthorized' @operation = operation == nil ? "?" : operation @soap = @template_isauthorized . result ( binding ) if @debug @log . puts "#{Time.now}: SOAP request created:" @log . puts @soap end begin @response = @client . call ( :is_authorized , xml : @soap ) . to_hash return messages_to_array ( @response [ :is_authorized_response ] [ :is_authorized_result ] ) rescue Savon :: Error => error abend ( error ) end end
isauthorized - Verifies connectivity to the web service and returns expiry information about the service.
isauthorized - Verifies connectivity to the web service and returns expiry information about the service .
#Read in the SOAP template
 # Subsitute real vales for template place holders
 # Make the call to the Avalara service
 #Strip off outer layer of the hash - not needed
 #Capture unexpected errors

operation
<not_specific>