Hello,

sorry it should be problem by text encoding ( for 'TAB'), so here is it
again:

-------------------------------
<?xml version="1.0" encoding="UTF-8" standalone = "yes" ?>
<!DOCTYPE wap-provisioningdoc PUBLIC "-//WAPFORUM//DTD PROV 1.0//EN" "
http://www.wapforum.org/DTD/prov.dtd";>
<wap-provisioningdoc>
<!-- WLAN AP profile settings -->
<characteristic type="NAPDEF">
<parm name="NAME" value="wlanssid"></parm>
<parm name="NAPID" value="wlanssid"></parm>
<parm name="PROVIDER-ID" value="wlanssid"></parm>
<parm name="BEARER" value="WLAN"></parm>
<characteristic type="WLAN">
<parm name="PRI-SSID" value="wlanssid"></parm>
<parm name="NETMODE" value="INFRA"></parm>
<parm name="SECMODE" value="WPA-PRESHARED-KEY"></parm>
<parm name="WPA-PRES-KEY-ASC" value="password"></parm>
</characteristic>
</characteristic>
</wap-provisioningdoc>
-------------------------------

Regards

Pai

---------- Forwarded message ----------
From: Nikos Balkanas <[email protected]>
Date: 2009/2/25
Subject: Re: xml to wbxml compiler incorrect by 1.4.2!?
To: Pai Peng <[email protected]>, [email protected]


 Hi,

No, it is not a problem for me to get it. Input string is the important
part. What is the deal with the BB's? I imagine they are not part of the
message. I have to implement something important now, but I will look at it
immediately after.

Thanx,
Nikos

----- Original Message -----
*From:* Pai Peng <[email protected]>
*To:* [email protected]
*Sent:* Wednesday, February 25, 2009 9:50 AM
*Subject:* Fwd: xml to wbxml compiler incorrect by 1.4.2!?

Hello Nikos,


so as example for WLAN Access Point OMA Provisioning for Nokia:

<?xml version="1.0" encoding="UTF-8" standalone = "yes" ?>
<!DOCTYPE wap-provisioningdoc PUBLIC "-//WAPFORUM//DTD PROV 1.0//EN" "
http://www.wapforum.org/DTD/prov.dtd";>
<wap-provisioningdoc>
<!-- WLAN AP profile settings -->
<characteristic type="NAPDEF">
Β Β Β  <parm name="NAME" value="wlanssid"></parm>
Β Β Β  <parm name="NAPID" value="wlanssid"></parm>
Β Β Β  <parm name="PROVIDER-ID" value="wlanssid"></parm>
Β Β Β  <parm name="BEARER" value="WLAN"></parm>
Β Β Β  <characteristic type="WLAN">
Β Β Β  Β Β Β  <parm name="PRI-SSID" value="wlanssid"></parm>
Β Β Β  Β Β Β  <parm name="NETMODE" value="INFRA"></parm>
Β Β Β  Β Β Β  <parm name="SECMODE" value="WPA-PRESHARED-KEY"></parm>
Β Β Β  Β Β Β  <parm name="WPA-PRES-KEY-ASC" value="password"></parm>
Β Β Β  </characteristic>
</characteristic>
</wap-provisioningdoc>


the encoded wbxml binary format can be read in debug mode of smsc. (encoded
by kannel with file ota_compile.c, not wmlsc or wmlsadm). Sorry I can't read
the binary format directly on this PC, and it shouldn't be a problem for you
to get it, istn't it?



As document:
http://www.forum.nokia.com/info/sw.nokia.com/id/1b4c4ecc-f788-44fa-98bc-1654042eb010/S60_Platform_OMA_Client_Provisioning_v2_1_en.pdf.html


Regards

Pai



---------- Forwarded message ----------
From: Nikos Balkanas <[email protected]>
Date: 2009/2/25
Subject: Re: xml to wbxml compiler incorrect by 1.4.2!?
To: Pai Peng <[email protected]>, [email protected]


 Hi,
