Re: [Devel] Xmlrpc Module

2006-12-08 Thread Juha Heinanen
bogdan, it is funny that abyss does not accept charset in request, but generates one in its response. or perhaps it only accepts utf-8 or requires "" around the value? according to rfc2616, "" are not needed, for example, Media types are defined in section 3.7. An example of the field is

Re: [Devel] Xmlrpc Module

2006-12-08 Thread Bogdan-Andrei Iancu
hmm...In our tests I saw no params for Content-type header. The xmlrpc-c3 library used the abyss http server - will try do dig more about this. regards, bogdan Juha Heinanen wrote: Juha Heinanen writes: > Sent the following request: > > POST /RPC2 HTTP/1.0 > Host: 127.0.0.1 > Connectio

Re: [Devel] Xmlrpc Module

2006-12-08 Thread Bogdan-Andrei Iancu
I just run some tests with a client built on the libxmlrpc-c3 (the same used on the server side in openser). When sending a command without params, the message looks like: domain_dump and works ok... so this is not the problem..sorry for misleading you...your php library

Re: [Devel] Xmlrpc Module

2006-12-08 Thread Dan Pascu
On Friday 08 December 2006 14:00, Juha Heinanen wrote: > 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;

Re: [Devel] Xmlrpc Module

2006-12-08 Thread Juha Heinanen
Juha Heinanen writes: > 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 > > > > domain_dump > i found the problem. openser xmlr

Re: [Devel] Xmlrpc Module

2006-12-08 Thread Juha Heinanen
Bogdan-Andrei Iancu writes: > if there is no parameters to the command, there is no need for the > 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: 15

Re: [Devel] Xmlrpc Module

2006-12-08 Thread Juha Heinanen
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 para

Re: [Devel] Xmlrpc Module

2006-12-08 Thread Bogdan-Andrei Iancu
Hi Juha, 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. as you probably noticed in README, there are more items on the todo

Re: [Devel] Xmlrpc Module

2006-12-08 Thread Juha Heinanen
Bogdan-Andrei Iancu writes: > the requested URL is not correct. Must be like: > > POST /RPC2 HTTP/1.0 i was able to produce this kind of header by giving "/RPC2" as location parameter to the request. so it is not necessary to change the code although i still think the code should not require

Re: [Devel] Xmlrpc Module

2006-12-08 Thread Juha Heinanen
Bogdan-Andrei Iancu writes: > the requested URL is not correct. Must be like: > > POST /RPC2 HTTP/1.0 bogdan, i don't find that kind of requirement in xmlrpc spec: Header requirements The format of the URI in the first line of the header is not specified. For example, it could be empty, a

Re: [Devel] Xmlrpc Module

2006-12-08 Thread Bogdan-Andrei Iancu
Hi Juha, the requested URL is not correct. Must be like: POST /RPC2 HTTP/1.0 if there is no parameters to the command, there is no need for the 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=IS

Re: [Devel] Xmlrpc Module

2006-12-07 Thread Juha Heinanen
why 400 bad request? -- juha Sent the following request: POST 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 lcr_dump

Re: [Devel] Xmlrpc Module

2006-12-07 Thread Bogdan-Andrei Iancu
Hi Juha, with the new MI interface there is no difference between the functions accessible via fifo or xmlrpc, via sockunix or whatever - the function name and its implementation is unique and it can be triggered via all present transport mechanism (fifo & xmlrpc for the moment) - the name a

[Devel] Xmlrpc Module

2006-12-07 Thread Juha Heinanen
i was going to try out Xmlrpc Module, but documentation is not very clear. - does each fifo command map to an xmlrpc function with the same name? for example, if i want to execute lcr_reload fifo command, do i call an xmprpc function with name "lcr_reload". - if i want to execute a fifo com