You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working with a faulty SOAP server (it used wrong namespaces) and I was pretty confused because I got an empty hash but no error at all (but there was XML response there!). The problem, in lib/savon/soap/xml.rb:
# Converts a given SOAP response +xml+ to a Hash.
def self.parse(xml)
Crack::XML.parse(xml) rescue {}
end
I think it's better to remove the rescue and just let the parsing blow so the programmer is aware of the problem and deals with it as he/she sees fit.
The text was updated successfully, but these errors were encountered:
I was working with a faulty SOAP server (it used wrong namespaces) and I was pretty confused because I got an empty hash but no error at all (but there was XML response there!). The problem, in lib/savon/soap/xml.rb:
I think it's better to remove the rescue and just let the parsing blow so the programmer is aware of the problem and deals with it as he/she sees fit.
The text was updated successfully, but these errors were encountered: