Compartilhar via


Sync Configuration Service Provider Examples for OMA DM

4/8/2010

This example shows the Sync Configuration Service Provider. In this example, Secure Sockets Layer (SSL) is used for connections. Tasks, Mail, Calendar, and Contacts are synchronized and conflicts are resolved by replacing information on the device.

<Atomic>
   <CmdID>1</CmdID>
   <Replace>
      <CmdID>3</CmdID>
      <Item>
         <Target>
            <LocURI>./Vendor/MSFT/Sync/Connection/User</LocURI>
         </Target>
         <Meta>
            <Format xmlns="syncml:metinf">chr</Format>
         </Meta>
         <Data>username</Data>   
      </Item>
      <Item>
         <Target>
            <LocURI>./Vendor/MSFT/Sync/Connection/Server</LocURI>
         </Target>
         <Meta>
            <Format xmlns="syncml:metinf">chr</Format>
         </Meta>
         <Data>Servername</Data>   
      </Item>
      <Item>
         <Target>
            <LocURI>./Vendor/MSFT/Sync/Connection/Domain</LocURI>
         </Target>
         <Meta>
            <Format xmlns="syncml:metinf">chr</Format>
         </Meta>
         <Data>domainname</Data>   
      </Item>
      <Item>
         <Target>
            <LocURI>./Vendor/MSFT/Sync/Calendar/Enabled</LocURI>
         </Target>
         <Meta>
            <Format xmlns="syncml:metinf">int</Format>
         </Meta>
         <Data>1</Data>   
      </Item>
      <Item>
         <Target>
            <LocURI>./Vendor/MSFT/Sync/Contacts/Enabled</LocURI>
         </Target>
         <Meta>
            <Format xmlns="syncml:metinf">int</Format>
         </Meta>
         <Data>1</Data>   
      </Item>
      <Item>
         <Target>
            <LocURI>./Vendor/MSFT/Sync/Mail/Enabled</LocURI>
         </Target>
         <Meta>
            <Format xmlns="syncml:metinf">int</Format>
         </Meta>
         <Data>1</Data>   
      </Item>
      <Item>
         <Target>
            <LocURI>./Vendor/MSFT/Sync/Settings/PeakStartTime</LocURI>
         </Target>
         <Data>0900</Data>   
      </Item>
      <Item>
         <Target>
            <LocURI>./Vendor/MSFT/Sync/Settings/PeakEndTime</LocURI>
         </Target>
         <Data>1700</Data>   
      </Item>
      <Item>
         <Target>
            <LocURI>./Vendor/MSFT/Sync/Settings/PeakFrequency</LocURI>
         </Target>
         <Meta>
            <Format xmlns="syncml:metinf">int</Format>
         </Meta>
         <Data>5</Data>   
      </Item>
      <Item>
         <Target>
            <LocURI>./Vendor/MSFT/Sync/Settings/OffPeakFrequency</LocURI>
         </Target>
         <Meta>
            <Format xmlns="syncml:metinf">int</Format>
         </Meta>
         <Data>30</Data>   
      </Item>
   </Replace>
</Atomic>

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 SyncBody node in an OMA DM provisioning file. For more information about the syntax of the provisioning file, see OMA DM Provisioning Files.

See Also

Tasks

Sync Configuration Service Provider Examples for OMA Client Provisioning