Sha256: e6efdb9c0d2c92b1f7c8ac8ccea2bf3c76a9a552ab361251c9dbedc41fea6d3c

Contents?: true

Size: 729 Bytes

Versions: 5

Compression:

Stored size: 729 Bytes

Contents

require 'savon'

module Trizetto
  module Api

    # Base class for WebService API requests
    class WebService # :nodoc:
      def initialize(options = {})
        @client = Savon.client({
          # SOAP Version 1 sends the wrong content type header and you get back a 415 response
          soap_version: 2,

          soap_header: { "tns:AuthSOAPHeader": {
            "tns:User":     Trizetto::Api.configuration.username,
            "tns:Password": Trizetto::Api.configuration.password
          }},

          # API maybe case sensitive - im not sure
          convert_request_keys_to: :none,

          # Lots of PHI, so lets not log anything
          log: false,
        }.merge(options))
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trizetto-api-0.2.3 lib/trizetto/api/web_service.rb
trizetto-api-0.2.2 lib/trizetto/api/web_service.rb
trizetto-api-0.2.1 lib/trizetto/api/web_service.rb
trizetto-api-0.1.2 lib/trizetto/api/web_service.rb
trizetto-api-0.1.1 lib/trizetto/api/web_service.rb