Hello,
xmlrpcpp (http://xmlrpcpp.sourceforge.net) works fine on maemo, we
work with it configured with --disable-shared and --enable-static.
Good luck.
Corentin.
Le 13 août 06 à 18:44, Beth a écrit :
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
methodNamekranion.Add/methodName
params
paramvaluei45/i4/value/param
paramvaluei47/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
i412/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.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers
corentinbaron.gpgkey
Description: Binary data
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers