Class: Savon::WSDL
Overview
Savon::WSDL
Represents the WSDL document.
Instance Method Summary collapse
-
#initialize(request) ⇒ WSDL
constructor
Initializer, expects a Savon::Request.
-
#namespace_uri ⇒ Object
Returns the namespace URI of the WSDL.
-
#operations ⇒ Object
Returns a Hash of SOAP operations including their corresponding SOAP actions and inputs.
-
#respond_to?(method) ⇒ Boolean
Returns
true
for available methods and SOAP actions. -
#soap_actions ⇒ Object
Returns an Array of available SOAP actions.
-
#to_s ⇒ Object
Returns the raw WSDL document.
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_uri ⇒ Object
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 |
#operations ⇒ Object
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.
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_actions ⇒ Object
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_s ⇒ Object
Returns the raw WSDL document.
36 37 38 |
# File 'lib/savon/wsdl.rb', line 36 def to_s @document ||= @request.wsdl.body end |