Use UCM SOAP Web Service To Get The Files From UCM
Use UCM SOAP Web Service To Get The Files From UCM
Wrote by Peng.Yang@oracle.com
Created: Oct 11, 2017
Updated: Feb 15, 2019
Documentation:
“Fusion Middleware Services Reference for Oracle WebCenter Content “, 4.6.3 GET_FILE, LINK
WSDL:
/idcws/GenericSoapPort?WSDL
e.g. if your HCM Cloud URL is https://ucf5-fap1436-fs.oracledemos.com/homePage/faces/AtkHomePageWelcome
Then the WSDL URL will be: https://ucf5-fap1436-fs.oracledemos.com/idcws/GenericSoapPort?WSDL
GenericSoapService is a generic web service for general access to UCM. The service supported to execute a lot of
operations (called “IdcService”), for example,
CHECKIN_UNIVERSAL,
GET_SEARCH_RESULTS,
GET_FILE,
CHECKOUT_BY_NAME
List of IdcService is in this document LINK (optional to read)
In this document, we talked about GET_FILE IdcService.
We use the open source tool [SoapUI] to test the web service. Below are the steps and desc.
<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>
<ucm:Field name="dDocName">VSCUSTOMEXT_259090</ucm:Field>
<ucm:Field name="RevisionSelectionMethod">LatestReleased</ucm:Field>
</ucm:Document>
</ucm:Service>
</ucm:GenericRequest>
</soapenv:Body>
</soapenv:Envelope>
webKey="cs"
By default the value is “cs”, it’s part of your UCM’s URL, e.g. https://fuscdrmsmc167-fa-ext.us.oracle.com/cs
IdcService="GET_FILE"
This is the operation to execute. Again, do read the details in LINK
"dDocName">VSCUSTOMEXT_259090
That’s the content ID you got from step 1.
You can also use other elements, e.g. document name. Pls refer to above LINK.
"RevisionSelectionMethod">LatestReleased
If you only provided dDocName, then this parameter is must have. Again, you can find the details in LINK
Reference document: