83 |
XmlRpcResponse r = (XmlRpcResponse)response.Deserialize( ns ); |
XmlRpcResponse r = (XmlRpcResponse)response.Deserialize( ns ); |
84 |
|
|
85 |
ns.Close(); |
ns.Close(); |
86 |
return r.ToArray(); |
Object[] results = r.ToArray(); |
87 |
|
|
88 |
|
if( results.Length > 0 && |
89 |
|
results[0].GetType().ToString() == "DotGNU.XmlRpc.XmlRpcStruct") |
90 |
|
{ |
91 |
|
XmlRpcStruct f = (XmlRpcStruct)results[0]; |
92 |
|
|
93 |
|
if( f.ContainsKey("faultCode") ) { |
94 |
|
throw new XmlRpcException( (int)f["faultCode"], |
95 |
|
(string)f["faultString"] ); |
96 |
|
} |
97 |
|
} |
98 |
|
|
99 |
|
return results; |
100 |
} |
} |
101 |
} |
} |
102 |
} |
} |