Working example of REST web service provider and consumer