Module: Savon

Defined in:
lib/campaign_master/savon.rb

Defined Under Namespace

Classes: Response, SOAPFault

Class Method Summary collapse

Class Method Details

.extract_envelope_from_response_body(response_body) ⇒ Object



2
3
4
5
6
7
# File 'lib/campaign_master/savon.rb', line 2

def self.extract_envelope_from_response_body(response_body)
  envelope_start = response_body.index("<s:Envelope")
  envelope_end = response_body.index("</s:Envelope>") + 12

  response_body[envelope_start..envelope_end]
end