Web service

Hi am new to webservice, can anyone help me to create a webservice to validate username and password?