• Upload Documents Using Create Simple API

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #47715  by ansarmnnit
 
I am using SOAP UI tool for accesing SOAP API of Openkm. I have created a new SOAP project in which i have imported OkmDocumentSoapBinding Wsdl from that Wsdl am trying to run create simple method.

payload of that method:-
Code: Select all
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.openkm.com">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:createSimple>
         <!--Optional:-->
         <token>b8d8751e-fb0c-4b69-a52b-2ccfda30b56f</token>
         <!--Optional:-->
         <docPath>/okm:root/xyz</docPath>
         <!--Optional:-->
         <content>cid:1337316684662</content>
      </ws:createSimple>
   </soapenv:Body>
</soapenv:Envelope>
Now my questions:-

1st question:-What is the auto generated value "cid:1337316684662" in <content> tag of the request payload ?
2nd question:- How do I pass the contents of the file in the request, I tried sending the contents of the file in binary format within the <content> tag but the uploaded file in OpenKM has a different content that what was passed in the request ?
 #47727  by jllort
 
Consider SOAP UI as a technology totally deprecated. I recommend using REST and if your language is JAVA, .NET or PHP we have sdk wrappers what will make your life easy.
General information
https://docs.openkm.com/kcenter/view/ok ... agger.html
https://docs.openkm.com/kcenter/view/ok ... stful.html

SDK's
https://docs.openkm.com/kcenter/view/sdk4j-1.2/
https://docs.openkm.com/kcenter/view/sdk4net-1.2.1/
https://docs.openkm.com/kcenter/view/sdk4php-1.2.0/

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.