How to send WBXML | Search |
NowSMS Support Forums ⬆ WAP Technical Discussions (unsupported) ⬆ Archive through February 16, 2009 ⬆ |
◄ ► |
Author | Message | |||
chenyuchang New member Username: Chenyu Post Number: 2 Registered: 12-2008 |
I want to send WBXML to my device, but I don't know how to do it.Could anyone help me? I know my WBXML is UDH: 0605040B8423F0 Content: 6D0601B6030B6A106368656E79754144445F475052533100C54503312E310001C651018715060377 77772E6F70657261746F722E636F6D00018707060344656661756C7450726F78790001C65201872F 060350524F58595F5741505F3100018720060331302E3133382E3235352E31323900018722068300 01C6530187230603383038300001010101C65501871106830001871006AB01870706036368656E79 2773204750525320436F6E6E656374696F6E0001870806032B585858585858585858585800018709 068901872706033136382E3136382E3136382E31363700018728068501C65A01870C069A01870D06 036368656E797520757365720001870E06036368656E79752773207365637265740001010101 How to send above content? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 355 Registered: 08-2008 |
It doesn't look like you just have WBXML ... it looks like you have the complete WSP connectionless push PDU (WBXML is the main payload of that PDU), and you are trying to send WBXML of the content type "application/vnd.wap.connectivity-wbxml". If you were sending this via the NowSMS web interface, you could specify your UDH in the "User Data Header" field ... and your content in the "Binary Data" field. NowSMS would then perform the necessary segmentation of the message. If you're sending this yourself, then you'd have to do this segmentation. Also ... I notice that your WBXML is not signed. Many devices will not accept OMA Provisioning Content messages that are not signed with at least a USERPIN. -- Des NowSMS Support | |||
chenyuchang New member Username: Chenyu Post Number: 3 Registered: 12-2008 |
Thanks for your information, I have sent this successfully. But I have one more question. I want to send a MSFT own attribute ,called "mwid", how to encode this? The whole tag is : <characteristic type="www.operator.com" mwid="1"> binary: C650307777772E6F70657261746F722E636F6D0001 decode: characteristic:C6 type:50 inline String:03 77 77 77 2E 6F 70 65 72 61 74 6F 72 2E 63 6F 6D w w w . o p e r a t o r . c o m end of string: 00 end of attribute:01 how to insert "mwid="1""? | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 7728 Registered: 10-2002 |
You'd have to go back to the WBXML specification and look at the encoding of literal attribute names. I see in another thread (http://support.nowsms.com/discus/messages/1/24633.html) that you are trying to use NowSMS, but NowSMS is not supporting this mwid parameter, so please see my reply there with an update that will support it. -bn | |||
chenyuchang New member Username: Chenyu Post Number: 6 Registered: 12-2008 |
I had read WBXML specification and understood how to encode literal attribute names. Your update is so great that I don't have to encode WBXML by myself.Thanks for your help. Have a nice day! |