Examples how to connect through a web service using SQL server 2008?

Maybe anyone could give me a good example on connecting to sql through a web service?
Its complicated since im new to this and never done this before.
Can you help me on how to go about it? Thank you for all the support……
