-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Graceful handling of invalid XML/invalid SOAP response
Instead of having a nil pointer exception thrown when the response doesn't contain an <envelope> tag as assumed, throw an InvalidResponseError, allowing client applications to better handle unexpectedly bad responses from some SOAP server. Liauw Fendy <[email protected]> Sam Gibson <[email protected]>
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require "savon/error" | ||
|
||
module Savon | ||
module SOAP | ||
# = Savon::SOAP::InvalidResponseError | ||
# | ||
# Represents an error when the response was not a valid SOAP envelope. | ||
class InvalidResponseError < Error | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters