Partager via


w2 APPLICATION Configuration Service Provider Examples for OMA Client Provisioning

4/8/2010

This example can be used as a template to configure settings for the APPLICATION configuration service provider when w2 is the APPID. To use this example, you must replace the values as appropriate. For more information about the syntax of the provisioning file, see OMA Client Provisioning Files.

Code Example

This example creates the following favorites in a folder named Shopping:

  • Phones
  • Coffee
  • Travel

On Windows phones, these favorites are listed in positions 0, 1 & 2. In this example, www.cars_inc.com is set as the Start page.

Note

You can provision multiple w2 sections on a device. However, only one w2 file should have the STARTPAGE parameter set. If more than one has this parameter set, the last one seen is set as the Start page.

<wap-provisioningdoc version="1.1">
  <characteristic type="APPLICATION">
     <parm name="APPID" value="w2"/>
     <parm name="NAME" value="Shopping"/>
     <characteristic type="RESOURCE">
        <parm name="URI" value="https://www.thephone-company.com"/>
        <parm name="NAME" value="Phones"/>
        <parm name="ORDER" value="0"/>
     </characteristic>
     <characteristic type="RESOURCE">
        <parm name="URI" value="https://www.fourthcoffee.com"/>
        <parm name="NAME" value="Coffee"/>
        <parm name="ORDER" value="1"/>
        <parm name="STARTPAGE"/>
     </characteristic>
     <characteristic type="RESOURCE">
        <parm name="URI" value="https://www.margiestravel.com"/>
        <parm name="NAME" value="Travel"/>
        <parm name="ORDER" value="2"/>
     </characteristic>
  </characteristic>
</wap-provisioningdoc>

Remarks

For the device to correctly decode provisioning XML that contains the APPLICATION characteristic, it must support OMA Client Provisioning version 1.1.

One provisioning XML file typically contains configuration information for multiple configuration service providers. To use this example, you must replace the values as appropriate, and add the node as a child of the OMA Client Provisioning file. For information about the syntax of this file, see OMA Client Provisioning Files. For examples, see OMA Client Provisioning XML File Examples.

See Also

Reference

APPLICATION Configuration Service Provider

Concepts

Configuration Service Provider Reference for Windows Mobile Devices