[maemo-developers] [maemo-developers] xmlrpc-c strange error.

From: Corentin BARON corentin.baron at inrialpes.fr
Date: Mon Aug 14 00:19:25 EEST 2006
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>
>
> <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.
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: corentinbaron.gpgkey
Type: application/octet-stream
Size: 916 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20060813/db339421/attachment.obj 
-------------- next part --------------


More information about the maemo-developers mailing list