javasoapcmisfilenet-p8filenet

How to Store a pdf document in Filenet


Im new to IBM filenet. I just got the webservice url of the CMIS filenet.

My requirement is to store a PDF document got from one system using apache camel route to filenet. Tried importing the wsdl in SOAP UI and i can see set of APIs like createDocument, createFolder etc., Is there a simple way of testing these APIs. First at least i want to simple test in java at least to store a document in filenet. Please help me out in understanding.


Solution

  • In order to troubleshoot the CMIS, I usually follow the general steps that I compiled for you below. saying this, I would highly advise you to create unit tests for each of your operations as you go and I promise it will save you a lot of time and effort

    1. Start Fiddler [a].
    2. Start CMIS Workbench. 0.8.0 [b] and later automatically proxies requests, at least on Windows 7.
    3. Logon to a repository
    4. Optionally navigate to a folder.
    5. Create Document. Leave the Generate content field at 0 bytes if creating a doc without a content stream. Select Email or other type.
    6. Go to Fiddler and find the POST (status code will be 201).

    The request should have Content-Type: application/atom+xml;type=entry, and the properties, cmis:name and cmis:objectTypeid, in the cmisra:object element.

    a. http://www.fiddler2.com/fiddler2/ b. http://chemistry.apache.org/java/download.html