Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » MobiLink - 客户端管理 » MobiLink 客户端简介 » MobiLink 客户端网络协议选项

 

url_suffix

指定要向同步过程中发送的每个 HTTP 请求的第一行中的 URL 添加的后缀。

语法
url_suffix=suffix

suffix 的语法取决于您所使用的重定向器的类型:

重定向器 suffix 的语法
ISAPI
exe_dir/iaredirect.dll/ml/[server-group/]

其中 exe-diriaredirect.dll 的位置。

NSAPI
mlredirect/ml/[server-group/]

其中 mlredirect 是在 obj.conf 文件中映射的名称。

Apache 您在 httpd.conf 文件的重定向器 <location> 标记中选择的任何内容。
Servlet
iaredirect/ml/
M-Business Anywhere 您在 sync.conf 文件的重定向器 <location> 标记中选择的任何内容。
协议
支持附注
缺省值

缺省值为 MobiLink

注释

通过代理或 Web 服务器进行同步时,可能需要 url_suffix 才能找到 MobiLink 服务器。

只有某些重定向器支持服务器组。有关详细信息,请参见[external link] http://www.sybase.com/detail?id=1062632

有关在使用重定向器时如何设置此选项的信息,请参见为重定向器配置 MobiLink 客户端和服务器

有关如何设置 dbmlsync 网络协议选项的信息,请参见CommunicationAddress (adr) 扩展选项

有关如何设置 UltraLite 网络协议选项的信息,请参见UltraLite 同步流的网络协议选项

另请参见
示例

以下 SQL 语句将创建一个名为 sales5322 的同步用户,该用户将通过 HTTPS 进行同步。假设 MobiLink 服务器在公司防火墙后面运行,并且使用重定向器(与 NSAPI Web 服务器连接的反向代理)将同步请求重定向给该服务器。该 MobiLink 用户将同步到 URL https://www.mycompany.com:80/mlredirect/ml/

CREATE SYNCHRONIZATION USER sales5322
TYPE https
ADDRESS 'host=www.mycompany.com;port=80;url_suffix=mlredirect/ml/'
示例

以下示例通过 ISAPI 重定向器为 UltraLite 客户端设置 HTTP。命令行的所有内容必须在一行中输入。

mlsrv11 -c "dsn=SQL Anywhere 11 CustDB"
  -dl -fr -ot mlserver.mls -zu+ -v+
  -x http(port=8081)

要与 ulsync 进行同步,请运行类似以下的命令:

ulsync -c "dbf=custdb.udb" 
  -v "MobiLinkUid=50;ScriptVersion=custdb 11.0;
   Stream=http(port=80;url_suffix=Scripts/iaredirect.dll/ml/)"