Class: EgovUtils::Iszr::Client

Inherits:
Object
  • Object
show all
Defined in:
app/services/egov_utils/iszr/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Client

Returns a new instance of Client.



6
7
8
9
# File 'app/services/egov_utils/iszr/client.rb', line 6

def initialize(message)
  @client = Savon.client(wsdl: EgovUtils::Settings['iszr']['endpoint'], log: true, log_level: :info, ssl_verify_mode: :none)
  @message = message
end

Instance Method Details

#callObject



11
12
13
14
15
16
# File 'app/services/egov_utils/iszr/client.rb', line 11

def call
  client.call(
    :get_data,
    message: { 'tns:inputXml' => message }
  )
end