0% found this document useful (0 votes)
4 views

REST API and SOAP calls to upload Employee EIT

The document outlines the process of encoding an input file to Base64 format and uploading it to a Content Server using a SOAP envelope. It includes the structure of the SOAP request and a sample response, which provides details about the uploaded document. Additionally, it describes how to retrieve the UCM content ID from the SOAP response for use in a subsequent REST API call.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

REST API and SOAP calls to upload Employee EIT

The document outlines the process of encoding an input file to Base64 format and uploading it to a Content Server using a SOAP envelope. It includes the structure of the SOAP request and a sample response, which provides details about the uploaded document. Additionally, it describes how to retrieve the UCM content ID from the SOAP response for use in a subsequent REST API call.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

1.

Encode input file to Base64 format

Outcome ->

RW1wbG95ZWVJZCxTZXJ2aWNlSWQsU2VydmljZU5hbWUsUHJvamVjdElkLFByb2plY3ROYW1lL
FN0YXJ0RGF0ZSxFbmREYXRlDQo3LDQxLENyZWRpdCBGYWNpbGl0eSBNYW5hZ2VtZW50LDU4Nz
YsUFJKIC0gNCBXZWVrIFJvbGxpbmcgU2NoZWR1bGUsMjAyMy8wMi8yNCwyMDIzLzA2LzMw
2. SOAP envelop to upload input file to Content Server
The highlighted values are the user inputs
<!-- WSDL: https://fa-exvv-dev1-saasfaprod1.fa.ocs.oraclecloud.com:443/idcws/GenericSoapPort?wsdl
-->
<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="CHECKIN_UNIVERSAL">
<ucm:Document>
<ucm:Field name="dUser">weblogic</ucm:Field>
<ucm:Field name="dDocTitle">ASGEIT.txt</ucm:Field>
<ucm:Field name="dDocType">Document</ucm:Field>
<ucm:Field name="dDocAuthor">ramakrishna.varma</ucm:Field>
<ucm:Field name="dSecurityGroup">FAFusionImportExport</ucm:Field>
<ucm:Field name="dDocAccount">hcm$/dataloader$/import$</ucm:Field>
<ucm:File name="primaryFile" href="ASGEIT.txt">
<!-- Base 64 Encode of Input File -->

<ucm:Contents>RW1wbG95ZWVJZCxTZXJ2aWNlSWQsU2VydmljZU5hbWUsUHJvamVjdElkLFByb2plY3R
OYW1lLFN0YXJ0RGF0ZSxFbmREYXRlDQo3LDQxLENyZWRpdCBGYWNpbGl0eSBNYW5hZ2VtZW50LDU4N
zYsUFJKIC0gNCBXZWVrIFJvbGxpbmcgU2NoZWR1bGUsMjAyMy8wMi8yNCwyMDIzLzA2LzMw</
ucm:Contents>
</ucm:File>
</ucm:Document>
</ucm:Service>
</ucm:GenericRequest>
</soapenv:Body>
</soapenv:Envelope>

SOAP UI:
Sample envelop response in the table below. Complete file attached.

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<ns0:GenericResponse xmlns:ns0="http://www.oracle.com/UCM">
<ns0:Service IdcService="CHECKIN_UNIVERSAL">
<ns0:Document>
<ns0:Field name="dWebOriginalName">UCMFA00257742~1.txt</ns0:Field>
<ns0:Field name="xPartnerLevel:isSetDefault">1</ns0:Field>
<ns0:Field name="xAnnotationDetails:isSetDefault">1</ns0:Field>
<ns0:Field name="localizedForResponse">1</ns0:Field>
<ns0:Field name="xIPMSYS_BATCH_ID1">0</ns0:Field>
<ns0:Field name="dActionDate">8/17/23 11:23 AM</ns0:Field>
<ns0:Field name="dpTriggerField">xIdcProfile</ns0:Field>
<ns0:Field name="dClbraName"/>
<ns0:Field name="isCheckin">1</ns0:Field>
<ns0:Field name="xWCWorkflowApproverUserList:isSetDefault">1</ns0:Field>
<ns0:Field name="xIPM_APP_1_10:isSetDefault">1</ns0:Field>
<ns0:Field name="dSecurityGroup:rule">IpmSystemFields_Restricted</ns0:Field>
<ns0:Field name="dWebExtension">txt</ns0:Field>
<ns0:Field name="xCpdIsLocked:isSetDefault">1</ns0:Field>
<ns0:Field name="LockedContents1">dDocName:UCMFA00257742</ns0:Field>
<ns0:Field name="isEditMode">1</ns0:Field>
<ns0:Field name="IdcService">CHECKIN_UNIVERSAL</ns0:Field>
<ns0:Field name="scriptableActionFlags">12</ns0:Field>
…...............
…...............
…...............
3. Get UCM content ID from the SOAP response in the above call and pass it in the payload of the following
REST API call.

REST API call https://<pod


URL>:443/hcmRestApi/resources/11.13.18.05/flowPatterns/300000000437165/
action/submitFlow
Media Type application/vnd.oracle.adf.action+json
Pay Load {
"parameterIdValues": {
"300000000508651":"UCMFA00252233",
"300000000508653":"300000003095916"
},
"flowInstanceName": "EMPSIT9"
}

Expected Result:
JSON RAW
HCM UI:

You might also like