Class: Savon::SOAP::Request
- Inherits:
-
Object
- Object
- Savon::SOAP::Request
- Defined in:
- lib/savon/soap/request.rb
Overview
= Savon::SOAP::Request
Executes SOAP requests.
Constant Summary collapse
- CONTENT_TYPE =
Content-Types by SOAP version.
{ 1 => "text/xml;charset=UTF-8", 2 => "application/soap+xml;charset=UTF-8" }
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#http ⇒ Object
Returns the value of attribute http.
-
#soap ⇒ Object
Returns the value of attribute soap.
Class Method Summary collapse
-
.execute(config, http, soap) ⇒ Object
Expects an HTTPI::Request and a Savon::SOAP::XML object to execute a SOAP request and returns the response.
Instance Method Summary collapse
-
#initialize(config, http, soap) ⇒ Request
constructor
Expects an HTTPI::Request, a Savon::SOAP::XML object and a Savon::Config.
-
#response ⇒ Object
Executes the request and returns the response.
Constructor Details
#initialize(config, http, soap) ⇒ Request
Expects an HTTPI::Request, a Savon::SOAP::XML object and a Savon::Config.
23 24 25 26 27 |
# File 'lib/savon/soap/request.rb', line 23 def initialize(config, http, soap) self.config = config self.soap = soap self.http = configure(http) end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
29 30 31 |
# File 'lib/savon/soap/request.rb', line 29 def config @config end |
#http ⇒ Object
Returns the value of attribute http.
29 30 31 |
# File 'lib/savon/soap/request.rb', line 29 def http @http end |
#soap ⇒ Object
Returns the value of attribute soap.
29 30 31 |
# File 'lib/savon/soap/request.rb', line 29 def soap @soap end |
Class Method Details
.execute(config, http, soap) ⇒ Object
Expects an HTTPI::Request and a Savon::SOAP::XML object to execute a SOAP request and returns the response.
17 18 19 |
# File 'lib/savon/soap/request.rb', line 17 def self.execute(config, http, soap) new(config, http, soap).response end |