How to construct the session string which is passed to XML RPC method for Open Nebula

I am new to Open Nebula trying to create the session string by combining the user id and password. The below sample testing code is written in C# and using CookComputing.XmlRpc package for XML RPC calls.

The code gives “UnAuthorized” error on execution. I am not sure on how the session string is constructed. Require help for the same. Do I directly use the password or is it encrypted based on any given criteria?
Code is as follows :-

using System;
using CookComputing.XmlRpc;

namespace OpenNebulaTest
{
class Program
{
static void Main(string[] args)
{
ISystem proxy = XmlRpcProxyGen.Create();
string user = “ganesh”;
string password = “password”;
string session = user + “:” + password;
Array ret = proxy.Version(session);
}
}

[XmlRpcUrl("http://localhost:8979/RPC2")]
public interface ISystem : IXmlRpcProxy
{
    [XmlRpcMethod("one.system.version")]
    Array Version(string session);
}    

}

The issue was with the url.

However to answer the raised question.

The session id is a combination of userid and password seperated by colon ‘:’

e.g.

string user = “user”;
string password = “password”;
string session = user + “:” + password;

Thanks for posting back,if the C# gets in good shape you can contribute it as an add-on if you are interested