Exemple #1
0
 public void Serialize(Stream o)
 {
     using (XmlTextWriter writer = o.UTF8XmlTextWriter())
     {
         writer.WriteStartElement("methodResponse");
         writer.WriteStartElement("params");
         writer.WriteStartElement("param");
         XmlRpc.Serialize(ReturnValue, writer);
         writer.WriteEndElement();
         writer.WriteEndElement();
         writer.WriteEndElement();
     }
 }
Exemple #2
0
 public void Serialize(Stream o)
 {
     using (var writer = o.UTF8XmlTextWriter())
     {
         writer.WriteStartElement("methodCall");
         writer.WriteNamedValue("methodName", MethodName);
         writer.WriteStartElement("params");
         foreach (var iv in Params)
         {
             writer.WriteStartElement("param");
             XmlRpc.Serialize(iv, writer);
             writer.WriteEndElement();
         }
         writer.WriteEndElement();
         writer.WriteEndElement();
     }
 }