I want to create a webservice where the user (the one accessing the webservice) must use a username and password to access it.

Does anyone have any experience of this and how it can be done?

Thanks in advance!