Setting Up the Synchronization Profile

You can set SAP Mobile Server synchronization channel information by calling the synchronization profile's setter method. By default, this information includes the server host, port, domain name, certificate and public key that are pushed by the message channel during the registration process.

Settings are automatically provisioned from the SAP Mobile Server. The values of the settings are inherited from the application connection template used for the registration of the application connection (automatic or manual). You must make use of the connection and security settings that are automatically used by the Object API.

Typically, the application uses the settings as sent from the SAP Mobile Server to connect to the SAP Mobile Server for synchronization so that the administrator can set those at the application deployment time based on their deployment topology (for example, using Relay Server, using e2ee security, or a certificate used for the intermediary, such as a Relay Server Web server). See the Applications and Application Connection Templates topics in System Administration.

Set up a secured connection using the ConnectionProfile object.

  1. Retrieve the synchronization profile object using the SAP Mobile Platform database's getSynchronizationionProfile method.
    SUPConnectionProfile* cp = [SMP101SMP101DB getSynchronizationProfile];
  2. Set the connection fields in the ConnectionProfile object.
    SUPConnectionProfile* cp = [SMP101SMP101DB getSynchronizationProfile];
    [cp setServerName:@"xxxx"];
    [cp setPortNumber:2480]; 
    
Related reference
Synchronization Profile