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
- ContentType =
Content-Types by SOAP version.
{ 1 => "text/xml;charset=UTF-8", 2 => "application/soap+xml;charset=UTF-8" }
Instance Attribute Summary collapse
-
#http ⇒ Object
Returns the value of attribute http.
-
#soap ⇒ Object
Returns the value of attribute soap.
Class Method Summary collapse
-
.execute(http, soap) ⇒ Object
Expects an
HTTPI::Request
and aSavon::SOAP::XML
object to execute a SOAP request and returns the response.
Instance Method Summary collapse
-
#initialize(http, soap) ⇒ Request
constructor
Expects an
HTTPI::Request
and aSavon::SOAP::XML
object. -
#response ⇒ Object
Executes the request and returns the response.
Constructor Details
#initialize(http, soap) ⇒ Request
Expects an HTTPI::Request
and a Savon::SOAP::XML
object.
22 23 24 25 |
# File 'lib/savon/soap/request.rb', line 22 def initialize(http, soap) self.soap = soap self.http = configure(http) end |
Instance Attribute Details
#http ⇒ Object
Returns the value of attribute http.
27 28 29 |
# File 'lib/savon/soap/request.rb', line 27 def http @http end |
#soap ⇒ Object
Returns the value of attribute soap.
27 28 29 |
# File 'lib/savon/soap/request.rb', line 27 def soap @soap end |
Class Method Details
.execute(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(http, soap) new(http, soap).response end |