Β
It cannot be a problem by Nokia. Otherwise libwbxml2 wouldn't encode it.
More likely it seems to be a kannel hickup. Again I would appreciate if
someone could send input string, string encoded by kannel (wmlsc, wmlsadm,
etc.) and libwbxml2 so that I can track the problem. This could make things
easier for anybody involved, since you wouldn't have to create the
wbxmlΒ with libwbxml2 and then feedΒ it into kannel.
Β
BR,
Nikos

 ----- Original Message -----
*From:* Pai Peng <[email protected]>
*To:* [email protected]
 *Sent:* Wednesday, February 25, 2009 1:30 AM
*Subject:* Fwd: xml to wbxml compiler incorrect by 1.4.2!?

Hello Zillur,

thanks for sharing your information, just after solved my problem. It is a
bit later for me, but should be not for the following people.


To Nikos:

What I can confirm is, that the encoded WBXML by Kannel can be decoded into
XMl by wbxml Library.

Only the Nokia looks like not to be compatible with Kannel by OMA
provisioning (WBXML).

There is no reference for Nokia WBXML standard, and I can't figure out the
problem on the Nokia device. But if I find something useful, i will share
with you to improve the Kannel by Nokia OMA provisioning.


Regards

Pai
 ---------- Forwarded message ----------
From: zillur rahman <[email protected]>
Date: Mon, Feb 23, 2009 at 6:31 PM
Subject: Re: xml to wbxml compiler incorrect by 1.4.2!?
To: Pai Peng <[email protected]>


Hi Pai,

I had a little bit of same probelem. I tried to send GPRS OMA
configuration Message through Kannel. But at the Nokia and all other
sets message come in invalid format. later Ξ’Β used xml2wbxml tool in
Linux and send the sms using UDH through Kannel. Now all nokia set
successfully received the configuration message. At that time i
studied on OAM configuation Message to configure GPRS,MMS etc. It
seems everything is possible by yourself.

Thanks
Zillur


On Wed, Feb 4, 2009 at 1:15 AM, Pai Peng <[email protected]> wrote:
> hello,
>
>
> i have dumped the wbxml data for a OTA-Prov XML into a binary file, which
> data is converted by ota_compiler.c.
>
> With libxbxml tool (convert wbxml back to xml) to check validity, I got
> error by wbxml2xml:
>
> ***************************
> Ξ’Β Converting file: output.wbxml
> (0) Parsed version: '0x1'
> (1) Parsed publicid: '0x6'
> (2) Parsed charset: '0x2F'
> (3) Parsing strtbl
> Ξ’Β  Ξ’Β  Ξ’Β  Checking PublicID
> Ξ’Β  Ξ’Β  Ξ’Β  PublicID token: 0x6
> Ξ’Β  Ξ’Β  Ξ’Β  PublicID : '-//WAPFORUM//DTD SL 1.0//EN'

> (35) Parsing body
> (35) Parsing element
> (35) Parsing stag
> (36) Parsing content: '0x33'
> (36) Parsing element
> (36) Parsing stag
> (37) Parsing content: '0x34'
> (37) Parsing element
> (37) Parsing stag
> (38) Parsing content: '0x34'
> (38) Parsing element
> (38) Parsing stag
> (39) Parsing content: '0x39'
> (39) Parsing element
> (39) Parsing stag
> (40) Parsing content: '0x44'
> (40) Parsing element
> (40) Parsing stag
> (40) Parsing literalTag
> WBXML Parser failed at 41 - token: 34 (Invalid String Table Index)
> wbxml2xml convertion failed - WBXML Parser Error: Invalid String Table
Index
> Current allocations: 0 areas, 0 bytes
> Highest number of allocations: 33 areas
> Highest memory usage: 6001 bytes
>
> I can be sure, that the wbxml2xml works corretly.
> So my question is, if the kannel's implementation of wbxml is correct or
the
> compatibility protocol with libwbxml? has somebody got the same problem by
> XML to WBXML converting?
>
>
> Regards
>
> Pai
>

Reply via email to