Snippets

Mythics WebCenter Content - SOAP - Add folder (folders_g)

Created by Jonathan Hult last modified
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ucm="http://www.oracle.com/UCM" xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <soapenv:Header>
        <ns1:Security>
            <ns1:UsernameToken>
                <ns1:Username>USERNAME GOES HERE</ns1:Username>
                <ns1:Password>PASSWORD GOES HERE</ns1:Password>
            </ns1:UsernameToken>
        </ns1:Security>
    </soapenv:Header>
    <soapenv:Body>
        <ucm:GenericRequest webKey="cs">
            <ucm:Service IdcService="COLLECTION_ADD">
                <ucm:Document>
                    <ucm:Field name="dSecurityGroup">Secure</ucm:Field>
                    <ucm:Field name="dDocAccount" />
                    <ucm:Field name="dUser">OWNER GOES HERE</ucm:Field>
                    <ucm:Field name="dCollectionOwner">OWNER GOES HERE</ucm:Field>
                    <ucm:Field name="dCollectionCreator">OWNER GOES HERE</ucm:Field>
                    <ucm:Field name="dCollectionName">NAME OF FOLDER GOES HERE</ucm:Field>
                    <ucm:Field name="xComments">DESCRIPTION OF FOLDER GOES HERE</ucm:Field>

                    <ucm:Field name="xClbraAliasList">GROUP LIST DATE GOES HERE</ucm:Field>
                    <ucm:Field name="xClbraUserList">USER LIST GOES HERE</ucm:Field>
                    <ucm:Field name="hasParentCollectionID">1</ucm:Field>
                    <ucm:Field name="dParentCollectionID">466102425461000004</ucm:Field>
                </ucm:Document>
            </ucm:Service>
        </ucm:GenericRequest>
    </soapenv:Body>
</soapenv:Envelope>

Comments (5)

  1. Ntombethemba Mncela

    Hi Jonathan

    Is it possible to to have the service that creates the folder to upload a file/doc at the same time. Please advice.

    Many thanks

    1. Jonathan Hult

      It is. But you would need to create that service yourself. Or, you could just call the 2 services (one after the other).

  2. Ying Zhang

    Hi, Jonathan,

    I saw you are using the naming space 'xmlns:ucm="http://www.oracle.com/UCM"', But, I found some definitions from WebCenter Content -> Adminstration -> SOAP WSDLs which are using different with yours. One of them is 'xmlns:chec="http://www.stellent.com/CheckIn/"'.

    When I do a SOAP request according to your 'Checkin' note, I got the error: 'The SOAP request is invalid. The service node 'GenericRequest' is invalid'

    Does it mean there are two different ways to do SOAP request to UCM? They have different SOAP endpoint?

    Thanks. Ying.

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.