fix for empty response when response xml has whitespace

When the XML-Response for a client call contains whitespace, the result is an empty array. I've added a "preserveWhiteSpace = false" to the DOMDocument to parse such XML-data correctly. Added also a test for such a scenario.