this is the code I'm using .. maybe someone can spot the problem.. it crashes on the second last line where the call is made to GetStats
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CookComputing.XmlRpc;
namespace AstrixMonitor
{
[XmlRpcUrl("
http://QueueMetricsServer:8080/QueueMetrics/xmlrpc.do")]
public interface IQueueMetrics
{
[XmlRpcMethod("QM.stats")]
Object GetStats(string queueNames,
string userName, string password,
string logfile, string period, // always leave these 2 X fields blank
string startOfPeriod, string endOfPeriod, //yyyy-mm-dd.hh.mm.ss (do not forget the dot between the date and the hour)
string agentFilter,
string analysisNames);
}
public partial class Monitor : Form
{
DataSet dsDropped;
DataTable tblDropped;
public Monitor()
{
InitializeComponent();
GetData();
dataGridView1.DataSource = dsDropped;
dataGridView1.DataMember = "tblDropped";
}
private void GetData()
{
ArrayList analysisNames = new ArrayList();
analysisNames.Add("KoDO.DiscCauses");
//analysisNames.Add("CallDistrDO.AnsDistrPerDay");
IQueueMetrics QueueMetrics = (IQueueMetrics)XmlRpcProxyGen.Create(typeof(IQueueMetrics));
Object result = QueueMetrics.GetStats("9002", "robot", "robot", "", "",
"2009-08-12.00.00.00",
"2009-08-14.00.00.00", "", analysisNames.ToString());
MessageBox.Show(result.ToString());
}
}
}