Hi.
I have an c# program that validate agent on QM.
This works very good with qm 1.7 and tomcat5.5 instaled on windows 2003.
But i update tomcat 5.5 to tomcat7, and xmlrpc returns sometimes "Response contains invalid XML".
The first time validate ok.
Shutdown application c#
Start again and login fail.
I have to restart c# program.
Tomcat7 has better performance. but i have this xmrpc problem.
This is my short code C#.
using CookComputing.XmlRpc;
namespace PSI.XPHONE
{
[XmlRpcUrl("
http://192.168.1.11:8080/queuemetrics/xmlrpc.do")]
public interface IStateName : IXmlRpcProxy
{
[XmlRpcMethod("QM.auth")]
AuthResult QmAuth(string user, string pwd);
}
public class AuthResult
{
[XmlRpcMember("auth")]
public Array Auth { get; set; }
}
public partial class AsteriskProfile : Form
{
...
...
private void LoginButton_Click(object sender, EventArgs e)
{
/* xmlrpc */
try
{
IStateName proxy = XmlRpcProxyGen.Create<IStateName>();
proxy.Timeout = 5000;
//proxy.KeepAlive = false;
AuthResult qmret = proxy.QmAuth("Agent/" + num, pass); //fail sometimes
...
...
}
catch (Exception ex) { MessageBox.Show(ex.Message); return; } //Response contains invalid XML
}
}
}