In Mendix you have non persistent entities. So you can call a webservice and store the response in those. See the documentation here: https://docs.mendix.com/refguide/persistability#non-persistable
Regards,
Ronald