Shopify/active_fulfillment — pull request #16 by Soleone (2012-10-02 20:54:48+00:00)
Title: Shipwire: Fix parsing error message from CDATA on failed requests

Merchants' fulfillment requests were failing but they didn't receive any error message (was blank). This made it look like an issue with the integration but was actually just an issue of incorrect credentials.

The problem is that Shipwire apparently recently changed their error responses to both use a new message (not sure if old one is still used for different type of failures/requests) and put it inside of a CDATA block.

We failed to parse that properly from a CDATA node and only looked at the text node.

Please review @jduff