MobileTechReview News, Reviews and Forums

Windows Mobile, Pocket PCs >> Pocket PC General Discussion

Pages: 1
junior member

Reged: 09/25/06
Posts: 4
methods for WBXML decoding
      #25422 - 10/05/06 03:20 PM

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 [] 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" "">
<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=""/>
<characteristic type="RESOURCE">
<parm name="URI" value="./contacts"/>
<parm name="NAME" value="Contacts DB"/>
<parm name="AACCEPT" value="text/x-vcard"/>
<characteristic type="RESOURCE">
<parm name="URI" value="./calendar"/>
<parm name="NAME" value="Calendar DB"/>
<parm name="AACCEPT" value="text/x-vcalendar"/>
<characteristic type="APPAUTH">
<parm name="AAUTHNAME" value="name4"/>
<parm name="AAUTHSECRET" value="password4"/>

The WBXML file, received in the device is :

 j ?F? U?6w5 ?"BrowsingGPRS ?Superman SyncML ?4 ?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 ? 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 :
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?

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Extra information
0 registered and 14 anonymous users are browsing this forum.

Moderator:  Greg, Jacob_Spindel, LisaG, Tong Zhang 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is disabled

Topic views: 6333

Rate this topic

Jump to

Contact the Folks at | Privacy statement Go to homepage

Powered by UBB.threads™ 6.5.5