Creating a service for unknown technology is usually painful. Sorry, "service" is an unpopular world, nowadays we call it an API. For a few years, everybody says: let's create some REST service. Cool, flexible and uneasy to consume. Exactly uneasy - it is not a mistake, uneasy is a correct word.