Class: Savon::WSDL
Overview
Savon::WSDL
Savon::WSDL represents a WSDL document. A WSDL document serves as a more or less qualitative API documentation.
Instance Method Summary collapse
-
#initialize(request) ⇒ WSDL
constructor
Expects a Savon::Request object.
-
#mapped_soap_actions ⇒ Object
Returns a Hash of available SOAP actions and their original names.
-
#namespace_uri ⇒ Object
Returns the namespace URI from the WSDL.
-
#soap_actions ⇒ Object
Returns an Array of available SOAP actions from the WSDL.
-
#to_s ⇒ Object
Returns the WSDL or
nil
in case the WSDL could not be retrieved.
Methods included from Validation
Constructor Details
#initialize(request) ⇒ WSDL
Expects a Savon::Request object.
11 12 13 |
# File 'lib/savon/wsdl.rb', line 11 def initialize(request) @request = request end |
Instance Method Details
#mapped_soap_actions ⇒ Object
Returns a Hash of available SOAP actions and their original names.
26 27 28 29 30 |
# File 'lib/savon/wsdl.rb', line 26 def mapped_soap_actions @mapped_soap_actions ||= parse_soap_actions.inject Hash.new do |hash, soap_action| hash.merge soap_action.snakecase.to_sym => soap_action end end |
#namespace_uri ⇒ Object
Returns the namespace URI from the WSDL.
16 17 18 |
# File 'lib/savon/wsdl.rb', line 16 def namespace_uri @namespace_uri ||= parse_namespace_uri end |
#soap_actions ⇒ Object
Returns an Array of available SOAP actions from the WSDL.
21 22 23 |
# File 'lib/savon/wsdl.rb', line 21 def soap_actions mapped_soap_actions.keys end |
#to_s ⇒ Object
Returns the WSDL or nil
in case the WSDL could not be retrieved.
33 34 35 |
# File 'lib/savon/wsdl.rb', line 33 def to_s wsdl_response ? wsdl_response.body : nil end |