Login to RM using web service in VS.NET


Can anyone share code on how to login to RM using VS.NET (C# or any other language)?