Sha256: c15effe77aff2e22eff0db405a9134abc1370c0f560ba6bf2f7ba1af5368f1a5
Contents?: true
Size: 579 Bytes
Versions: 6
Compression:
Stored size: 579 Bytes
Contents
module Imasei require "singleton" class Connection include Singleton def client @client ||= Savon.client wsdl: Imasei.configuration.wsdl, open_timeout: 500, read_timeout: 500, follow_redirects: Imasei.configuration.follow_redirects, pretty_print_xml: Imasei.configuration.pretty_print_xml, convert_request_keys_to: :camelcase end def call(service, message) request = client.build_request service, message: message Imasei::Printer.xp request.body client.call service, message end end end
Version data entries
6 entries across 6 versions & 1 rubygems