Class: Savon::WSDL

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

Overview

Savon::WSDL represents the WSDL document.

Instance Method Summary collapse

Constructor Details

#initialize(uri, http) ⇒ WSDL

Initializer expects the endpoint uri and a Net::HTTP instance (http).



22
23
24
# File 'lib/savon/wsdl.rb', line 22

def initialize(uri, http)
  @uri, @http = uri, http
end

Instance Method Details

#choice_elementsObject

Returns an Array of choice elements.



17
18
19
# File 'lib/savon/wsdl.rb', line 17

def choice_elements
  @choice_elements ||= parse_choice_elements
end

#namespace_uriObject

Returns the namespace URI.



7
8
9
# File 'lib/savon/wsdl.rb', line 7

def namespace_uri
  @namespace ||= parse_namespace_uri
end

#soap_actionsObject

Returns an Array of available SOAP actions.



12
13
14
# File 'lib/savon/wsdl.rb', line 12

def soap_actions
  @soap_actions ||= parse_soap_actions
end

#to_sObject

Returns the body of the Net::HTTPResponse from the WSDL request.



27
28
29
# File 'lib/savon/wsdl.rb', line 27

def to_s
  @response ? @response.body : nil
end