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

Version Path
search_biomodel-1.0.0 search_biomodel/ruby/1.8/gems/savon-0.9.2/lib/savon/wsdl/request.rb
savon-0.9.2 lib/savon/wsdl/request.rb
s-savon-0.8.6 lib/savon/wsdl/request.rb
savon-0.9.1 lib/savon/wsdl/request.rb
savon-0.9.0 lib/savon/wsdl/request.rb
savon-0.8.6 lib/savon/wsdl/request.rb
savon-0.8.5 lib/savon/wsdl/request.rb
savon-0.8.4 lib/savon/wsdl/request.rb
savon-0.8.3 lib/savon/wsdl/request.rb
savon-0.8.2 lib/savon/wsdl/request.rb
savon-0.8.1 lib/savon/wsdl/request.rb
savon-0.8.0 lib/savon/wsdl/request.rb
savon-0.8.0.beta.4 lib/savon/wsdl/request.rb
savon-0.8.0.beta.3 lib/savon/wsdl/request.rb
savon-0.8.0.beta.2 lib/savon/wsdl/request.rb
savon-0.8.0.beta.1 lib/savon/wsdl/request.rb