Using Generic SOAP Port Webservice to Upload file to UCM

In this article, we will learn about how to use SOAP Service to upload files to UCM. This is used for automation of interfaces in Oracle Cloud Fusion HCM. In this example, we will use SOAP UI to test the service. Same concepts can be applied in Fusion Middleware or any other platform to invoke Web Service to upload files to UCM.

You can upload the file by Base64 encoding the binary content of the file, in the Content tag as below:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ucm="http://www.oracle.com/UCM">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Action>urn:GenericSoap/GenericSoapOperation</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<ucm:GenericRequest webKey="cs">
<ucm:Service IdcService="CHECKIN_NEW">
<ucm:Document>
<ucm:Field name="dUser">imp</ucm:Field>
<ucm:Field name="dDocTitle">Hello</ucm:field>
<ucm:Field name="dDocAuthor">imp</ucm:Field>
<ucm:Field name="dSecurityGroup">FAFusionImportExport</ucm:field>
<ucm:Field name="dDocType">Document</ucm:field>
<ucm:Field name="dDocAccount">scm$/planningDataLoader$/import$</ucm:field>
<ucm:File name="primaryFile" href="HelloWorld.txt">
<ucm:Contents>SGVsbG8gV29ybGQhDQo=</ucm:Contents>
</ucm:File>
</ucm:Document>
</ucm:Service>
</ucm:GenericRequest>
</soapenv:Body>
</soapenv:Envelope>

In this example it is sent INLINE.

You can decode/encode the content using this site: https://www.base64decode.org/


Comments

  1. Thank you so much for putting up such a nice and informative blog post about Power BI and its other aspects as well.

    Powerbi Read Soap

    ReplyDelete
  2. This comments section is bullshit. Many comments are just nonsense , the main objective is to post some spam links to their bullshit product ! Look Ma.. I have no link here YAY!

    ReplyDelete

Post a Comment

Popular posts from this blog

SQL to get Payroll Balances in Oracle Fusion HCM

User Account in Oracle Fusion HCM