Extract or handle FedEx namespaced XML better #139

Open
csaunders opened this Issue Jan 20, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@csaunders
Contributor

csaunders commented Jan 20, 2014

Currently we are performing a gsub on all instances of the SOAP APIs version prefix. With the API change that happened on January 19, 2014 this resulted in creating invalid XML that caused a massive breakage.

An example of the invalidly subbed XML can be seen here.

Solution:
The gsub is super aggressive and it would probably be better to just properly handle the namespace. Maybe having some 'version detection' to determine which namespace to use could be useful for reverse-compatibility reasons or something.

@rdaniels

This comment has been minimized.

Show comment Hide comment
@rdaniels

rdaniels Jan 29, 2014

I'm having the same issue. With active_shipping (0.11.2) when i run the code directly it returns FedEx quotes, but when i run it from RSpec 3.0.0.beta1 test I get #<REXML::ParseException: #<NoMethodError: undefined method `[]' for nil:NilClass>

I'm having the same issue. With active_shipping (0.11.2) when i run the code directly it returns FedEx quotes, but when i run it from RSpec 3.0.0.beta1 test I get #<REXML::ParseException: #<NoMethodError: undefined method `[]' for nil:NilClass>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment