Example #1
0
 /// <summary>
 /// Deserializes string response to MethodResponse object. If error, it returns to FaultException object.
 /// </summary>
 /// <param name="xmlRpcResponse">string response after sending request</param>
 /// <returns>MethodResponse object</returns>
 public static MethodResponse XmlRpcDeserialize(string xmlRpcResponse)
 {
     using (var reader = XmlReader.Create(new StringReader(xmlRpcResponse)))
     {
         XmlRpcSerialization deserializer = new XmlRpcSerialization();
         MethodResponse      responseCcu  = (MethodResponse)deserializer.ReadObject(reader);
         return(responseCcu);
     }
 }