如何使用 ridc 在 UCM 中导入文档

How to import a document in UCM using ridc

我正在尝试导入之前签入的存档文档,但我想使用 RIDC 程序导入它,以下是我正在处理的代码:

IdcClientManager manager = new IdcClientManager();

    IdcClient idcClient= manager.createClient("http://localhost/idc/idcplg");

    IdcContext idcContext = new IdcContext("sysadmin", "idc");

    // get the binder
    DataBinder binder = idcClient.createBinder();

    //populate the binder with the parameters
    binder.putLocal("IdcService", "IMPORT_DOCUMENT");
    binder.putLocal("Idc_Name", "idc");
    binder.putLocal("aArchiveName", "idc//test1");
    binder.putLocal("dDocName", "000022");
    binder.putLocal("dCollectionName", "test_checkin");

    ServiceResponse response = idcClient.sendRequest(idcContext, binder);

    DataBinder binderResult = response.getResponseAsBinder();

但我收到以下错误:

Unable to execute service IMPORT_DOCUMENT and function executeArchiveMethod.
(System Error: The collection name must be specified.)

我指定了 dCollectionID、dCollectionName、dCollectionLocation,但结果相同。

任何人都可以指导我解决这个错误,或者我在执行此代码时哪里出错了。

为了更好地理解,我想告诉您指定的文档是早些时候使用 WebDAV 签入的。

如有任何帮助,我们将不胜感激。

参数区分大小写。您需要使用 IDC_Name.