Class: G5RepsClient::SavonAdapter
- Inherits:
-
Object
- Object
- G5RepsClient::SavonAdapter
- Defined in:
- lib/g5_reps_client/soap_adapters/savon_adapter.rb
Class Method Summary collapse
Class Method Details
.call(action, opts = {}, wsdl) ⇒ Object
5 6 7 |
# File 'lib/g5_reps_client/soap_adapters/savon_adapter.rb', line 5 def self.call(action, opts={}, wsdl) client(wsdl).call(action, message: opts) end |
.client(wsdl_endpoint) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/g5_reps_client/soap_adapters/savon_adapter.rb', line 9 def self.client(wsdl_endpoint) client = Savon.client do wsdl "#{wsdl_endpoint}" # If you want to debug the soap request, uncomment the next line and set logging to true # pretty_print_xml true log false end end |