Refactored decode_wsxml and decode_xml methods to use one main method
(xmltojson) while customizing their requests for MQ responses or WS
responses.