Fix casting problems where I assumed return value was still a XmlRpcResponse rather than the value HashTable
parent
be3360db67
commit
6f2961f0e2
|
@ -113,12 +113,14 @@ namespace OpenSim.Grid.MessagingServer.Modules
|
||||||
// Send Request
|
// Send Request
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
XmlRpcRequest UserReq = new XmlRpcRequest("register_messageserver", SendParams);
|
XmlRpcRequest UserReq = new XmlRpcRequest("register_messageserver", SendParams);
|
||||||
XmlRpcResponse UserResp = (XmlRpcResponse)UserReq.Invoke(srv);
|
////XmlRpcResponse UserResp = UserReq.Send(srv, 16000);
|
||||||
//XmlRpcResponse UserResp = UserReq.Send(srv, 16000);
|
|
||||||
|
//// Process Response
|
||||||
|
//Hashtable GridRespData = (Hashtable)UserResp.Value;
|
||||||
|
|
||||||
|
Hashtable GridRespData = (Hashtable)UserReq.Invoke(srv);
|
||||||
|
|
||||||
// Process Response
|
|
||||||
Hashtable GridRespData = (Hashtable)UserResp.Value;
|
|
||||||
// if we got a response, we were successful
|
// if we got a response, we were successful
|
||||||
if (!GridRespData.ContainsKey("responsestring"))
|
if (!GridRespData.ContainsKey("responsestring"))
|
||||||
success = false;
|
success = false;
|
||||||
|
|
|
@ -269,10 +269,11 @@ namespace OpenSim.Grid.MessagingServer.Modules
|
||||||
|
|
||||||
IList parameters = new ArrayList();
|
IList parameters = new ArrayList();
|
||||||
parameters.Add(param);
|
parameters.Add(param);
|
||||||
XmlRpcRequest req = new XmlRpcRequest("get_user_friend_list", parameters);
|
XmlRpcRequest req = new XmlRpcRequest("get_user_friend_list", parameters);
|
||||||
XmlRpcResponse resp = (XmlRpcResponse)req.Invoke(m_cfg.UserServerURL);
|
|
||||||
//XmlRpcResponse resp = req.Send(m_cfg.UserServerURL, 3000);
|
//XmlRpcResponse resp = req.Send(m_cfg.UserServerURL, 3000);
|
||||||
Hashtable respData = (Hashtable)resp.Value;
|
//Hashtable respData = (Hashtable)resp.Value;
|
||||||
|
|
||||||
|
Hashtable respData = (Hashtable)req.Invoke(m_cfg.UserServerURL);
|
||||||
|
|
||||||
if (respData.Contains("avcount"))
|
if (respData.Contains("avcount"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue