• .net webservice for download

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
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.
 #30325  by devilkine
 
Hi,
Exist there a webservice that allows me to pass a path and you can download the document form .net?

please some exaple
sorry for my english
 #30332  by jllort
 
You can use rest directly or use our sdk for it http://wiki.openkm.com/index.php/Csharp_webservice_dll, in case you decide for our sdk the methods are:
Code: Select all
Byte[] getContent(String docPath, Boolean checkout);
Byte[] getContent(String token, String docPath, Boolean checkout);
Byte[] getContentByVersion(String docId, String versionId);
Byte[] getContentByVersion(String token, String docId, String versionId);
To take a look at rest services, http://demo.openkm.com/OpenKM/services/ ... ment?_wadl ( user1 / pass1 ) you also got there a method called getContent with a query string parameter called docId ( what can be path or uuid )
Code: Select all
<resource path="getContent">
  <method name="GET">
    <request>
      <param name="docId" style="query" type="xs:string"/>
    </request>
    <response>
      <representation mediaType="application/octet-stream"/>
    </response>
  </method>
</resource>

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.