[Opensim-dev] (CreateUser) Http Post
Kukuk Jacob
Jacob.Kukuk at lwtech.edu
Fri Dec 7 04:40:21 UTC 2012
Hello everyone, so we are getting a grid setup and we are running into a slight problem with registration of users. We created a ASP.net HTTP XMLRPC POST that uses the method createuser but for some odd reason it returns Requested method [createuser] not found. We are running as a grid and using robust. Here is what we are working with.
protected void join_btn_Click(object sender, EventArgs e)
{
CreateUser(new Uri("http://localhost:8003/"), "null", first_txt.Text, last_txt.Text, pass_txt.Text, email_txt.Text, 1000, 1000);
}
public void CreateUser(Uri url, string adminPassword, string firstName, string lastName, string password, string email, int regionX, int regionY)
{
var address = Dns.GetHostEntry(url.DnsSafeHost).AddressList[0];
var ht = new Hashtable();
ht["user_firstname"] = firstName;
ht["user_lastname"] = lastName;
ht["user_password"] = password;
ht["PrincipalID"] = "3a1c8128-908f-4455-8157-66c96a46f75e";
var parameters = new List<Hashtable> { ht };
var rpc = new XmlRpcRequest("createuser", parameters);
rpc.Invoke(url.ToString());
}
More information about the Opensim-dev
mailing list