change rest client post call to xml