QueueMetrics > Running QueueMetrics

Does anyone have the XML RPC API working with 1.3.3?

(1/2) > >>

chaag:
Is the XML RPC still included in the latest builds? I can't seem to get this working, and it appears the file itself is simply missing:
chaag@phoneserver:/usr/local/queuemetrics/tomcat/webapps$ find . -name xmlrpc.do
chaag@phoneserver:/usr/local/queuemetrics/tomcat/webapps$

When I try to connect I get a 404 HTTP response
server_url = 'http://asterisk.ironport.com:8080/qm130/xmlrpc.do'

thanks

chris

QueueMetrics:
Hello,
it is correct that the file is missing, as URLs ending in .do are dynamic mappings and not jsp pages. But the dynamic mapping seems to be present in 1.3.3 as in any other version. The fact that you see a 404 error if you call that URL with a browser or anything not sending an XML-RPC call is correct as well. To be sure it's being called, look up in tomcat/logs/localhost-{today}.txt and look if lines like the following are being appended:

2007-03-14 09:15:39 StandardContext[/queuemetrics-1.3.3][5A5E655EAAE75E2A330D9CD4BF0FA7D3] Inizio classe it.loway.app.queuemetrics.xmlrpc.tpfServer
2007-03-14 09:15:40 StandardContext[/queuemetrics-1.3.3][5A5E655EAAE75E2A330D9CD4BF0FA7D3] Fine classe it.loway.app.queuemetrics.xmlrpc.tpfServer
2007-03-14 09:15:40 StandardContext[/queuemetrics-1.3.3]LowayTransactionController: [5A5E655EAAE75E2A330D9CD4BF0FA7D3] Tempo totale esecuzione verbo 'xmlrpc': 1725 ms

Anybody else experiencing problems with XML-RPC?

chaag:
I tried connecting directly from the server that hosts queuemetrics
Python 2.3.4 (#1, Sep 26 2006, 17:23:01)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import xmlrpclib
>>> server = xmlrpclib.Server("http://127.0.0.1:8080/qm130/xmlrpc.dp")
>>> server.system.listMethods
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/xmlrpclib.py", line 1029, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.3/xmlrpclib.py", line 1316, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.3/xmlrpclib.py", line 1070, in request
    headers
xmlrpclib.ProtocolError: <ProtocolError for 127.0.0.1:8080/qm130/xmlrpc.dp: 404 /qm130/xmlrpc.dp>


Tailing the logs shows nothing, I'd guess I am simply not connecting, is there a way to force a connection using telnet or something?

QueueMetrics:
I see you are using the extension .dp, that will surely give a 404 error  :)
I am checking to see if there is any problem with the XML-RPC interface in 1.3.3.

chaag:
(doh!)
same error with .do, thanks for taking a look, I have an exec dashboard on another system that shows calls per day (and other stats), it would be nice if I could just pull each days data over via this interface.

thanks!

>>> server = xmlrpclib.Server("http://127.0.0.1:8080/qm130/xmlrpc.do")
>>> server.system.listMethods
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/xmlrpclib.py", line 1029, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.3/xmlrpclib.py", line 1316, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.3/xmlrpclib.py", line 1070, in request
    headers
xmlrpclib.ProtocolError: <ProtocolError for 127.0.0.1:8080/qm130/xmlrpc.do: 404 /qm130/xmlrpc.do>

Navigation

[0] Message Index

[#] Next page

Go to full version