【问题标题】:How to import a document in UCM using ridc如何使用 ridc 在 UCM 中导入文档
【发布时间】:2018-03-10 06:23:04
【问题描述】:

我正在尝试导入之前签入的存档文档,但我想使用 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 签入的。

任何形式的帮助将不胜感激。

【问题讨论】:

    标签: oracle-ucm


    【解决方案1】:

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

    【讨论】:

    • 感谢乔纳森,这是一个很大的帮助,至少我的错误改变了,我不知道这一点,再次感谢。
    猜你喜欢
    • 2013-02-02
    • 1970-01-01
    • 2020-06-01
    • 1970-01-01
    • 2015-05-31
    • 1970-01-01
    • 2021-12-25
    • 1970-01-01
    • 2011-10-15
    相关资源
    最近更新 更多