Sha256: 3c6bc2a01946397829529cb71b67fe262fbdbc8691d377af91d9170850e7354c

Contents?: true

Size: 519 Bytes

Versions: 35

Compression:

Stored size: 519 Bytes

Contents

module Rubydora
  # Fedora SOAP API extension
  module Soap
    # @param [Rubydora::Repository] repository
    def self.extended repository
      require 'savon'
    end

    # SOAP API endpoint
    # @return [SOAP::RPC::Driver]
    def soap
     @soap ||= begin
                 client = Savon::Client.new do |wsdl, http|
                   wsdl.document = "#{ config[:url] }/wsdl?api=API-M"
                   http.auth.basic config[:user], config[:password]
                 end
               end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
rubydora-0.5.13 lib/rubydora/soap.rb
rubydora-0.5.12 lib/rubydora/soap.rb
rubydora-0.5.11 lib/rubydora/soap.rb
rubydora-0.5.10 lib/rubydora/soap.rb
rubydora-0.5.9 lib/rubydora/soap.rb
rubydora-0.5.8 lib/rubydora/soap.rb
rubydora-0.5.7 lib/rubydora/soap.rb
rubydora-0.5.6 lib/rubydora/soap.rb
rubydora-0.5.5 lib/rubydora/soap.rb
rubydora-0.5.4 lib/rubydora/soap.rb
rubydora-0.5.3 lib/rubydora/soap.rb
rubydora-0.5.2 lib/rubydora/soap.rb
rubydora-0.5.1 lib/rubydora/soap.rb
rubydora-0.5.0 lib/rubydora/soap.rb
rubydora-0.4.1 lib/rubydora/soap.rb
rubydora-0.4.0 lib/rubydora/soap.rb
rubydora-0.4.0pre1 lib/rubydora/soap.rb
rubydora-0.3.1 lib/rubydora/soap.rb
rubydora-0.3.0 lib/rubydora/soap.rb
rubydora-0.2.6 lib/rubydora/soap.rb