Add back ParseXMLRPC() to UserProfileManager

0.1-prestable
MW 2007-03-31 09:38:56 +00:00
parent 8c5b51b7c0
commit 7e7f0795b7
1 changed files with 16 additions and 0 deletions

View File

@ -32,6 +32,22 @@ namespace OpenSim.Framework.User
DefaultStartupMsg = message; DefaultStartupMsg = message;
} }
public virtual string ParseXMLRPC(string requestBody)
{
XmlRpcRequest request = (XmlRpcRequest)(new XmlRpcRequestDeserializer()).Deserialize(requestBody);
switch (request.MethodName)
{
case "login_to_simulator":
XmlRpcResponse response = XmlRpcLoginMethod(request);
return (Regex.Replace(XmlRpcResponseSerializer.Singleton.Serialize(response), "utf-16", "utf-8"));
}
return "";
}
public XmlRpcResponse XmlRpcLoginMethod(XmlRpcRequest request) public XmlRpcResponse XmlRpcLoginMethod(XmlRpcRequest request)
{ {
XmlRpcResponse response = new XmlRpcResponse(); XmlRpcResponse response = new XmlRpcResponse();