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

2006-08-15 Thread Beth

Hey, thanks for the comments.

Corentin, I want to stick to C, so C++ will be my last change, I
prefer C++ but with Gtk on C  I don't want to mix them, I know that is
not a good or bad reason, I think that programmers (at least me) make
some strange decisions ;). ( I know that Gtk-- exists, but again, as I
usually say, multiples choices for doubtful person are bad things ;)
).

Santtu, I don't know that there was a packaged .deb version of the
library, so I downloaded the latest version, compiled it, take an
example and used it directly inside my code, and did not work ;), the
same process with the 0.9.1 version and works, so maybe I made a
mistake during the compilation/installation, or something else but now
the example works.

Also, the latest version of xmlrpc-c  have a refined api, and I think
that is more clean, for example the parse value functions are more
elegant at the newer version. But the primary target was getting
xmlrpc working, more easy or difficult but working.

So, thanks for all ;).

On 8/14/06, Santtu Lakkala [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Beth wrote:
 And better, do you know a xmlrpc library that is tested and works
 under maemo/hildon/arm...?

I have successfully used xmlrpc-c with maemo/mistral in maemo-blog[1]. I
can't really tell what is the problem with your setup though; but
xmlrpc-c can be used on maemo 2.0 and nokia 770. The sources[2] for
maemo-blog are available too. The deb packages I made and used are in
maemo-hackers repository[3].

[1]: http://maemo-hackers.org/wiki/MaemoBlog
[2]: http://maemo-hackers.org/browser/maemo-blog
[3]: http://maemo-hackers.org/apt/pool/main/x/xmlrpc-c/

- --
Santtu Lakkala
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFE4JGSX9Rc0+po4p0RAsiwAJ4o1450xHF7Yw6IbQAvMTJiLh5ACACgpaXd
cyP7bz8xGwFq9CI4pT0XxQc=
=FTwc
-END PGP SIGNATURE-




--
---
José Antonio Robles

[EMAIL PROTECTED]
  [EMAIL PROTECTED]

661 960 119

Sometimes something happens ...
---
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


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

2006-08-13 Thread Corentin BARON

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