add exception for failed transactional API call and test case for exceptions and for garbage xml input