Webservice to query entities by type or id, and supporting prefix logic.