How To Get Files from WebCenter (UCM) for Fusion Applications using the GenericSoapPort Web Service
(Doc ID 2384418.1)
Last updated on OCTOBER 13, 2020
Applies to:Oracle WebCenter Content - Version 188.8.131.52.0 and later
Information in this document applies to any platform.
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
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.
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