Was this page helpful?

SaveDocument function

    Table of contents

    from document_library.wsdl

    Download file - GetDocument

    required:

    •     name
    •     data - file encoded in base64
    •     treeHandle - id of folder (e.g. open position candidate), file will be related to it

    optional:

    •    type - type of document - for type CV use value from DocumentTypecv from GetRecruitmentSettings or list available types from ListDocumentType?

     

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://atollon.com/enterprise/wsdl">
       <soapenv:Header/>
       <soapenv:Body>
          <wsdl:SaveDocument>
             <server>atollon</server>
             <session>1740817B9E5E34200DAABCCAE1B1236F80A63DD9BD04</session>
             <DOCUMENT>
                <name>cv.doc</name>
                <treeHandle>67045000</treeHandle>
                <type>1921000</type>
             </DOCUMENT>
             <data>cTotcC4Kci4KcS4Kczotci4K</data>
          </wsdl:SaveDocument>
       </soapenv:Body>
    </soapenv:Envelope>

     

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header/>
       <soapenv:Body>
          <atollon:SaveDocumentResponse xmlns:atollon="http://iterity.com/enterprise/wsdl">
             <result>OK</result>
             <time>0.15238118</time>
             <newId>87523000</newId>
          </atollon:SaveDocumentResponse>
       </soapenv:Body>
    </soapenv:Envelope>

    It's possible to upload data via http protocol, method post or get (but get is limited maximum  URL length), data must be sent in binary format, not base64-encoded like in soap request.

    <html>
        <title>Sample request - upload file via Mooring Connector</title>
    <body>
        <form method="post" action="http://lagoon-01.atollon.com/mooring/uploadDocument" enctype="multipart/form-data" >
            <input type="text" name="server" value="testing" /><br />
            <input type="text" name="session" value="" /> <br />
            <input type="text" name="name" value="cv.doc" /> <br />
            <input type="text" name="treeNode" value="124160000" /> <br /> <!-- id of folder -->
            <input type="file" name="Filedata" />
            <input type="submit" value="Upload" />
        </form>
    </body>
    </html>





     

    Was this page helpful?
    Tag page (Edit tags)
    • No tags
    Pages that link here
    Page statistics
    1524 view(s), 3 edit(s), and 4644 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments