on 2017 Jul 07 2:52 PM
Have found no info in UltraLiteJ API Reference with this one. When Attempting to sync, after setting the parameters, I get the following exception: "Error -1224: Synchronization profile '<null>' has invalid parameter 'host'." This is what I have set the AdditionalParms to: "SendColumnNames=false;SendDownloadACK=true;host=cdodevapp02.cdotech.local;port=8060;buffer_size=16000;timeout=240;persistent=on;version=1.1" I see no other field in SyncParms that would get the "host". The one that seemed most logical "StreamParms" is a read-only property. So I'm stumped.
Both StreamHTTPParms and StreamHTTPSParms have methods setHost() and setPort(). Here is an example:
SyncParms syncParms = myConnection.createSyncParms( SyncParms.HTTPS_STREAM, "MyUniqueMLUserID", "MyMLScriptVersion" ); StreamHTTPSParms httpsParms = (StreamHTTPSParms) syncParms.getStreamParms(); httpsParms.setHost("MyMLHost"); httpsParms.setPort(1234);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think your sample is for pre 17 version of Ultralink 17. There are almost no classes. Only interfaces. Here is my code... SyncParms syncParams = dbConn.CreateSyncParms(syncStream, syncInfo.ScriptVersion, syncInfo.UserName); switch (syncStream) { case (SyncParms.HttpStream): IStreamHTTPParms httpParams = syncParams.StreamParms as IStreamHTTPParms;
At this point httpParams is NULL. syncParams.StreamParms says its http, a 1.
User | Count |
---|---|
67 | |
11 | |
10 | |
10 | |
9 | |
8 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.