From 7e7f0795b7b203501eda756c7852b765b2bf3b15 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 31 Mar 2007 09:38:56 +0000 Subject: [PATCH] Add back ParseXMLRPC() to UserProfileManager --- OpenSim.Framework/UserProfileManager.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/OpenSim.Framework/UserProfileManager.cs b/OpenSim.Framework/UserProfileManager.cs index 6118aa7e98..d4748345cd 100644 --- a/OpenSim.Framework/UserProfileManager.cs +++ b/OpenSim.Framework/UserProfileManager.cs @@ -32,6 +32,22 @@ namespace OpenSim.Framework.User 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) { XmlRpcResponse response = new XmlRpcResponse();