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);
}
}