[sr-dev] XMLRPC not compliant with standard

Juha Heinanen jh at tutpro.com
Sun Nov 18 23:49:58 CET 2012


Olle E. Johansson writes:

> XMLrpc standards says that there has to be ONE and only ONE structure
> in a response. When running "htable.dump" I get one param struct per
> object. There should be a common structure encapsultating all the
> responses.

> Anyone that has seen the same issues? Agree with a fix?

i don't have any problems with htable_dump at least when using python:

# python sr-xmlrpc.py
<ServerProxy for 127.0.0.1:6060/RPC2>
Nov 19 00:46:55 sip /usr/sbin/sip-proxy[3565]: INFO: Handling XMLRPC POST from <192.98.102.10> with body <<?xml version='1.0'?><methodCall><methodName>mi</methodName><params><param><value><string>sht_dump</string></value></param><param><value><string>htable</string></value></param></params></methodCall>>
['Entry:: 0', 'gw::3::calling_host:: foo.bar', 'Entry:: 1', 'rpi::30001::acl[0]:: 3', 'Entry:: 8', 'rpi::30001::charging_uri:: sip:+358407058050 at test.fi', 'Entry:: 11', 'rpi::30001::flags:: 209', 'Entry:: 14', 'gw::4::dpid:: 1001', 'Entry:: 15', 'lpi::20001::prefix[0]:: +3581623456', ...

i haven't noticed any problems with php either, but i'm not using the
xmlrpc lib that comes with php.

-- juha





More information about the sr-dev mailing list