Rest middleware for ee-webservice