Showing posts with label UCM Genericsoapport web services webservices payload payloads checkin_new get_file workflow_approve get_search_reseult. Show all posts
Showing posts with label UCM Genericsoapport web services webservices payload payloads checkin_new get_file workflow_approve get_search_reseult. Show all posts

Thursday, April 3, 2014

common UCM payloads GenericSOAPPort

11.   Before start using the GenericSOAPPort is important that security is added to the request you can easily do this with a policy “oracle/wss_username_token_client_policy” or add a username and password in the SOAP UI for testing


22.  Check in a new document


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ucm="http://www.oracle.com/UCM">
   <soapenv:Header/>
   <soapenv:Body>
    <GenericRequest xmlns:ns0="http://www.oracle.com/UCM" xmlns="http://www.oracle.com/UCM" webKey="cs">
<ns0:Service IdcService="CHECKIN_NEW">
<ns0:User/>
<ns0:Document>
<ns0:Field name="dDocTitle">test56.pdf</ns0:Field>
<ns0:Field name="dDocType">Document</ns0:Field>
<ns0:Field name="dSecurityGroup">Public</ns0:Field>
<ns0:File name="primaryFile" href="test51.pdf">
<ns0:Contents>
[base 64]
</ns0:Contents>
</ns0:File>
</ns0:Document>
</ns0:Service>
</GenericRequest>
   </soapenv:Body>
</soapenv:Envelope>

33. Retrieve document id  dID from the response from the previous call and use it as input parameter, “GET_FILE”

<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="GET_FILE">
            <ucm:Document>
            <ucm:Field  name="dID">6404</ucm:Field>
            </ucm:Document>
         </ucm:Service>
      </ucm:GenericRequest>
   </soapenv:Body>
</soapenv:Envelope>


44. Approve a document

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ucm="http://www.oracle.com/UCM">
   <soapenv:Header/>
   <soapenv:Body>
    <GenericRequest xmlns:ns0="http://www.oracle.com/UCM" xmlns="http://www.oracle.com/UCM" webKey="cs">
<ns0:Service IdcService="WORKFLOW_APPROVE">
<ns0:Document>
<ns0:Field name="dID">6402</ns0:Field>
</ns0:Document>
</ns0:Service>
</GenericRequest>
   </soapenv:Body>
</soapenv:Envelope>


55.  Scan a document after approved and indexer successfully run the GET_SEARCH_RESULT

<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="GET_SEARCH_RESULTS">           
            <ucm:Document>
 <ucm:Field  name="QueryText">dID = `6405`</ucm:Field>
            </ucm:Document>
         </ucm:Service>
      </ucm:GenericRequest>
   </soapenv:Body>
</soapenv:Envelope>