I'm using Drupal 7, and I need to retrieve data from a web service. This data cannot be stored in the Drupal database due to regulations. What would be the best practice for retrieving this data: using Java, Drupal Entities, or storing in tokens?
We are currently making calls based on an ID stored in the database and displaying the data from the web service associated with that ID.
The problem with this is that it's all being done outside of Drupal, and we are unable to use Drupal to manage any of this content. So we have many modules with custom code to do everything from creating forms, pre-filling forms, tying into a users account on Drupal, etc.
We are at a point where we can totally refactor how this works.
Do you have any suggestion on how we can improve this?