Savon v2.2.0 Release Notes

Release Date: 2013-04-21 // about 11 years ago
    • ๐Ÿ”‹ Feature: #416 The global namespace_identifier option can now be set to nil to not add a namespace identifier to the message tag.

    • ๐Ÿ”‹ Feature: #408 Added Savon::Client#service_name to return the name of the SOAP service.

    • ๐Ÿ‘Œ Improvement: When mistyping an option name, Savon used to raise a simple NoMethodError. This is because regardless of whether you're using the Hash or block syntax to pass global or local options, both are just method calls on some options object.

      NoMethodError: undefined method 'wsdk' for #<Savon::GlobalOptions:0x007fed95a55228>
      

    As of this change, Savon now catches those errors and raise a Savon::UnknownOptionError with a slightly more helpful error message instead.

    ``` ruby
    Savon::UnknownOptionError:
       Unknown global option: :wsdk
    ```
    
    • ๐Ÿ‘Œ Improvement: #385 Instead of raising an ArgumentError when Wasabi can't find any operations in the WSDL. Savon now raises a Savon::UnknownOperationError. This might happen when Wasabi fails to parse the WSDL because of imports for example.

    • ๐Ÿ›  Fix: #430 allows you to rescue and ignore Savon::Error errors in production while still having mocks trigger test failures.

    • ๐Ÿ›  Fix: #393 changed Savon::SOAPFault to work with generic response Hash keys.

    • ๐Ÿ›  Fix: #423 fixes a problem where Wasabi was not able to find extension base elements defined in imports it didn't follow.