Finalized web service code