Adding a try catch around xml response building