How to create XML setting document?

How to create XML setting document? SearchSearch
Author Message
Mikko Mäkinen
Unregistered guest
Posted on Monday, September 05, 2005 - 07:24 am:   

Hi all

I hope someone could give little help. im trying to create XML setting (MMS and WAP settings) document but im little lost here..

I know that minimal set for setting for Wap and MMS for my phone are:

APPLICATION
APPID (w2 - WAP; w4 - MMS)
TO-PROXY
ADDR (or APPADDR structure) for MMS

NAPDEF
NAPID
BEARER
NAP-ADDRESS
NAP-ADDRTYPE
CALLTYPE

PXLOGICAL
PROXY-ID
PXPHYSICAL
PHYSICAL-PROXY-ID
PHADDR
PHADDRTYPE
TO-NAPID
PORT structure

But i really dont know where to start or what to do... how i create those xml documents..?

please, could someone give any help
kpax
Unregistered guest
Posted on Monday, September 05, 2005 - 09:26 am:   

Here is the XML document i made, does it look like its correct?

<?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="PXLOGICAL">
<parm name="PROXY-ID" value="80.222.224.30"/>

<characteristic type="PXPHYSICAL">
<parm name="PHYSICAL-PROXY-ID" value="NowSMS_MMS_1"/>
<parm name="PXADDR" value="80.222.224.30"/>
<parm name="PXADDRTYPE" value="IPV4"/>
<parm name="TO-NAPID" value="WAP_GPRS"/>
<characteristic type="PORT">
<parm name="PORTNBR" value="9201"/>
</characteristic>


<characteristic type="NAPDEF">
<parm name="NAPID" value="WAP_GPRS"/>
<parm name="BEARER" value="GSM-GPRS"/>
<parm name="NAP-ADDRESS" value="internet"/>
<parm name="NAP-ADDRTYPE" value="APN"/>
<parm name="CALLTYPE" value="ANALOG-MODEM"/>
</characteristic>

<characteristic type="APPLICATION">
<parm name="APPID" value="w4"/>
<parm name="ADDR" value="http://80.222.224.30"/>
<parm name="TO-PROXY" value="www.nowsms.com"/>
</characteristic>
</characteristic>
kpax
Unregistered guest
Posted on Monday, September 05, 2005 - 09:27 am:   

duh, sorry that i changed my nickname

kpax aka Mikko Mäkinen
kpax
Unregistered guest
Posted on Monday, September 05, 2005 - 02:11 pm:   

fixed some lines. now it looks like this

<?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="NAPDEF">
<parm name="NAPID" value="WAP_GPRS"/>
<parm name="BEARER" value="GSM-GPRS"/>
<parm name="NAP-ADDRESS" value="internet"/>
<parm name="NAP-ADDRTYPE" value="APN"/>
<parm name="CALLTYPE" value="ANALOG-MODEM"/>
</characteristic>

<characteristic type="PXLOGICAL">
<parm name="PROXY-ID" value="MyProxy"/>
<characteristic type="PXPHYSICAL">
<parm name="PHYSICAL-PROXY-ID" value="80.222.224.30"/>
<parm name="PXADDR" value="80.222.224.30"/>
<parm name="PXADDRTYPE" value="IPV4"/>
<parm name="TO-NAPID" value="WAP_GPRS"/>
<characteristic type="PORT">
<parm name="PORTNBR" value="9201"/>
</characteristic>
</characteristic>

<characteristic type="APPLICATION">
<parm name="APPID" value="w4"/>
<parm name="TO-PROXY" value="80.222.224.30"/>
<parm name="ADDR" value="80.222.224.30"/>
</characteristic>
</wap-provisioningdoc>


should it work like this?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4879
Registered: 10-2002
Posted on Monday, September 12, 2005 - 11:14 pm:   

Hi Mikko,

Sorry for the delay in response.

One of the things that I often suggest to people is to intercept the XML documents that NowSMS creates when you use its web interface to submit the settings.

There is a configuration setting in NowSMS that will leave the XML documents behind (before they get converted to WBXML), so that you can intercept them to help build some templates that you might need. The configuration setting is described in the following thread:

http://support.nowsms.com/discus/messages/1/8696.html
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4880
Registered: 10-2002
Posted on Monday, September 12, 2005 - 11:21 pm:   

P.S. - Using your settings above, which appear to be just trying to set a profile for use by MMS, NowSMS creates the following XML document:

<wap-provisioningdoc>
<characteristic type="BOOTSTRAP">
<parm name="NAME" value="MyProxy" />
</characteristic>
<characteristic type="NAPDEF">
<parm name="NAME" value="MyProxy" />
<parm name="NAPID" value="MyProxy_NAPID" />
<parm name="BEARER" value="GSM-GPRS" />
<parm name="NAP-ADDRESS" value="internet" />
<parm name="NAP-ADDRTYPE" value="APN" />
<characteristic type="NAPAUTHINFO">
<parm name="AUTHTYPE" value="PAP" />
</characteristic>
</characteristic>
<characteristic type="PXLOGICAL">
<parm name="NAME" value="MyProxy" />
<parm name="PROXY-ID" value="MyProxy_Proxy" />
<characteristic type="PXPHYSICAL">
<parm name="PHYSICAL-PROXY-ID" value="MyProxy_PhProxy" />
<parm name="PXADDR" value="80.222.224.30" />
<parm name="PXADDRTYPE" value="IPV4" />
<parm name="TO-NAPID" value="MyProxy_NAPID" />
<characteristic type="PORT">
<parm name="PORTNBR" value="9201" />
<parm name="SERVICE" value="CO-WSP" />
</characteristic>
</characteristic>
</characteristic>
<characteristic type="APPLICATION">
<parm name="APPID" value="w4" />
<parm name="TO-PROXY" value="MyProxy_Proxy" />
<parm name="ADDR" value="http://80.222.224.30/" />
</characteristic>
</wap-provisioningdoc>
kpax
Unregistered guest
Posted on Thursday, September 15, 2005 - 12:34 pm:   

Hi Bryce and Thanks for your answer

I tested that message in your last reply, and it keep crashing my phone =) i have to remove battery to get the phone up again.

I will check tomorrow that link you sent, when i have more time.

Those last settings i posted before you seems to work. only problem is that when i receive those settings via OTA and save those to phone, those will be saved without any connection profile name. there is just empty space on the connection profile list. but when i press "edit" i can see all the correct settings. any idea how can i get the name shown also?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4898
Registered: 10-2002
Posted on Thursday, September 15, 2005 - 08:01 pm:   

What phone is it that is crashing?

For adding a connection profile name to your settings, try adding the different <parm name="NAME" value="MyProxy" /> settings to different <characteristic> sections. Different phones tend to read the connection settings name from different places.

-bn
kpax
Unregistered guest
Posted on Wednesday, September 28, 2005 - 10:43 am:   

I succesfully added connection profile name, thanks Bryce.

now i only have one problem. Client provisioning test case "Multiple application settings in one configuration context" says this

"1. Create a configuration context on the provisioning server including multiple application settings (e.g. MMS, Email, DM, DS)."

I have no idea how to create document with multiple application settings... any ideas for this?


Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5062
Registered: 10-2002
Posted on Wednesday, October 05, 2005 - 07:45 pm:   

It's talking about multiple of these sections:

<characteristic type="APPLICATION">

So that you are then provisioning multiple applications.

Try www.forum.nokia.com, and they have provisioning information documents for their Series 60 and Series 40 devices, that will give you some examples.