Support non-xml responses

Wanted to use invoice.getPDF but code is assuming every response will be XML/hash.