Class: Savon::SOAP::Request

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(request, soap) ⇒ Request

Expects an HTTPI::Request and a Savon::SOAP::XML object.



16
17
18
# File 'lib/savon/soap/request.rb', line 16

def initialize(request, soap)
  self.request = setup(request, soap)
end

Instance Attribute Details

#requestObject

Accessor for the HTTPI::Request.



21
22
23
# File 'lib/savon/soap/request.rb', line 21

def request
  @request
end

Instance Method Details

#responseObject

Executes the request and returns the response.



24
25
26
# File 'lib/savon/soap/request.rb', line 24

def response
  @response ||= with_logging { HTTPI.post request }
end