[Devel] Xmlrpc Module

Juha Heinanen jh at tutpro.com
Fri Dec 8 15:43:59 CET 2006


Bogdan-Andrei Iancu writes:

 > if there is no parameters to the command, there is no need for the 
 > <params> tag. So, you can try:
 > 
 > 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: 155
 > 
 > <?xml version="1.0" ?>
 > <methodCall>
 > 	<methodName>lcr_dump</methodName>
 > </methodCall>

i hacked the xmlrpc library and got rid of the empty params list, but i
still get back 400 Bad Request:

Sent the following request:

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: 92

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

Received the following response:

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

does 400 Bad Request mean that there is something syntactically
incorrect about the request or could it be that domain_dump is not found
by mi_xmlrpc?  if the former, do you have any idea what i should try
next?

-- juha



More information about the Devel mailing list