XML-RPC on my Nokia 6600 using pys60

May 3rd, 2006

I was thinking of doing this from quite some time, but was searching for the required xml parser. The pyexpat module available from PDIS made for the missing link. I installed the SIS installer available from PDIS website, copied the xmlrpclib.py (from python 2.2.3 source tarball) file to my Nokia 6600 to E:\System\Libs folder & that was it. The “import pyexpat” worked just fine, giving me more confidence to try “import xmlrpclib”… & my 6600 didn’t made me look bad :-P

>>> server_url = ‘http://xmlrpc-c.sourceforge.net/api/sample.php’
>>> server = xmlrpclib.Server(server_url)
>>> result = server.sample.sumAndDifference(5, 3)
>>> print result
{’sum’: 8, ‘difference’: 2}

& the results were worth the effort!
This finding will add more live’liness to apps i’ve planned for flickr & youtube!

[update]
As pointed by Simo [ssalmine-AT-gmail-DOT-com], another XML parser can be found at http://discussion.forum.nokia.com/forum/showthread.php?t=76028

Wow!
;-)

Posted in It calls for a blog..., Python | Comments (2)

2 Responses to “XML-RPC on my Nokia 6600 using pys60”

  1. simo Says:

    btw there is another xml parser also available: http://discussion.forum.nokia.com/forum/showthread.php?t=76028

    This is expat-based also.

  2. makuchaku Says:

    Hey Simo,

    Thanks for the pointer :)

    …updating the blog.

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image