[Devel] Xmlrpc Module

Juha Heinanen jh at tutpro.com
Fri Dec 8 13:00:39 CET 2006


Bogdan-Andrei Iancu writes:

 > the "problem" is that the module uses the libxmlrpc-c3 library which 
 > provides functionality with a high level of encapsulation -  will ask 
 > Lavinia if she can find a way to configure what is the URL required by 
 > server.

i still have problem with empty params list.  if there is no params, my
php library produces an empty params list:

POST /RPC2 HTTP/1.0
Host: 127.0.0.1
Connection: close
User-Agent: OpenSIPg XML_RPC Client
Content-Type: text/xml; charset=ISO-8859-1
Content-Length: 112

<?xml version="1.0" ?>
<methodCall>
	<methodName>domain_dump</methodName>
	<params></params>
</methodCall>

which may explain why i still get 400 bad request:

Received the following response:

HTTP/1.1 400 Bad Request
Content-type: text/html
Connection: close
Date: Fri, 08 Dec 2006 11:48:29 GMT
Server: ABYSS/0.3

the spec says:

If the procedure call has parameters, the <methodCall> must contain a
<params> sub-item. The <params> sub-item can contain any number of
<param>s, each of which has a <value>.

it does not say that <params></params> cannot be there if there are no
params.

-- juha



More information about the Devel mailing list