NCL Community Forum Index
  Home   Login   Register   Help   Memberlist   Search   NCL  

NCL Community Forum Index » Provato Support » Sending Nokia OTA Syncml provisioning messages
Post new topic  Reply to topic View previous topic :: View next topic 
Sending Nokia OTA Syncml provisioning messages
PostPosted: Thu Feb 02, 2006 7:18 pm Reply with quote
Administrator
Site Admin
Joined: 11 Aug 2004
Posts: 237




New Provato 1.3.1 feature available after Build date 02/02/2006

To send an Nokia OTA SyncML message (7.0 Specification) the following message attributes must be specified:
  • Content Type set to "text/vnd.nokia.syncset+xml" or ContentTypes.NOKIA_OTA_SYNCML
  • Content - the XML configuration
  • The destination of the message.
The XML must comply with the Nokia OTA SyncML DTD.

An example Syncml OTA message is below.


Code:

        VivatoMessage syncml = new VivatoMessage();

        syncml.setContentType(ContentTypes.NOKIA_OTA_SYNCML);

        String otaXml =
                "<SyncSettings>\n" +
                "   <Version>1.0</Version>\n" +
                "   <HostAddr>http://www.syncserver.com/sync</HostAddr>\n" +
                "   <Port>8080</Port>\n" +
                "   <RemoteDB>\n" +
                "      <CTType>text/x-vcard</CTType>\n" +
                "      <CTVer>2.1</CTVer>\n" +
                "      <URI>./Contacts?CLASS&amp;EQ;PRIVATE</URI>\n" +
                "      <Name>Private Contact DB</Name>\n" +
                "      <Auth>\n" +
                "         <AuthScheme>1</AuthScheme>\n" +
                "         <Username>james</Username>\n" +
                "         <Cred>cHdk</Cred> <!-- Base64 coded 'pwd' -->\n" +
                "      </Auth>\n" +
                "   </RemoteDB>\n" +
                "   <RemoteDB>\n" +
                "      <CTType>text/x-vcalendar</CTType>\n" +
                "      <CTVer>1.0</CTVer>\n" +
                "      <URI>./Calendar</URI>\n" +
                "      <Name>Calendar DB</Name>\n" +
                "   </RemoteDB>\n" +
                "   <Name>PIM Service</Name>\n" +
                "   <Auth>\n" +
                "      <AuthLevel>2</AuthLevel>\n" +
                "      <AuthScheme>1</AuthScheme>\n" +
                "      <Username>james</Username>\n" +
                "      <Cred>Ym9uZA==</Cred> <!-- Base64 coded 'bond' -->\n" +
                "   </Auth>\n" +
                "   <Auth>\n" +
                "      <AuthLevel>1</AuthLevel>\n" +
                "      <AuthScheme>1</AuthScheme>\n" +
                "      <Username>bond</Username>\n" +
                "      <Cred>Ym9uZA==</Cred> <!-- Base64 coded 'bond' -->\n" +
                "   </Auth>\n" +
                "   <ConRef>\n" +
                "      <ConType>1</ConType>\n" +
                "      <RefID>My AP</RefID>\n" +
                "   </ConRef>\n" +
                "</SyncSettings>";


        syncml.setContent(otaXml);

        syncml.setDestination("+353872352079");



For those of you not using the Java Api but SOAP directly
  • ContentTypes.NOKIA_OTA_SYNCML is "text/vnd.nokia.syncset+xml"


The Nokia OTA Syncml DTD is:
Code:

<!--
Nokia Syncml v7.0 Document Type Definition.

<?xml version="1.0"?>

<SyncSettings>
...
</SyncSettings>
-->


<!ELEMENT SyncSettings (Version, HostAddr, Port?, RemoteDB+, Name?, Auth*, ConRef?)>
<!ELEMENT Version (#PCDATA)>
<!ELEMENT HostAddr (#PCDATA)>
<!ELEMENT Port (#PCDATA)>
<!ELEMENT RemoteDB ((CTType, CTVer*)+, URI, Name?, Auth?)>
<!ELEMENT CTType (#PCDATA)>
<!ELEMENT CTVer (#PCDATA)>
<!ELEMENT URI (#PCDATA)>
<!ELEMENT Name (#PCDATA)>
<!ELEMENT Auth (AuthLevel?, AuthScheme, ((Username | Cred)| (Username, Cred)))>
<!ELEMENT AuthLevel (#PCDATA)>
<!ELEMENT AuthScheme (#PCDATA)>
<!ELEMENT Username (#PCDATA)>
<!ELEMENT Cred (#PCDATA)>
<!ELEMENT ConRef (ConType, ((Bearer?, AddrType, Addr) | RefID))>
<!ELEMENT ConType (#PCDATA)>
<!ELEMENT Bearer (#PCDATA)>
<!ELEMENT AddrType (#PCDATA)>
<!ELEMENT Addr (#PCDATA)>
<!ELEMENT RefID (#PCDATA)>
View user's profile Send private message

Sending Nokia OTA Syncml provisioning messages
 NCL Community Forum Index » Provato Support
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic