Sha256: 01aab76502cae3c84b4c82be43bfcd12513eedd88ec7a908535d20077ee4c865
Contents?: true
Size: 744 Bytes
Versions: 16
Compression:
Stored size: 744 Bytes
Contents
require "httpi" module Savon module WSDL # = Savon::WSDL::Request # # Executes WSDL requests. class Request # Expects an <tt>HTTPI::Request</tt>. def initialize(request) self.request = request end # Accessor for the <tt>HTTPI::Request</tt>. attr_accessor :request # Executes the request and returns the response. def response @response ||= with_logging { HTTPI.get request } end private # Logs the HTTP request and yields to a given +block+. def with_logging Savon.log "Retrieving WSDL from: #{request.url}" Savon.log "Using :#{request.auth.type} authentication" if request.auth? yield end end end end
Version data entries
16 entries across 16 versions & 3 rubygems