The following is the current state of Savon::Soap::Response#to_xml:
# Overwrite to work with multipart response.
def to_xml
if multipart?
parts.first.body.encoded # we just assume the first part is the XML
else
http.body
end
end
It seems that "parts.first.body.encoded" is a typo and should be "parts.first.body.decoded" instead. This is the only way I could get it to work properly.
The following is the current state of Savon::Soap::Response#to_xml:
It seems that "parts.first.body.encoded" is a typo and should be "parts.first.body.decoded" instead. This is the only way I could get it to work properly.