How to Get Files from WebCenter (UCM) using the GenericSoapPort Web Service
(Doc ID 2384418.1)
Last updated on NOVEMBER 07, 2024
Applies to:
Oracle WebCenter Content - Version 11.1.1.8.0 and laterOracle WebCenter Content for OCI - Version 12.2.1.4.0_24.2 and later
Information in this document applies to any platform.
Goal
The way in which the content is retrieved from UCM depends on the OWSM (Oracle Web Services Manager) policy attached to the GenericSoapPort (using the Enterprise Manager):
- If the oracle/no_mtom_policy is attached, the GET_FILE IdcService will retrieve the binary content of the primary file, base64 encoded, inside the <Contents> tag (using the INLINE method).
- If the oracle/wsmtom_policy is attached, the binary content of the primary file is sent as an attachment to the SOAP response (the MTOM method) and can be retrieved from SoapUI by going to the Request Properties bottom-left panel and setting the "Enable MTOM" and "Force MTOM" options to true. After running the SOAP call the content will be available in the "Attachments" tab of the response (see the screenshot below). In this case the <Contents> tag will contain an XOP reference to the Attachments section. If you still want to get the file content inside the XML response (as in the INLINE method) you will have to set a third setting to true: "Expand MTOM Attachments". In that moment you will have the file content in two places: in the Attachments section and inside the <Contents> tag, base64 encoded.
Click HERE for a screenshot.
More about SOAP Attachments and Files can be read in the SoapUI documentation available here: https://www.soapui.org/docs/soap-and-wsdl/attachments.html
The WSDL URL (below) can be used in a web service client to fetch a file from WebCenter Content
https://<UCM_host_name>:<UCM_port>/idcws/GenericSoapPort?WSDL
In this note are presented valid XML payloads to download a file from UCM, using the GET_FILE IdcService call and how the retrieved content can be Base64 decoded.
NOTE: Fusion Applications (FA) Support Rule !
Please be aware that in the FA instances, the only supported method to get access to content on the Content Server for Fusion is by using Oracle Document Transfer Utility (ODTU) <- A SOAP based utility.
Other methods might work, but are not supported as they can change with patches and updates to the FA environment.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |