Module: Rubydora::Soap
- Defined in:
- lib/rubydora/soap.rb
Overview
Fedora SOAP API extension
Class Method Summary collapse
Instance Method Summary collapse
-
#soap ⇒ SOAP::RPC::Driver
SOAP API endpoint.
Class Method Details
.extended(repository) ⇒ Object
5 6 7 |
# File 'lib/rubydora/soap.rb', line 5 def self.extended repository require 'savon' end |
Instance Method Details
#soap ⇒ SOAP::RPC::Driver
SOAP API endpoint
11 12 13 14 15 16 17 18 |
# File 'lib/rubydora/soap.rb', line 11 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 |