Author Topic: XmlRPC Auth  (Read 3643 times)

jucha

  • Newbie
  • *
  • Posts: 24
  • Karma: 2
    • View Profile
XmlRPC Auth
« on: February 02, 2012, 17:06:40 »
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
      }

  }

}

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: XmlRPC Auth
« Reply #1 on: February 15, 2012, 17:46:02 »
I am not aware of any issues with Tomcat7, but we do not yet use it for extensive testing.