コード例 #1
0
    // Returns the object wrapped in the XmlRpc response
    public object Deserialize( Stream stream )
    {
      StreamReader reader = new StreamReader( stream );
      XmlTextReader tr = new XmlTextReader( stream );
      XmlRpcResponse response = new XmlRpcResponse();
      response.Read( tr );

      return response;
    }
コード例 #2
0
    public void Write( XmlRpcResponse response )
    {
      if(response == null)
      {
        throw new ArgumentNullException("response", "Argument cannot be null");
      }

      WriteStartDocument();
      WriteMethodResponse();
      WriteParams();
      foreach( object o in response ) {
	WriteParam( o );
      }
      WriteEndDocument();
    }