【问题标题】:error on downloading files from Oracle UCM从 Oracle UCM 下载文件时出错
【发布时间】:2021-01-04 22:30:13
【问题描述】:

标题和肥皂正文设置正确,带有 docID 请求。见下文

headers = {'content-type': 'text/xml','charset':'UTF-8'}

body_ID="""<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ucm="http://www.oracle.com/UCM">
    <soapenv:Header/>
    <soapenv:Body>
    <ucm:GenericRequest webKey="cs">
        <ucm:Service IdcService="GET_FILE">
            <ucm:Document>
                <!--Zero or more repetitions:-->
                <ucm:Field name="dID">{docID}</ucm:Field>
            </ucm:Document>
        </ucm:Service>
    </ucm:GenericRequest>
    </soapenv:Body>
</soapenv:Envelope>""".format(DocID='<DOCID>')

在请求响应时出现以下错误

success
<Response [200]>
b'------=_Part_11826_1961656318.1609798653407\r\nContent-Type: application/xop+xml;charset=UTF-8;type="text/xml"\r\nContent-Transfer-Encoding: 8bit\r\nContent-ID: <4522dc33-d0c7-4609-aefb-5f2768a2cde4>\r\n\r\n<?xml version="1.0" encoding="UTF-8" ?>\n<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><ns2:GenericResponse xmlns:ns2="http://www.oracle.com/UCM"><ns2:Service IdcService="GET_FILE"><ns2:Document><ns2:Field name="StatusCode">-1</ns2:Field><ns2:Field name="dID">UCMFA08693968</ns2:Field><ns2:Field name="refreshMonikers"></ns2:Field><ns2:Field name="refreshSubMonikers"></ns2:Field><ns2:Field name="IdcService">GET_FILE</ns2:Field><ns2:Field name="changedMonikers"></ns2:Field><ns2:Field name="StatusMessageKey">!csUnableToDownloadFile!csServiceDataException,DOC_INFO_SUB,QdocInfo</ns2:Field><ns2:Field name="idcToken"></ns2:Field><ns2:Field name="StatusMessage">Unable to download file. Unable to execute service DOC_INFO_SUB and function QdocInfo.\n</ns2:Field><ns2:Field name="dUser">{user replaced}</ns2:Field><ns2:

具体错误

StatusMessageKey">!csUnableToDownloadFile!csServiceDataException,DOC_INFO_SUB,QdocInfo</

能够使用相同的用户/密码登录并手动下载

【问题讨论】:

    标签: python oracle soap cloud


    【解决方案1】:

    因此 wsdl 上的 dID 已设置为整数。 UCM* 值实际上是文档名,而文档标题是文件名。 dID 值必须由 DocName 的 GET_SEARCH_RESULTS 提取。同样 GET_SEARCH_RESULTS 用于自动标签搜索。

    希望这可以帮助任何希望通过 python 完成这项工作的人,在 HCM python 集成方面没有看到很多。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-31
      • 1970-01-01
      • 1970-01-01
      • 2014-07-01
      • 2013-08-31
      • 1970-01-01
      相关资源
      最近更新 更多