fix for refreshToken and result as xml
Merge pull request #296 from krzysiekbarca/master

fix for refreshToken and result as xml