Class: SigepWeb::WebServiceInterfaceApi

Inherits:
Object
  • Object
show all
Defined in:
lib/sigep_web/web_service_interface_api.rb

Instance Method Summary collapse

Constructor Details

#initializeWebServiceInterfaceApi

Returns a new instance of WebServiceInterfaceApi.



3
4
5
6
7
8
# File 'lib/sigep_web/web_service_interface_api.rb', line 3

def initialize
  @client = Savon.client({
    wsdl: url,
    ssl_verify_mode: :none
  })
end

Instance Method Details

#process(method, message) ⇒ Object



10
11
12
# File 'lib/sigep_web/web_service_interface_api.rb', line 10

def process(method, message)
  @client.call(method, soap_action: "", message: message)
end