SYNCML OTA settings

SYNCML OTA settings SearchSearch
Author Message
Dhaval
Unregistered guest
Posted on Wednesday, March 31, 2004 - 10:08 pm:   

I was trying to send OTA SyncML settings but it has only calendar and contacts database if i want to add Tasks database. How should i do it? i tried appending the link with &OTASYNCML_TASKS_URI=CON&OTASYNCML_TASKS_CTTYPE=text%2Fx-vcard&OTASYNCML_TASKS_U SERNAME=&OTASYNCML_TASKS_PASSWORD=&OTASYNCML_TASKS_AUTHSCHEME=BASIC
but it did not work.. Can someone help??
email me please
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2237
Registered: 10-2002
Posted on Thursday, April 01, 2004 - 07:51 pm:   

Hi,

I'm not an expert in this area, but from what I've seen, task objects use the same MIME type as calendar objects. The vTodo object is a special type of calendar object.

Why this presents a problem is that the OTA commands for configuring the SyncML client on the phone allows you to send settings for synchronising different databases based upon the MIME content type.

The available content types are "text/x-vcard" (or "text/card") and "text/x-vcalendar" (or "text/calendar").

I am not aware of a separate MIME type for tasks, which would allow separate sync settings to be defined just for tasks.

If you want to investigate this matter further ...

The "OTASYNCML_" parameters that we support actually just build an OTA SyncML settings document according to the Nokia/Ericsson OTA Specification 7.1.

NowSMS then converts that XML document into WBXML format for transmission to the phone. The typical XML document created by using the "OTASYNCML_" parameters in NowSMS looks something like this:

<SyncSettings>
<Version>1.0</Version>
<HostAddr>http://www.syncml.com/</HostAddr>
<Port>80</Port>
<RemoteDB>
<CTType>text/x-vcard</CTType>
<CTVer>2.1</CTVer>
<URI>./ContactsURI</URI>
<Name>Contacts</Name>
<Auth>
<AuthScheme>1</AuthScheme>
<Username>ContactsUserName</Username>
<Cred>Q29udGFjdHNQYXNzd29yZA==</Cred>
</Auth>
</RemoteDB>
<RemoteDB>
<CTType>text/x-vcalendar</CTType>
<CTVer>1.0</CTVer>
<URI>./CalendarURI</URI>
<Name>Calendar</Name>
<Auth>
<AuthScheme>1</AuthScheme>
<Username>CalendarUserName</Username>
<Cred>Q2FsZW5kYXJQYXNzd29yZA==</Cred>
</Auth>
</RemoteDB>
<Name>SyncML</Name>
<Auth>
<AuthLevel>1</AuthLevel>
<AuthScheme>1</AuthScheme>
<Username>SyncServerUserName</Username>
<Cred>U3luY1NlcnZlclBhc3N3b3Jk</Cred>
</Auth>
<ConRef>
<ConType>1</ConType>
<RefID>WAPProfile</RefID>
</ConRef>
</SyncSettings>

In addition to using our form or these variables to create the document, you can also create a raw document, and then send it out via the "Send XML Settings" menu option in the NowSMS web interface.

When you have settings that work properly, you can store them in the OTA subdirectory of NowSMS, and send them out by issuing a URL request of http://server.ip:port/?PhoneNumber=xxxxx&OTASYNCML=filename

(Where filename.OTA is the name of the XML settings document in the OTA subdirectory of NowSMS.)

It is also possible to post the settings to NowSMS over HTTP POST ... which I can also describe if you are interested.

Basically, NowSMS will recognise this is a "SyncSettings" XML document, and will perform the necessary WBXML encoding to send it over the air.

You can download the specifications for these XML documents from http://www.sonyericsson.com/developer. After logging in to the web site, access the following URL to download:

http://developer.sonyericsson.com/getDocument.do?docId=65055

(If the above link does not work, you'll find the OTA documents on the "Miscellaneous" page.)

So I'm not sure what to tell you, I don't see any way that we could define a separate "tasks" database.

-bn
Anonymous
 
Posted on Wednesday, April 28, 2004 - 03:59 pm:   

Hi!

There is a way to differ between the calendar and task databases with CGI scripting. Chapter 10.18 in the above mentioned spec.
In the URI element for the database name simply add TODO or EVENT after a questionmark to denote which databse this is valid for.
Example:
<RemoteDB>
<CTType>text/x-vcalendar</CTType>
<CTVer>1.0</CTVer>
<URI>Calendar?EVENT</URI>
<Name>Calendar DB</Name>
</RemoteDB>
<RemoteDB>
<CTType>text/x-vcalendar</CTType>
<CTVer>1.0</CTVer>
<URI>Todo?TODO</URI>
<Name>Todo DB</Name>
</RemoteDB>

br
/tom
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2410
Registered: 10-2002
Posted on Wednesday, April 28, 2004 - 06:40 pm:   

Tom,

I'd love to see a working example of XML settings that can be used to configure the Tasks database.

My experience is that if I include multiple RemoteDB sections for the same content type, the phone rejects them. At least that is the case with the P900.

I'd certainly welcome any further input on this issue.

-bn
cwtan
Unregistered guest
Posted on Tuesday, May 11, 2004 - 10:45 am:   

As you mention above : "It is also possible to post the settings to NowSMS over HTTP POST "

I quite interested on it, would you mind describe more detail on it.
Thank,
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2572
Registered: 10-2002
Posted on Wednesday, May 12, 2004 - 07:23 pm:   


quote:

As you mention above : "It is also possible to post the settings to NowSMS over HTTP POST "

I quite interested on it, would you mind describe more detail on it.




No problem.

Basically, you just open an HTTP connection to the port for the NowSMS web interface, and then you issue an HTTP POST:

POST /?PhoneNumber=xxxxxxxx&OTA=POST HTTP/1.0
Content-Length: yyyyyy
(*blank line*)
<xml settings document>

When submitting an OTA request in this manner, the HTTP POST request must include a “Content-Length:” header. This should match the length of your XML document.

NowSMS v5.5 and later will scan the XML content to automatically determine what the content type is ... so that it can be encoded properly for sending over the air.

Earlier versions of NowSMS required specific flag settings in the URL. (For example, instead of OTA=POST, you would use OTASyncML=POST for SyncML settings, or OTAOMA=POST for OMA settings.)

-bn