Decoding a WBXML SyncML message from an S60 device

I am trying to decode a WBXML-encoded SyncML message with Nokia N95. My first attempt was to use the pywbxml python module, which terminates the libwbxml calls. Decoding a message with this gave a lot of <unknown> tags and a large piece of the binary inside the <Collection> tag. I tried to run the contents of <Collection> on its own, but it failed. Is something missing?

Also, does anyone know of a clean python implementation of the wbxml parser? Otherwise, it would be useful to use the command line or an online tool to decode these messages - it would be much easier for me to write my own ...

+3
source share
3 answers

In the end, I myself wrote a python parser. I managed to do this following the specification: http://www.w3.org/TR/wbxml/

And then take the code tables from horde.org cvs.

The open site of the mobile alliance and the documentation are terrible, it was a very complex project :(

+1
source

Oddly enough, I worked on the same problem. I am halfway writing my own Python WBXML parser, but it is not yet enough to be useful, and I have very little time to work on it right now.

<Unknown> , pywbxml/libwbxml . WBXML , , , , WBXML. libwbxml , libwbxml , . SyncML 1.0-1.2; , Nokia E71 SyncML 1.3 ( , , N95), libwbxml .

, SyncML 1.3 libwbxml. , , , pywbxml vanilla libwbxml, ... "" .

+1

I used pywbxml , I just need one patch in pywbxml.pyx:

params.langin the function wbxml2xmlaround line 25 the value is set:

params.lang = WBXML_LANG_UNKNOWN

works like a charm. The base class for the WBXMLParseError exception is also changed:

class WBXMLParseError(Exception):
0
source

Source: https://habr.com/ru/post/1698578/


All Articles