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
-
#request ⇒ Object
Accessor for the
HTTPI::Request
.
Class Method Summary collapse
-
.execute(request, 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(request, soap) ⇒ Request
constructor
Expects an
HTTPI::Request
and aSavon::SOAP::XML
object. -
#response ⇒ Object
Executes the request and returns the response.
Constructor Details
#initialize(request, soap) ⇒ Request
Expects an HTTPI::Request
and a Savon::SOAP::XML
object.
22 23 24 |
# File 'lib/savon/soap/request.rb', line 22 def initialize(request, soap) self.request = setup(request, soap) end |
Instance Attribute Details
#request ⇒ Object
Accessor for the HTTPI::Request
.
27 28 29 |
# File 'lib/savon/soap/request.rb', line 27 def request @request end |
Class Method Details
.execute(request, 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(request, soap) new(request, soap).response end |
Instance Method Details
#response ⇒ Object
Executes the request and returns the response.
30 31 32 |
# File 'lib/savon/soap/request.rb', line 30 def response @response ||= with_logging { HTTPI.post request } end |