aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMW2007-03-31 09:38:56 +0000
committerMW2007-03-31 09:38:56 +0000
commit7e7f0795b7b203501eda756c7852b765b2bf3b15 (patch)
treea4078e4b70ce8e22cb18ca66664c2d65076eb4aa
parent(no commit message) (diff)
downloadopensim-SC_OLD-7e7f0795b7b203501eda756c7852b765b2bf3b15.zip
opensim-SC_OLD-7e7f0795b7b203501eda756c7852b765b2bf3b15.tar.gz
opensim-SC_OLD-7e7f0795b7b203501eda756c7852b765b2bf3b15.tar.bz2
opensim-SC_OLD-7e7f0795b7b203501eda756c7852b765b2bf3b15.tar.xz
Add back ParseXMLRPC() to UserProfileManager
-rw-r--r--OpenSim.Framework/UserProfileManager.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim.Framework/UserProfileManager.cs b/OpenSim.Framework/UserProfileManager.cs
index 6118aa7..d474834 100644
--- a/OpenSim.Framework/UserProfileManager.cs
+++ b/OpenSim.Framework/UserProfileManager.cs
@@ -32,6 +32,22 @@ namespace OpenSim.Framework.User
32 DefaultStartupMsg = message; 32 DefaultStartupMsg = message;
33 } 33 }
34 34
35 public virtual string ParseXMLRPC(string requestBody)
36 {
37
38 XmlRpcRequest request = (XmlRpcRequest)(new XmlRpcRequestDeserializer()).Deserialize(requestBody);
39
40 switch (request.MethodName)
41 {
42 case "login_to_simulator":
43 XmlRpcResponse response = XmlRpcLoginMethod(request);
44
45 return (Regex.Replace(XmlRpcResponseSerializer.Singleton.Serialize(response), "utf-16", "utf-8"));
46 }
47
48 return "";
49 }
50
35 public XmlRpcResponse XmlRpcLoginMethod(XmlRpcRequest request) 51 public XmlRpcResponse XmlRpcLoginMethod(XmlRpcRequest request)
36 { 52 {
37 XmlRpcResponse response = new XmlRpcResponse(); 53 XmlRpcResponse response = new XmlRpcResponse();