Class: Savon::Client
Overview
Savon::Client
Heavy metal Ruby SOAP client library. Minimizes the overhead of working with SOAP services and XML.
Instance Attribute Summary collapse
-
#wsdl ⇒ Object
readonly
Returns the Savon::WSDL.
Instance Method Summary collapse
-
#initialize(endpoint) ⇒ Client
constructor
Expects a SOAP
endpoint
String. -
#respond_to?(method) ⇒ Boolean
Returns
true
for available methods and SOAP actions.
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (private)
Dispatches requests to SOAP actions matching a given method
name.
27 28 29 30 31 32 |
# File 'lib/savon/client.rb', line 27 def method_missing(method, *args, &block) #:doc: super unless @wsdl.respond_to? method setup method, &block dispatch method end |
Instance Attribute Details
#wsdl ⇒ Object (readonly)
Returns the Savon::WSDL.
16 17 18 |
# File 'lib/savon/client.rb', line 16 def wsdl @wsdl end |
Instance Method Details
#respond_to?(method) ⇒ Boolean
Returns true
for available methods and SOAP actions.
19 20 21 22 |
# File 'lib/savon/client.rb', line 19 def respond_to?(method) return true if @wsdl.respond_to? method super end |