Reply
Old October 5th, 2006 Top | #1
 
sachinjain_30's Avatar
OSNN Junior Addict
Joined: September 2006
Posts: 4
Reputation: 0
Power: 0

Default methods for WBXML decoding

We are getting a Wap Puah message to a push client registered to the push router on WM5.0 device. The message is in WBXML format. When we used the libwbxml library [http://libwbxml.aymerick.com:8080/] to convert it back to xml, the tool was unable to perfrom the conversion. The xml file is :
-----------------------------------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE wap-provisioningdoc PUBLIC "-//WAPFORUM//DTD PROV 1.0//EN" "http://www.wapforum.org/DTD/prov.dtd">
<wap-provisioningdoc version="1.0">
<characteristic type="APPLICATION">
<parm name="APPID" value="w5"/>
<parm name="TO-NAPID" value="Browsing_GPRS" />
<parm name="NAME" value="Superman SyncML"/>
<parm name="ADDR" value="http://metropolis.com:8080/service/sync"/>
<characteristic type="RESOURCE">
<parm name="URI" value="./contacts"/>
<parm name="NAME" value="Contacts DB"/>
<parm name="AACCEPT" value="text/x-vcard"/>
</characteristic>
<characteristic type="RESOURCE">
<parm name="URI" value="./calendar"/>
<parm name="NAME" value="Calendar DB"/>
<parm name="AACCEPT" value="text/x-vcalendar"/>
</characteristic>
<characteristic type="APPAUTH">
<parm name="AAUTHNAME" value="name4"/>
<parm name="AAUTHSECRET" value="password4"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
-----------------------------------------------------------------------------

The WBXML file, received in the device is :

 j ĹFĆ U‡6w5 ‡"BrowsingGPRS ‡Superman SyncML ‡4http://metropolis.com:8080/service/sync ĆY‡:./contacts ‡Contacts DB ‡.text/x-vcard ĆY‡:./calendar ‡Calendar DB ‡.text/x-vcalendar ĆW‡1name4 ‡2password4 
-----------------------------------------------------------------------------

Whereas the WBXML file generated by libwbxml library is:

 j ĹFĆ U‡6 w5 ‡"Browsing_GPRS ‡Superman SyncML ‡ 4 http://metropolis.com:8080/service/sync Ć Y‡: ./contacts ‡Contacts DB ‡ . text/x-vcard Ć Y‡: ./calendar ‡Calendar DB ‡ . text/x-vcalendar Ć W‡1 name4 ‡ 2 password4 
-----------------------------------------------------------------------------

The main difference between both of the files seems to be :
[i] The WBXML conversion of ---------------- value="Browsing_GPRS"
by libwbxml library is -------------------------- Browsing_GPRS
whereas in the file received in device is -- BrowsingGPRS
Other differences is in spaces


Is the XML to WBXML conversion can be done in many ways (i.e. is it tool dependent, as WBXML files generated by libwbxml library and received in the device are different.) ?
We have to convert the WBXML file to XML, so that it can be parsed. Which tool should we use for conversion?
sachinjain_30 is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
WBXML to XML conversion on WM5.0 PPC sachinjain_30 Portable Devices & Gadgets 0 September 28th, 2006 3:14pm
Dictionary For Decoding Women's Personal Ads Skipholiday Funny Farm 6 May 3rd, 2006 12:09pm
Java Methods PseudoKiller Web Design & Coding 20 March 31st, 2004 2:26am
Backup methods? jkoXP Windows Desktop Systems 5 September 16th, 2003 10:51pm
Other Methods With Ramdisk!?? Hercules Windows Desktop Systems 2 April 13th, 2002 11:13pm