Class: Savon::WSDL

Inherits:
Object show all
Defined in:
lib/savon/wsdl.rb

Overview

Savon::WSDL

Represents the WSDL document.

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ WSDL

Initializer, expects a Savon::Request.



9
10
11
# File 'lib/savon/wsdl.rb', line 9

def initialize(request)
  @request = request
end

Instance Method Details

#namespace_uriObject

Returns the namespace URI of the WSDL.



14
15
16
# File 'lib/savon/wsdl.rb', line 14

def namespace_uri
  @namespace_uri ||= stream.namespace_uri
end

#operationsObject

Returns a Hash of SOAP operations including their corresponding SOAP actions and inputs.



25
26
27
# File 'lib/savon/wsdl.rb', line 25

def operations
  @operations ||= stream.operations
end

#respond_to?(method) ⇒ Boolean

Returns true for available methods and SOAP actions.

Returns:

  • (Boolean)


30
31
32
33
# File 'lib/savon/wsdl.rb', line 30

def respond_to?(method)
  return true if soap_actions.include? method
  super
end

#soap_actionsObject

Returns an Array of available SOAP actions.



19
20
21
# File 'lib/savon/wsdl.rb', line 19

def soap_actions
  @soap_actions ||= stream.operations.keys
end

#to_sObject

Returns the raw WSDL document.



36
37
38
# File 'lib/savon/wsdl.rb', line 36

def to_s
  @document ||= @request.wsdl.body
end