First draft of web service implementation