Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

Hi, I'm trying to make a synchronization function following the example of the function present in custdb.java, but I did not understand what parameters should I put in the call 'createSyncParms'.

Thanks in advance

asked 09 Sep '11, 11:00

enricoDevoteam's gravatar image

enricoDevoteam
1111
accept rate: 0%

retagged 19 Sep '11, 11:48

Graham%20Hurst's gravatar image

Graham Hurst
2.7k11843


createSyncParms(String,String) is expecting the MobiLink user name and the script version name (not username and password). The username along with the remote id help identify who is synchronizing. The version name identifies which set of MobiLink synchronization scripts to use to control what data is synchronized (how the upload is applied to the consolidated, how conflicts are resolved, and what data needs to be downloaded to a particular remote).

createSyncParms(String,String) creates a SyncParms object suitable for HTTP synchronization. createSyncParms(int,String,String) lets you select between HTTP or HTTPS synchronization.

getStreamParms() gives you access to parameters that specifically impact networking.

The next step is to provide the name or ip of the host you want to synchronize to and then what port (if not using the default 80 for HTTP and 443 for HTTPS).

The URL suffix helps you specify additional information for the URL - for example when going through the relay server as in the CustDB sample, you need to identify what user and farm to connect to. On BlackBerry devices, additional networking parameters may also be supplied here.

The rest of the SyncParms object controls the direction of data and what will be synchronized (publications allow you to subset the tables of your remote).

permanent link

answered 13 Sep '11, 17:49

PhilippeBertrand%20_SAP_'s gravatar image

PhilippeBert...
1.8k42139
accept rate: 22%

createSyncParms(String, String) returns a SyncParms class, which you use to provide information to log in to your MobiLink server. The method signature for createSyncParms is expecting a username and version name to access the MobiLink server.

Once you have your SyncParms object, you may need to specify additional synchronization options using the various .set*() modifiers.

Most synchronization applications minimally need to specify MobiLink client network protocol options, using the .getStreamParms().set*() modifiers.

permanent link

answered 09 Sep '11, 12:08

Jeff%20Albion's gravatar image

Jeff Albion
10.8k171175
accept rate: 25%

edited 14 Sep '11, 09:10

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×371
×84
×72

question asked: 09 Sep '11, 11:00

question was seen: 3,008 times

last updated: 19 Sep '11, 11:48