繁体   English   中英

从 Oracle UCM 下载文件时出错

[英]error on downloading files from Oracle UCM

标头和 soap 正文设置正确,带有 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</

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM