[maemo-developers] [maemo-developers] xmlrpc-c strange error.
From: Beth beth.null at gmail.comDate: Sun Aug 13 19:44:10 EEST 2006
- Previous message: [maemo-developers] 2 dekstop file + 1 program
- Next message: [maemo-developers] xmlrpc-c strange error.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all, again with a problem ;). Well girls and boys, this weekend I am doing some tests of xmlrpc under the maemo sdk. I was using this library http://xmlrpc-c.sourceforge.net/ , and it seems to work, I say seems, because it seems to don't work too :). First of all I compiled the library, installed, check the tests, try some online xmlrpc method, some xmlrpc methods on servers inside the scratchbox sandbox, under the host operating system, and all seems to work :). But when I try to use simple method that adds two numbers under a hildon application, hey I get this error: XML-RPC Fault: unknown encoding (-503) Ummm, so I decide to debug a bit and with ethereal I captured the tcp stream between the server and the client with the following data: Client request: (Add two numbers, 5 & 7, jejeje, examples unchanged values ;) ). --------------------------------------------------------------------------------------------------------------------- POST / HTTP/1.1 Host: 127.0.0.1:5678 Pragma: no-cache Accept: */* Content-Type: text/xml Content-Length: 212 <?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>kranion.Add</methodName> <params> <param><value><i4>5</i4></value></param> <param><value><i4>7</i4></value></param> </params> </methodCall> Server response: ------------------------------------------------------------------------------------------------------------------ HTTP/1.0 200 OK Content-Type: text/xml; charset="utf-8" Server: Mono Remoting, Mono CLR 1.1.4322.2032 Content-Length: 153 X-Powered-By: Mono Connection: close <?xml version="1.0"?> <methodResponse> <params> <param> <value> <i4>12</i4> </value> </param> </params> </methodResponse> All seems ok, and at the scratchbox console with the test applications works, and with other applications works too, but with the hildon one it doesn't works. I don't know if the lowercase uppercase difference between charset="utf-8" and encoding="UTF-8" is a problem, but with the console application running from scratchbox console works ok, in the SDK_ARM and SDK_PC targets. Does someone have any idea of what is giving me the XML-RPC Fault: unknown encoding (-503). And better, do you know a xmlrpc library that is tested and works under maemo/hildon/arm...? Thankss to all and best regards.
- Previous message: [maemo-developers] 2 dekstop file + 1 program
- Next message: [maemo-developers] xmlrpc-c strange error.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]